Update build script
Showing
... | ... | @@ -5,12 +5,15 @@ |
"main": "index.js", | ||
"scripts": { | ||
"test": "echo \"Error: no test specified\" && exit 1", | ||
"build": "rollup lib/index.js --format iife --name \"gazeclient\" --file build/gazeclient.js", | ||
"postbuild": "cp build/gazeclient.js demo/gazeclient.js" | ||
"build": "npm run rollup && npm run uglify", | ||
"rollup": "rollup lib/index.js --sourcemap --format iife --name \"gazeclient\" --file build/gazeclient.js --banner \"// GazeClient Version 1.0 - [https://lab.las3.de/gitlab/eye-tracking-classroom/gaze-client.js]\"", | ||
"uglify": "uglifyjs build/gazeclient.js -o build/gazeclient.min.js", | ||
"postuglify": "cp build/gazeclient.min.js demo/gazeclient.min.js" | ||
}, | ||
"author": "Alexander Bazo <alexanderbazo@googlemail.com>", | ||
"license": "MIT", | ||
"devDependencies": { | ||
"rollup": "^1.19.4" | ||
"rollup": "^1.19.4", | ||
"uglify-es": "^3.3.9" | ||
} | ||
} |
Please
register
or
sign in
to comment