-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy pathpackage.json
109 lines (103 loc) · 4.51 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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
{
"name": "Takt",
"version": "0.0.0",
"author": "Simon Evans",
"repository": {
"type": "git",
"url": "https://github.com/SimonDEvans/takt"
},
"browserslist": [
"> 3%",
"iOS 8",
"last 2 versions"
],
"sasslintConfig": ".sass-lint.yml",
"config": {
"src_html": "src/html",
"src_js": "src/javascript",
"src_css": "src/sass",
"src_img": "src/images",
"dest_html": "dist/html",
"dest_js": "dist/js",
"dest_css": "dist/css",
"dest_img": "dist/images",
"dist": "dist"
},
"scripts": {
"//[ Utility ]//": "",
"upload": "dploy",
"serve": "browser-sync start --config browsersync.config.js",
"http": "http-server './dist' -p 4000",
"reload": "browser-sync reload",
"reload:css": "npm run reload -- --files='*.css'",
"clean:src": "rm -rf $npm_package_config_dest_html/{*.html,js/**,css/**,img/**}",
"clean:dist": "rm -rf $npm_package_config_dist/{js/**,css/**,images/**,html/**}",
"clean": "npm-run-all -p clean:*",
"git:init": "rm -rf .git && git init && git add . && git commit -m 'Project start'",
"//[ SASS ]//": "",
"compile:css": "node-sass -o $npm_package_config_dest_css $npm_package_config_src_css",
"compile:css:dev": "npm run compile:css -- --output-style expanded --source-map true",
"compile:css:watch": "npm run compile:css -- --output-style expanded --source-map true --watch",
"compile:css:prod": "npm run compile:css -- --output-style compressed && npm run autoprefixer",
"compile:css:debug": "npm run compile:css -- --output-style compressed --watch",
"autoprefixer": "postcss -u autoprefixer -b 'last 2 versions, iOS 8, > 3%' -r $npm_package_config_dest_css/*.css",
"//[ Javascript ]//": "",
"compile:js": "rollup -c",
"compile:js:dev": "npm run compile:js -- --environment entry:main.js",
"compile:js:watch": "npm run compile:js -- --environment entry:main.js --watch",
"compile:js:prod": "npm run compile:js -- --environment entry:main.js,production",
"compile:js:debug": "npm run compile:js -- --environment entry:main.js,production --watch",
"//[ Linting ]//": "",
"lint:css": "sass-lint $npm_package_config_src_css'/**/**' -v -q || true",
"lint:js": "eslint $npm_package_config_src_js --ignore-pattern **/vendor/**/*.js || true",
"lint": "npm-run-all -p lint:js lint:css",
"//[ Watches ]//": "",
"watch:html": "onchange $npm_package_config_src_html'/**/**' -- npm-run-all sync:html reload",
"watch:html:debug": "onchange $npm_package_config_src_html'/**/**' -- npm-run-all sync:html",
"watch:img": "onchange $npm_package_config_src_img'/**/**' -- npm-run-all sync:img reload",
"watch:img:debug": "onchange $npm_package_config_src_img'/**/**' -- npm-run-all sync:img",
"watch:js": "onchange $npm_package_config_dest_js'/**/**' -- npm-run-all -p reload lint:js",
"watch:css": "onchange $npm_package_config_dest_css -- npm-run-all -p reload:css lint:css",
"watch:css:debug": "onchange $npm_package_config_dest_css -- npm-run-all -p autoprefixer",
"watch": "npm-run-all -p watch:*",
"//[ Syncs ]//": "",
"sync:html": "rsync -rtvu --delete $npm_package_config_src_html/ $npm_package_config_dest_html/",
"sync:img": "rsync -rtvu --delete $npm_package_config_src_img/ $npm_package_config_dest_img/",
"sync": "npm-run-all -p sync:*",
"//[ Tasks ]//": "",
"build": "npm-run-all clean sync compile:*:dev",
"build:prod": "npm-run-all clean sync compile:*:prod",
"deploy": "npm-run-all clean build:prod upload",
"start": "npm-run-all clean sync compile:*:dev -p compile:*:watch watch serve --silent",
"debug": "npm-run-all clean sync compile:*:prod -p compile:*:debug watch:*:debug http --silent",
"postinstall": "npm run build"
},
"devDependencies": {
"autoprefixer": "^6.3.6",
"babel-eslint": "^7.1.1",
"babel-plugin-external-helpers": "^6.8.0",
"babel-preset-es2015": "^6.13.2",
"browser-sync": "^2.13.0",
"dploy": "^1.2.0",
"eslint": "^3.2.2",
"fastclick": "^1.0.6",
"http-server": "^0.9.0",
"node-sass": "^4.1.1",
"npm-run-all": "^3.1.2",
"onchange": "^3.2.0",
"postcss-cli": "^2.5.2",
"rollup": "^0.38.0",
"rollup-plugin-babel": "^2.6.1",
"rollup-plugin-commonjs": "^6.0.1",
"rollup-plugin-eslint": "^3.0.0",
"rollup-plugin-filesize": "^1.0.1",
"rollup-plugin-node-resolve": "^2.0.0",
"rollup-plugin-sizes": "^0.2.3",
"rollup-plugin-uglify": "^1.0.1",
"rollup-watch": "^3.2.2",
"sass-lint": "^1.8.2"
},
"engines": {
"node": ">=4"
}
}