/
package.json
executable file
·81 lines (74 loc) · 2.71 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
{
"private": true,
"engines": {
"node": ">=0.10.0"
},
"devDependencies": {
"git-directory-deploy": "^1.4.0",
"autoprefixer": "^6.3.3",
"browserify-shim": "^3.8.12",
"postcss-cli": "^2.5.1",
"node-sass": "^3.4.2",
"eslint": "^2.2.0",
"uglify-js": "^2.6.1",
"parallelshell": "^2.0.0",
"imagemin-cli": "^2.1.0",
"browserify": "^12.0.0",
"eslint-plugin-react": "^4.0.0",
"watchify": "^3.7.0",
"strictify": "^0.2.0",
"live-server": "^0.9.2",
"onchange": "^2.0.0",
"jquery": "^2.2.0",
"underscore": "^1.8.3"
, "bootstrap-sass": "^3.3.6"
, "backbone": "^1.3.1"
, "react": "^0.14.7"
, "react-dom": "^0.14.7"
, "reactify": "^1.1.1"
, "react-bootstrap": "^0.28.3"
, "backbone-react-component": "^0.10.0"
, "parse": "^1.8.1"
, "sortablejs": "^1.4.2"
, "leaflet.markercluster": "^0.4.0"
, "mapbox.js": "^2.0"
, "mapbox-directions.js": "^0.4.0"
},
"scripts": {
"html": "cp app/*.html dist/",
"fonts": "cp app/fonts/* dist/fonts/",
"scss": "sass --style compressed --update app/styles:dist/css",
"autoprefixer": "postcss -u autoprefixer -r dist/css/*.css",
"lint": "eslint app/scripts",
"browserify": "browserify app/scripts/index.js | uglifyjs -c > dist/js/bundle.js",
"imagemin": "imagemin app/images dist/images -p",
"favicon": "cp app/favicon.ico dist/",
"build:css": "npm run scss && npm run autoprefixer",
"build:js": "npm run lint && npm run browserify",
"build:images": "npm run imagemin && npm run favicon",
"build": "npm run html && npm run build:css && npm run build:js && npm run build:images",
"deploy": "npm run build && git-directory-deploy --directory dist/ && npm run deploy:done",
"deploy:done": "say -v Karen 'Your project is now on gh pages. Do not forget to add the link to the re po description.'",
"watch:fonts": "npm run fonts && onchange 'app/fonts/*' -- npm run fonts",
"watch:scss": "sass --watch app/styles:dist/css",
"watch:js": "watchify app/scripts/index.js -o dist/js/bundle.js",
"watch:html": "npm run html && onchange 'app/**/*.html' -- npm run html",
"watch:images": "npm run build:images && onchange 'app/images/*' -- npm run build:images",
"server": "live-server --open='dist' --browser='Google Chrome.app' --port='9001' ",
"watch": "parallelshell 'npm run watch:html' 'npm run watch:fonts' 'npm run watch:scss' 'npm run watch:images' 'npm run watch:js' 'npm run server'"
},
"browserify": {
"transform": [
"browserify-shim",
"reactify",
"strictify"
]
},
"browserify-shim": {
"jQuery": "$",
"underscore": "_"
},
"strictify":{
"exclude": [".handlebars", ".hbs", "json"]
}
}