aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorJakob Stendahl <jakob.stendahl@outlook.com>2021-09-19 19:43:11 +0200
committerJakob Stendahl <jakob.stendahl@outlook.com>2021-09-19 19:43:11 +0200
commit7bdce37fd3f18e2712e18c4e2c64cac69af0aca1 (patch)
treeb7ad3f1cca92e2dfd2664ae9e65652bd03ff58b2 /bin
parente6880cd8ccf82d993f222cb14b4860581654acb8 (diff)
downloadLuxcena-Neo-7bdce37fd3f18e2712e18c4e2c64cac69af0aca1.tar.gz
Luxcena-Neo-7bdce37fd3f18e2712e18c4e2c64cac69af0aca1.zip
:boom: Introduce new UI based on svelte, and rewrite a lot of the node app and the NeoRuntime
Diffstat (limited to 'bin')
-rw-r--r--bin/build.sh12
-rwxr-xr-xbin/runDev.sh12
2 files changed, 12 insertions, 12 deletions
diff --git a/bin/build.sh b/bin/build.sh
new file mode 100644
index 0000000..6c10225
--- /dev/null
+++ b/bin/build.sh
@@ -0,0 +1,12 @@
+echo "> Install node modules needed for build"
+NODE_ENV="development"
+npm i
+
+echo "> Make sure all python dependencies for build is installed"
+pip3 install mkdocs mkdocs-gitbook pygments pymdown-extensions
+
+echo "> Compile es6 and sass to bundles"
+npx webpack -p
+
+echo "> Generate html docs using sphinx"
+mkdocs build
diff --git a/bin/runDev.sh b/bin/runDev.sh
deleted file mode 100755
index e0e70bc..0000000
--- a/bin/runDev.sh
+++ /dev/null
@@ -1,12 +0,0 @@
-printf "%s\n" "> webpack"
-npx webpack
-
-printf "%s\n" "> node app.js"
-if [ "$#" -gt "1" ]; then
- node app.js $1
-else
- mkdir -p tmp
- mkdir -p tmp/userdata
- mkdir -p tmp/logs
- node app.js "$PWD/tmp/"
-fi