-
Notifications
You must be signed in to change notification settings - Fork 1
/
package.json
125 lines (125 loc) · 6.26 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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
{
"name": "nicsdru_unity_theme",
"version": "10.1.16",
"description": "A package of utilities used to theme our site",
"main": "index.js",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/dof-dss/nicsdru_unity_theme"
},
"engines": {
"node": ">=14.x"
},
"files": [
"src/scss/"
],
"devDependencies": {
"autoprefixer": "^9.7.6",
"breakpoint-sass": "^2.7.1",
"chroma-sass": "^1.2.6",
"cli-real-favicon": "^0.0.8",
"cross-conf-env": "^1.3.0",
"eslint": "^6.8.0",
"eslint-config-airbnb": "^18.1.0",
"eslint-config-prettier": "^6.11.0",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-jsx-a11y": "^6.9.0",
"eslint-plugin-prettier": "^3.1.3",
"eslint-plugin-react": "^7.34.3",
"eslint-plugin-react-hooks": "^2.5.1",
"gh-pages": "^2.2.0",
"highlight.js": "^10.0.3",
"imagemin": "^7.0.1",
"imagemin-cli": "^5.1.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.13.0",
"nicsdru_origins_theme": "^0.3.11",
"nightwatch": "^1.7.13",
"nightwatch-accessibility": "^1.11.3",
"npm-run-all": "^4.1.5",
"onchange": "^7.0.2",
"parallelshell": "^3.0.1",
"postcss-assets": "^5.0.0",
"postcss-cli": "^7.1.1",
"postcss-inline-svg": "^4.1.0",
"prettier": "^2.8.8",
"sass": "^1.77.7",
"sass-lint": "^1.13.1",
"svg-sprite-generator": "0.0.7",
"svgo": "^1.3.2",
"uglify-js": "^3.18.0"
},
"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-*",
"js-compile-modernizr": "modernizr -uc config/modernizr-config.json -d js/modernizr.min.js",
"js-compile-extwin-lib": "mkdir -p js && uglifyjs src/js/ext-win-script.js -o js/ext-win-script.js",
"js-compile-menu-lib": "mkdir -p js && uglifyjs src/js/unity-menu-script.js -o js/unity-menu-script.js",
"js-compile-menu-toggler-lib": "mkdir -p js && uglifyjs src/js/main-menu-toggle.js -o js/main-menu-toggle.js",
"js-compile-facets-lib": "mkdir -p js && uglifyjs src/js/unity-facets.js -o js/unity-facets.js",
"js-compile-thwoop-lib": "mkdir -p js && uglifyjs src/js/thwoop-images.js -o js/thwoop-images.js",
"js-compile-accordions": "mkdir -p js && uglifyjs src/js/accordions.js -o js/accordions.js",
"js-compile-layout-builder": "mkdir -p js && uglifyjs src/js/layout-builder.js -o js/layout-builder.js",
"js-compile-empty-tags": "mkdir -p js && uglifyjs src/js/empty-tags-script.js -o js/empty-tags-script.js",
"––––––– 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",
"scss-docs": "mkdir -p styleguide && mkdir -p styleguide/css && node-sass --no-source-map --output-style compressed -o styleguide/css src/scss/styles.scss",
"scss-kss-builder": "node-sass --no-source-map --output-style compressed config/nics-builder/kss-assets/kss.scss config/nics-builder/kss-assets/kss.css",
"sass": "sass --style=compressed src/scss/1_base/_index.scss css/test.css",
"––––––– 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",
"––––––– DOCUMENTATION SCRIPTS": "–––––––––––––",
"docs-build": "npm-run-all --sequential scss-kss-builder scss-docs docs-compile",
"predocs-chroma": "sass --no-source-map --style=expanded src/scss/init/kss-chroma-markup.scss css/kss-chroma-markup.css",
"docs-chroma": "node config/chroma.js",
"docs-compile": "kss --config config/kss-config.json",
"docs-publish": "gh-pages -d styleguide",
"––––––– 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-all --parallel imgmin svgmin icons",
"build:docs": "npm run docs-build",
"lint": "npm-run-all --parallel css-lint js-lint",
"test": "echo \"No test specified\""
},
"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"
],
"dependencies": {
"node-sass": "^5.0.0"
}
}