-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
53 lines (53 loc) · 2.17 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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
{
"name": "getting-started",
"version": "0.0.0",
"private": true,
"main": "app/dist/app.js",
"dependencies": {
"browserify": "latest",
"concurrently": "latest",
"less": "latest",
"less-plugin-clean-css": "latest",
"minifyify": "latest",
"mkdirp": "latest",
"ncp": "latest",
"platypus": "latest",
"platypusui": "latest",
"stringify": "latest",
"tsconfig-glob": "latest",
"tsconfig-lint": "latest",
"tsd": "latest",
"typescript": "1.5.0-alpha"
},
"devDependencies": {
"http-server": "latest",
"nodemon": "latest",
"rimraf": "latest"
},
"scripts": {
"build": "npm run less && npm run build:ts",
"build:cordova": "npm run deploy && npm run copy && plat cordova prepare && plat cordova build",
"build:ts": "npm run ts && npm run bundle",
"bundle": "mkdirp app/dist && browserify app/src/main.js -d -t stringify -o app/dist/app.js -v",
"clean": "rimraf app/**/*.css app/src/**/*.js app/dist/*",
"clean:dist": "rimraf app/dist/*",
"copy": "mkdirp cordova/www && concurrent -r \"npm run copy:dist\" \"npm run copy:fonts\" \"npm run copy:images\" \"npm run copy:index\"",
"copy:dist": "ncp app/dist cordova/www/dist",
"copy:fonts": "ncp app/fonts cordova/www/fonts",
"copy:images": "ncp app/images cordova/www/images",
"copy:index": "ncp app/index.html cordova/www/index.html",
"deploy": "npm run clean:dist && npm run build -- -- -- -p [minifyify --no-map]",
"less": "mkdirp app/dist && lessc app/styles/main.less > app/dist/app.css --clean-css=\"--s0 --advanced\"",
"lint": "tsconfig-lint --use-glob",
"postbundle": "echo bundle done!",
"postless": "echo less done!",
"prepublish": "npm run tsd && tsconfig",
"start": "concurrent -r \"npm run watch\" \"http-server -p 3000 app\"",
"ts": "tsconfig && tsc -p .",
"tsd": "tsd update -so && tsd link",
"watch": "npm run ts && concurrent -r \"npm run watch:ts\" \"npm run watch:html\" \"npm run watch:less\"",
"watch:html": "nodemon -q -w app -e html --exec npm run bundle",
"watch:less": "nodemon -q -w app -e less --exec npm run less",
"watch:ts": "nodemon -q -w app -e ts --exec npm run build:ts"
}
}