aboutsummaryrefslogtreecommitdiff
path: root/scripts/package.json
diff options
context:
space:
mode:
authorluxagraf <sng@luxagraf.net>2019-05-02 09:36:31 -0500
committerluxagraf <sng@luxagraf.net>2019-05-02 09:36:31 -0500
commit9d73326aad4d9aee61a16f7274819fa93f32dc72 (patch)
tree9cf21f7a514478ef3e1593dd346dad144c37fdea /scripts/package.json
parent5b9343d77d8321e44d1ffc60769c651771dc38dd (diff)
migrated to LXC container
Diffstat (limited to 'scripts/package.json')
-rw-r--r--scripts/package.json2
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/package.json b/scripts/package.json
index 6edaf7b..68fe4de 100644
--- a/scripts/package.json
+++ b/scripts/package.json
@@ -11,9 +11,11 @@
"include": "cp src/lib/*.js tmp/",
"concat": "mkdir -p ../media/js && uglifyjs tmp/*.js -m -b -o tmp/main.js",
"browserify": "cd tmp && browserify main.js -o main.pack.js",
+ "uglify:testing": "mv tmp/main.pack.js ../media/js/main.pack.js",
"uglify:local": "uglifyjs tmp/main.pack.js -m -o ../media/js/main.min.js",
"uglify:deploy": "mkdir -p ../media/js && uglifyjs tmp/*.js -m -c drop_console=true -o ../media/js/main.min.js",
"cleanup": "rm -rf tmp",
+ "test": "pnpm run babel && pnpm run concat && pnpm run browserify && pnpm run uglify:testing && pnpm run cleanup",
"build": "pnpm run babel && pnpm run concat && pnpm run browserify && pnpm run uglify:local && pnpm run cleanup",
"deploy": "pnpm run babel && pnpm run include && pnpm run uglify && pnpm run cleanup",
"watch": "watch 'pnpm run build' ."