-
Notifications
You must be signed in to change notification settings - Fork 90
Expand file tree
/
Copy pathpackage.json
More file actions
54 lines (54 loc) · 2.25 KB
/
package.json
File metadata and controls
54 lines (54 loc) · 2.25 KB
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
54
{
"name": "npm-scripts-example",
"version": "1.0.0",
"description": "An example of how to use npm scripts over a build tool like Grunt or Gulp",
"main": "index.js",
"author": "Keith Cirkel <npm@keithcirkel.co.uk> (http://keithcirkel.co.uk/)",
"license": "MIT",
"devDependencies": {
"browserify": "^13.1.0",
"hashmark": "^2.0.0",
"http-server": "^0.7.3",
"jade": "^1.7.0",
"jshint": "^2.5.10",
"karma": "^0.12.28",
"karma-browserify": "^1.0.0",
"karma-cli": "^0.0.4",
"karma-mocha": "^0.1.10",
"karma-phantomjs-launcher": "^1.0.2",
"live-reload": "^1.1.0",
"minifyify": "^6.0.0",
"mocha": "^2.0.1",
"nodemon": "^1.17.1",
"npm-run-all": "^4.1.2",
"opener": "^1.4.0",
"rimraf": "^2.2.8",
"s3-cli": "^0.11.1",
"stylus": "^0.49.3",
"wait-on": "^2.1.0"
},
"repository": {
"type": "git",
"url": "git://github.com/keithamus/npm-scripts-example.git"
},
"scripts": {
"clean": "rimraf dist/*",
"prebuild": "npm run clean -s",
"build": "npm run build:scripts -s && npm run build:styles -s && npm run build:markup -s",
"build:scripts": "browserify -d assets/scripts/main.js -p [minifyify --compressPath . --map main.js.map --output dist/main.js.map] | hashmark -n dist/main.js -s -l 8 -m assets.json \"dist/{name}{hash}{ext}\"",
"build:styles": "stylus assets/styles/main.styl -m -o dist/ && hashmark -s -l 8 -m assets.json dist/main.css \"dist/{name}{hash}{ext}\"",
"build:markup": "jade assets/markup/index.jade --obj assets.json -o dist",
"test": "karma start --singleRun",
"watch": "npm-run-all --parallel \"watch:* -s\"",
"watch:test": "karma start",
"watch:build": "nodemon -q -w assets/ --ext \".\" --exec \"npm run build\"",
"open:prod": "opener http://example.com",
"open:stage": "opener http://staging.example.internal",
"open:dev": "wait-on http://localhost:9090 && opener http://localhost:9090",
"deploy:prod": "s3-cli sync ./dist/ s3://example-com/prod-site/",
"deploy:stage": "s3-cli sync ./dist/ s3://example-com/stage-site/",
"serve": "http-server -p 9090 dist/",
"live-reload": "live-reload --port=9091 --delay=2000 dist/",
"dev": "npm-run-all --parallel \"live-reload -s\" \"serve -s\" \"watch -s\" \"open:dev -s\""
}
}