-
Notifications
You must be signed in to change notification settings - Fork 6
/
package.json
87 lines (87 loc) · 2.75 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
{
"name": "static-lite",
"repository": "https://github.com/BrandonRomano/static-lite.git",
"author": "Brandon Romano",
"contributors": {
"name": "Henry Snopek",
"email": "hhsnopek@gmail.com",
"url": "hhsnopek.com"
},
"browser": {
"vue": "vue/dist/vue.common"
},
"browserify": {
"transform": [
[
"babelify",
{
"presets": [
"env"
]
}
]
]
},
"eslintConfig": {
"parserOptions": {
"sourceType": "module"
},
"env": {
"commonjs": true,
"es6": true
},
"extends": "prettier",
"plugins": [
"prettier"
],
"rules": {
"semi": [
"error",
"never"
],
"quotes": [
"error",
"single"
]
}
},
"devDependencies": {
"autoprefixer-stylus": "^0.14.0",
"babel-core": "^6.26.0",
"babel-preset-env": "^1.6.1",
"babelify": "^8.0.0",
"browser-sync": "^2.18.5",
"browserify": "^14.5.0",
"eslint": "^4.10.0",
"eslint-config-prettier": "^2.6.0",
"eslint-plugin-prettier": "^2.3.1",
"pug-cli": "^1.0.0-alpha6",
"stylus": "^0.54.5"
},
"dependencies": {
"vue": "^2.1.8",
"whatwg-fetch": "^2.0.3"
},
"scripts": {
"start": "npm run watch",
"build": "npm run compile",
"clean": "rm -rf public && npm run cache:clear",
"lint": "npm run lint:js",
"watch": "NODE_ENV=dev npm run compile:all && npm run serve & npm run watch:js & npm run watch:css & npm run watch:html & npm run watch:assets",
"watch:js": "scripts/watch src/js 'npm run compile:js'",
"watch:css": "scripts/watch src/css 'npm run compile:css'",
"watch:html": "scripts/watch src/html 'npm run compile:html'",
"watch:assets": "scripts/watch src/assets 'npm run compile:assets'",
"compile": "NODE_ENV=production npm run compile:all",
"compile:all": "npm run compile:js & npm run compile:css & npm run compile:html & npm run compile:assets & wait",
"compile:js": "npm run lint:js && mkdir -p public && browserify src/js/index.js > /tmp/bundle.js && mv /tmp/bundle.js public/bundle.js",
"compile:css": "mkdir -p public && stylus -u autoprefixer-stylus src/css/index.styl -o public/index.css",
"compile:html": "npm run compile:html:pages && npm run compile:html:templates",
"compile:html:pages": "mkdir -p public && pug src/html/pages/ --out public -O \"$(scripts/data_cache)\" --hierarchy",
"compile:html:templates": "mkdir -p public && cat \"$(scripts/data_cache)\" | src/templates",
"compile:assets": "mkdir -p public && cp -R src/assets/* public/",
"cache:clear": "if [[ -f .data ]]; then rm .data; fi",
"lint:js": "eslint src/js/**/*.js",
"serve": "browser-sync start --server --ss public --files public --xip"
}
}