aboutsummaryrefslogtreecommitdiff
path: root/scripts/package.json
diff options
context:
space:
mode:
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' ."