-
Notifications
You must be signed in to change notification settings - Fork 14
/
package.json
74 lines (74 loc) · 4.28 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
{
"name": "studio24-apollo",
"version": "2.0.0",
"author": "Studio 24",
"description": "NPM scripts for building front-end website files",
"license": "MIT",
"config": {
"from": "assets-src",
"to": "public/dist/assets"
},
"repository": {
"type": "git",
"url": "https://github.com/w3c/w3c-website-templates-bundle"
},
"scripts": {
"css:core:compressed": "sass --no-source-map --style=compressed ${npm_package_config_from}/styles/core.scss ${npm_package_config_to}/styles/core.min.css",
"css:core:uncompressed": "sass --no-source-map --error-css --style=expanded ${npm_package_config_from}/styles/core.scss ${npm_package_config_to}/styles/core.css",
"css:advanced:compressed": "sass --no-source-map --style=compressed ${npm_package_config_from}/styles/advanced.scss ${npm_package_config_to}/styles/advanced.min.css",
"css:advanced:uncompressed": "sass --no-source-map --error-css --style=expanded ${npm_package_config_from}/styles/advanced.scss ${npm_package_config_to}/styles/advanced.css",
"css:print:compressed": "sass --no-source-map --style=compressed ${npm_package_config_from}/styles/print.scss ${npm_package_config_to}/styles/print.min.css",
"css:print:uncompressed": "sass --no-source-map --error-css --style=expanded ${npm_package_config_from}/styles/print.scss ${npm_package_config_to}/styles/print.css",
"css:sass": "npm-run-all --parallel css:core:* css:advanced:* css:print:*",
"css:autoprefixer": "postcss ${npm_package_config_to}/styles/*.css --no-map --use autoprefixer -d ${npm_package_config_to}/styles/",
"css": "npm-run-all --sequential css:sass css:autoprefixer",
"images:imagemin": "imagemin ${npm_package_config_from}/images/* --out-dir=${npm_package_config_to}/images",
"images:svg": "svgo --folder=${npm_package_config_from}/svg --output=${npm_package_config_to}/svg --config svgo.config.js",
"images": "npm-run-all --parallel images:imagemin images:svg",
"fonts": "shx cp -r ${npm_package_config_from}/fonts/* ${npm_package_config_to}/fonts",
"js:copypackages": "copyfiles -f ./node_modules/fontfaceobserver/fontfaceobserver.js ${npm_package_config_from}/js/libraries",
"js:copylibraries": "shx cp -r ${npm_package_config_from}/js/libraries/* ${npm_package_config_to}/js/libraries/",
"webpack:uncompressed": "webpack --config webpack.config.js",
"webpack:compressed": "webpack --config webpack.config.min.js",
"js": "npm-run-all --parallel js:copypackages js:copylibraries webpack:*",
"build": "npm-run-all --parallel css images fonts js",
"prebuild": "shx rm -rf ${npm_package_config_to} && shx mkdir -p ${npm_package_config_to}/fonts && shx mkdir ${npm_package_config_to}/images && shx mkdir ${npm_package_config_to}/js && shx mkdir ${npm_package_config_to}/js/libraries && shx mkdir ${npm_package_config_to}/styles && shx mkdir ${npm_package_config_to}/svg",
"watch:css": "watch 'npm run css' ${npm_package_config_from}/styles --interval=1",
"watch:images:svg": "watch 'npm run images:svg' ${npm_package_config_from}/svg --interval=1",
"watch:images:imagemin": "watch 'npm run images:imagemin' ${npm_package_config_from}/images --interval=1",
"watch:fonts": "watch 'npm run fonts' ${npm_package_config_from}/fonts --interval=1",
"watch:js:copylibraries": "watch 'npm run js:copylibraries' ${npm_package_config_from}/js/libraries --interval=1",
"watch:webpack:uncompressed": "webpack --watch --config webpack.config.js",
"watch:webpack:compressed": "webpack --watch --config webpack.config.min.js",
"watch": "npm-run-all --parallel watch:* watch:*:*"
},
"dependencies": {
"@babel/core": "^7.15.5",
"@babel/preset-env": "^7.15.6",
"accessible-autocomplete": "^2.0.3",
"autoprefixer": "^10.4.2",
"babel-loader": "^8.2.2",
"babel-polyfill": "^6.26.0",
"copyfiles": "^2.3.0",
"decompress": "^4.2.1",
"fontfaceobserver": "^2.1.0",
"imagemin-cli": "^6.0.0",
"js-yaml": "^3.13.1",
"lodash.template": "^4.5.0",
"normalize.css": "^8.0.1",
"npm-run-all": "^4.1.5",
"postcss": "^8.4.1",
"postcss-cli": "^9.1.0",
"sass": "^1.56.1",
"shx": "^0.2.2",
"svgo": "^2.8.0",
"tunnel-agent": "^0.6.0",
"watch": "^0.13.0",
"webpack": "^5.43.0",
"webpack-cli": "^4.8.0"
},
"engines": {
"node": ">=12",
"npm": ">=6"
}
}