-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
65 lines (65 loc) · 2.89 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
{
"name": "theming_codekit",
"version": "1.0.0",
"description": "A package of utilities used to theme our site",
"main": "index.js",
"devDependencies": {
"autoprefixer": "^9.1.0",
"breakpoint-sass": "^2.7.1",
"chroma-sass": "^1.2.6",
"cross-conf-env": "^1.1.2",
"eslint": "^5.3.0",
"imagemin": "^6.1.0",
"imagemin-cli": "^3.0.0",
"imagemin-gifsicle": "^6.0.1",
"imagemin-jpegoptim": "^6.0.0",
"imagemin-jpegtran": "^6.0.0",
"imagemin-optipng": "^6.0.0",
"imagemin-pngcrush": "^6.0.0",
"imagemin-pngout": "^4.0.0",
"imagemin-zopfli": "^6.0.0",
"kss": "^3.0.0-beta.23",
"modernizr": "^3.6.0",
"node-sass": "^4.12.0",
"npm-run-all": "^4.1.5",
"onchange": "^4.1.0",
"parallelshell": "^3.0.1",
"postcss-cli": "^6.0.0",
"sass-lint": "^1.13.1",
"svg-sprite-generator": "0.0.7",
"svgo": "^1.2.2",
"uglify-js": "^3.5.12"
},
"scripts": {
"//": "build scripts",
"kss": "kss --config styleguide/config/kss-config.json",
"modernizr": "modernizr -uc config/modernizr-config.json -d js/modernizr.min.js",
"autoprefixer": "npx postcss -u autoprefixer -r css/*css --no-map",
"uglify": "mkdir -p js && uglifyjs src/js/*.js -m -o js/scripts.js",
"scss:dev": "mkdir -p css && node-sass --source-map true --source-comments true --source-map-contents true --output-style expanded -o css src/scss",
"scss:prod": "mkdir -p css && node-sass --output-style compressed -o css src/scss",
"imgmin": "mkdir -p images && node imagemin.js",
"svgmin": "mkdir -p images && svgo -f src/svgs -o images --config config/svgo-config.yml",
"icons": "svgo -f src/images/icons && mkdir -p images && svg-sprite-generate -d src/images/icons -o images/icons.svg",
"lint": "npm-run-all --parallel lint-*",
"lint-js": "eslint src/js/**",
"lint-scss": "sass-lint -c $npm_package_config_sasslintConfig $npm_package_config_scssfile -v -q",
"docs-serve": "docker run --rm -it -p $npm_package_config_dockerPort:8000 -v ${PWD}:/docs $npm_package_config_dockerRepo",
"docs-build": "docker run --rm -it -v ${PWD}:/docs $npm_package_config_dockerRepo build",
"watch": "npm-run-all --parallel watch-*",
"watch-scss": "onchange 'src/scss/**/*.scss' -- npm run scss:dev",
"watch-js": "onchange 'src/js/*.js' -- npm run build-js",
"watch-img": "onchange 'src/images/*.{gif,jpg,jpeg,JPG,JPEG,png}' -- npm run imgmin",
"build": "npm-run-all --parallel build-* imgmin",
"build-css": "npm run lint-scss && npm run scss:prod && npm run autoprefixer",
"d-js": "npm run modernizr && npm run lint-js && npm run uglify"
},
"config": {
"//": "Some useful configuration we can use to pass back to scripts",
"scssfile": "src/scss/**/*.scss",
"sasslintConfig": "config/.sass-lint.yml",
"dockerRepo": "squidfunk/mkdocs-material",
"dockerPort": "8000"
},
"author": "[email protected]"
}