-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
94 lines (94 loc) · 4.14 KB
/
package.json
File metadata and controls
94 lines (94 loc) · 4.14 KB
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
"name": "unity_2_theme_builder",
"version": "0.0.0",
"description": "A package of utilities used to theme sites in this multisite setup",
"devDependencies": {
"autoprefixer": "^10.4.13",
"breakpoint-sass": "^3.0.0",
"chroma-sass": "^1.2.6",
"cli-real-favicon": "^0.0.8",
"cross-conf-env": "^1.3.0",
"eslint": "^7.32.0",
"eslint-config-airbnb": "^18.2.1",
"eslint-config-prettier": "^8.6.0",
"eslint-plugin-import": "^2.27.4",
"eslint-plugin-jsx-a11y": "^6.7.1",
"eslint-plugin-prettier": "^4.2.1",
"eslint-plugin-react": "^7.32.0",
"eslint-plugin-react-hooks": "^4.2.0",
"gh-pages": "^2.2.0",
"highlight.js": "^10.7.2",
"imagemin": "^7.0.1",
"imagemin-cli": "^6.0.0",
"imagemin-gifsicle": "^7.0.0",
"imagemin-jpegoptim": "^6.0.0",
"imagemin-jpegtran": "^6.0.0",
"imagemin-optipng": "^7.1.0",
"imagemin-pngcrush": "^6.0.0",
"imagemin-pngout": "^4.0.0",
"imagemin-zopfli": "^6.0.0",
"kss": "^3.1.0",
"modernizr": "^3.11.4",
"nightwatch": "^1.7.8",
"nightwatch-accessibility": "^1.8.0",
"node-sass": "^6.0.1",
"normalize.css": "^8.0.1",
"npm-run-all": "^4.1.5",
"onchange": "^7.1.0",
"parallelshell": "^3.0.1",
"postcss-assets": "^6.0.0",
"postcss-cli": "^10.1.0",
"postcss-inline-svg": "^4.1.0",
"prettier": "^2.8.3",
"sass": "^1.57.1",
"stylelint": "^14.16.1",
"stylelint-config-standard": "^29.0.0",
"stylelint-config-standard-scss": "^6.1.0",
"stylelint-order": "^6.0.1",
"stylelint-scss": "^4.3.0",
"svg-sprite-generator": "0.0.7",
"svgo": "^1.3.2",
"uglify-js": "^3.17.4"
},
"scripts": {
"––––––– JS SCRIPTS": "–––––––––––––",
"js": "npm-run-all --sequential js-lint js-compile",
"js-lint": "./node_modules/.bin/eslint src/js/**",
"js-compile": "npm-run-all --parallel js-compile-*",
"––––––– CSS SCRIPTS": "–––––––––––––",
"css": "npm-run-all --sequential scss-dev css-post",
"css-lint": "sass-lint -c $npm_package_config_sasslintConfig $npm_package_config_scssfile -v -q",
"css-post": "postcss --config config/postcss.config.js --replace \"css/**/*.css\"",
"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 --no-source-map --output-style compressed -o css src/scss",
"––––––– IMG and SVG SCRIPTS": "–––––––––––––",
"imgmin": "mkdir -p images && node imagemin.js",
"svgmin": "mkdir -p images && svgo -f src/images -o images --config config/svgo-config.yml",
"icons": "svgo -f src/images/icons && mkdir -p templates/svg && svg-sprite-generate -d src/images/icons -o templates/svg/icons.svg",
"favicons": "npm-run-all --sequential favicons-*",
"favicons-generate": "mkdir -p images/favicons && ./node_modules/.bin/real-favicon generate config/faviconDescription.json config/faviconData.json images/favicons",
"favicons-inject": "./node_modules/.bin/real-favicon inject config/faviconData.json templates/block config/favicon.html && rm config/faviconData.json",
"favicons-file-fix": "[ -n \"$(tail -c1 templates/block/favicon.html)\" ] && echo >> templates/block/favicon.html",
"favicons-tidyup": "cp images/favicons/favicon.ico favicon.ico",
"––––––– WATCH SCRIPTS": "–––––––––––––",
"watch": "npm-run-all --parallel watch-*",
"watch-scss": "onchange 'src/scss/**/*.scss' -- npm run css",
"_watch-js": "onchange 'src/js/**/*.js' -- npm run js-compile",
"watch-img": "onchange 'src/images/*.{gif,jpg,jpeg,JPG,JPEG,png}' -- npm run imgmin",
"––––––– BUILD SCRIPTS": "–––––––––––––",
"build": "npm-run-all --parallel build-*",
"build-css": "npm-run-all --parallel css-lint* scss-prod --sequential css-post",
"_build-js": "npm run js",
"build-img": "npm run imgmin",
"lint": "npm-run-all --parallel css-lint js-lint"
},
"config": {
"//": "Some useful configuration we can use to pass back to scripts",
"scssfile": "src/scss/**/*.scss",
"sasslintConfig": "config/.sass-lint.yml"
},
"browserslist": [
"> 1%",
"last 2 versions",
"ie >= 10"
]
}