forked from markmarijnissen/cordova-app-loader
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
30 lines (30 loc) · 2 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
{
"name": "cordova-app-loader",
"version": "1.2.0",
"description": "Cordova App Loader - remote update your cordova app",
"main": "index.js",
"scripts": {
"cordova-promise-fs": "npm run-script cordova-promise-fs prepublish && cp node_modules/cordova-file-cache/node_modules/cordova-promise-fs/dist/CordovaPromiseFS.js www/lib/CordovaPromiseFS.js",
"cordova-app-loader": "webpack index.js www/lib/CordovaAppLoader.js --output-library CordovaAppLoader --output-library-target var",
"bootstrap": "cp bootstrap.js www/bootstrap.js",
"copy-tests": "cp pegasus.js www/test/pegasus.js && cp node_modules/cordova-promise-fs/test/tests.js www/test/cordova-promise-fs-tests.js && cp node_modules/cordova-file-cache/test/tests.js www/test/cordova-file-cache-tests.js",
"autoupdate": "cp autoupdate.js www/autoupdate.js",
"bundle": " webpack bundle.js dist/cordova-app-loader-complete.js && cp dist/cordova-app-loader-complete.js www/lib/cordova-app-loader-complete.js",
"prepublish": "npm run copy-tests && npm run autoupdate && npm run bootstrap && npm run cordova-app-loader && npm run copy-to-dist && npm run bundle && npm run minify-dist",
"copy-to-dist": "cp www/lib/CordovaAppLoader.js dist/ && cp www/lib/CordovaPromiseFS.js dist/ && cp www/bootstrap.js dist/ && cp www/autoupdate.js dist/",
"minify-dist": " uglifyjs -c -m --screw-ie8 dist/bootstrap.js -o dist/bootstrap.min.js && uglifyjs -c -m --screw-ie8 dist/autoupdate.js -o dist/autoupdate.min.js && uglifyjs -c -m --screw-ie8 dist/CordovaPromiseFS.js -o dist/CordovaPromiseFS.min.js && uglifyjs -c -m --screw-ie8 dist/CordovaAppLoader.js -o dist/CordovaAppLoader.min.js && uglifyjs -c -m --screw-ie8 dist/cordova-app-loader-complete.js > dist/cordova-app-loader-complete.min.js",
"test": "echo \"Error: no test specified\" && exit 1"
},
"keywords": [
"cordova",
"app",
"loader",
"remote",
"update"
],
"author": "Mark Marijnissen",
"license": "MIT",
"dependencies": {
"cordova-file-cache": "^1.1.1"
}
}