-
-
Notifications
You must be signed in to change notification settings - Fork 25
/
package.json
executable file
·73 lines (73 loc) · 2.62 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
{
"name": "milligram.github.io",
"version": "0.9.0",
"description": "Milligram website",
"homepage": "https://milligram.io",
"repository": "milligram/milligram.github.io",
"license": "MIT",
"author": "CJ Patoilo <[email protected]>",
"private": true,
"dependencies": {
"milligram": "^1.4.1"
},
"devDependencies": {
"browser-sync": "^2.26.12",
"cname": "^0.1.1",
"csscompile": "^0.3.0",
"gh-pages": "^3.0.0",
"htmlcompile": "^0.4.1",
"husky": "^4.2.5",
"imgcompile": "^0.1.0",
"jscompile": "^0.2.1",
"lint-staged": "^10.2.11",
"npm-run-all": "^4.1.5",
"onchange": "^7.0.2",
"opn-cli": "^5.0.0",
"plato": "^1.7.0",
"prettier-standard": "^16.3.0",
"rimraf": "^3.0.2",
"sass-lint": "^1.13.1",
"sw-precache": "^5.2.1"
},
"scripts": {
"build": "rimraf dist && cname dist && run-p build:fonts build:templates build:styles build:scripts build:images",
"build:fonts": "cp -r src/fonts dist",
"build:templates": "htmlcompile src dist",
"build:styles": "csscompile src/styles dist/styles",
"build:scripts": "jscompile src/scripts dist/scripts",
"build:images": "imgcompile src/images dist/images",
"complexity": "run-p complexity:styles complexity:scripts",
"complexity:styles": "opn http://www.cssstats.com/stats?url=http://localhost:3000",
"complexity:scripts": "plato -r -d test/complexity -e .eslintrc -x .json src/**/*.js && opn test/complexity/index.html",
"deploy": "rimraf dist/layout.html dist/fonts dist/templates && cp -r src/manifest.json dist && sw-precache --verbose --config sw-precache.config.js && gh-pages -d dist -b master",
"lint": "prettier-standard --check && sass-lint -c .sasslintrc src/styles/*.sass --verbose --no-exit",
"server": "browser-sync --no-notify start -s dist -f dist",
"start": "run-s build watch",
"test": "npm run build",
"watch": "run-p watch:templates watch:styles watch:scripts watch:images server",
"watch:fonts": "onchange 'src/fonts' -- run-p build:fonts",
"watch:templates": "onchange 'src/**/*.{pug,jade,ejs,haml,hbs,hogan,html}' -- run-p build:templates",
"watch:styles": "onchange 'src/styles' -- run-p build:styles",
"watch:scripts": "onchange 'src/scripts' -- run-p build:scripts",
"watch:images": "onchange 'src/images' -- run-p build:images"
},
"engines": {
"node": "^12.18.0",
"npm": "^6.14.5"
},
"prettier": {
"jsxSingleQuote": false,
"trailingComma": "all"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"**/*": [
"prettier-standard --format",
"git add"
]
}
}