Commit bc52d6c7 by Alexander Bazo

Update build script

parent c843b11c
...@@ -32,6 +32,30 @@ ...@@ -32,6 +32,30 @@
"@types/node": "^12.6.9", "@types/node": "^12.6.9",
"acorn": "^6.2.1" "acorn": "^6.2.1"
} }
},
"source-map": {
"version": "0.6.1",
"resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz",
"integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==",
"dev": true
},
"uglify-es": {
"version": "3.3.9",
"resolved": "https://registry.npmjs.org/uglify-es/-/uglify-es-3.3.9.tgz",
"integrity": "sha512-r+MU0rfv4L/0eeW3xZrd16t4NZfK8Ld4SWVglYBb7ez5uXFWHuVRs6xCTrf1yirs9a4j4Y27nn7SRfO6v67XsQ==",
"dev": true,
"requires": {
"commander": "~2.13.0",
"source-map": "~0.6.1"
},
"dependencies": {
"commander": {
"version": "2.13.0",
"resolved": "https://registry.npmjs.org/commander/-/commander-2.13.0.tgz",
"integrity": "sha512-MVuS359B+YzaWqjCL/c+22gfryv+mCBPHAv3zyVI2GN8EY6IRP8VwtasXn8jyyhvvq84R4ImN1OKRtcbIasjYA==",
"dev": true
}
}
} }
} }
} }
...@@ -5,12 +5,15 @@ ...@@ -5,12 +5,15 @@
"main": "index.js", "main": "index.js",
"scripts": { "scripts": {
"test": "echo \"Error: no test specified\" && exit 1", "test": "echo \"Error: no test specified\" && exit 1",
"build": "rollup lib/index.js --format iife --name \"gazeclient\" --file build/gazeclient.js", "build": "npm run rollup && npm run uglify",
"postbuild": "cp build/gazeclient.js demo/gazeclient.js" "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>", "author": "Alexander Bazo <alexanderbazo@googlemail.com>",
"license": "MIT", "license": "MIT",
"devDependencies": { "devDependencies": {
"rollup": "^1.19.4" "rollup": "^1.19.4",
"uglify-es": "^3.3.9"
} }
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment