forked from keithamus/npm-scripts-example
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
56 lines (49 loc) · 2.36 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
54
55
56
{
"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 <[email protected]> (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": "^0.1.4",
"live-reload": "^0.2.0",
"minifyify": "^6.0.0",
"mocha": "^2.0.1",
"nodemon": "^1.2.1",
"opener": "^1.4.0",
"parallelshell": "^1.0.0",
"rimraf": "^2.2.8",
"s3-cli": "^0.11.1",
"stylus": "^0.49.3"
},
"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": "parallelshell \"npm run watch:test -s\" \"npm run watch:build -s\"",
"watch:test": "karma start",
"watch:build": "nodemon -q -w assets/ --ext \".\" --exec \"npm run build\"",
"open:prod": "opener http://aws-website-capoeirastudioproduction-b7pn6.s3-website-us-east-1.amazonaws.com",
"open:stage": "opener http://aws-website-capoeirastudiostaging-fazir.s3-website-us-east-1.amazonaws.com",
"open:dev": "opener http://localhost:9090",
"deploy:prod": "s3-cli sync ./dist/ s3://aws-website-capoeirastudioproduction-b7pn6.s3-website-us-east-1.amazonaws.com/",
"deploy:stage": "s3-cli sync ./dist/ s3://aws-website-capoeirastudiostaging-fazir.s3-website-us-east-1.amazonaws.com/",
"serve": "http-server -p 9090 dist/",
"live-reload": "live-reload --port 9091 dist/",
"dev": "npm run open:dev -s && parallelshell \"npm run live-reload -s\" \"npm run serve -s\" \"npm run watch -s\""
}
}