-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
68 lines (68 loc) · 5.07 KB
/
package.json
File metadata and controls
68 lines (68 loc) · 5.07 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
{
"name": "nicsdru_corp_lite",
"version": "1.0.0",
"description": "A package of utilities and scripts used to theme sites in the corp-lite project",
"engines": {
"yarn": ">= 1.6",
"node": ">= 18.0"
},
"scripts": {
"––––––– JS SCRIPTS": "–––––––––––––",
"js:compile": "node web/themes/custom/nicsdru_corplite_theme/config/uglify-js.js",
"js:lint": "node web/themes/custom/nicsdru_corplite_theme/config/eslint.js -c ",
"------- CKEDITOR SCRIPTS": "-----------",
"build:ckeditor:css": "postcss web/themes/custom/nicsdru_corplite_theme/css/admin/ckeditor-source.css -o web/themes/custom/nicsdru_corplite_theme/css/admin/ckeditor-theme.css --config web/themes/custom/nicsdru_corplite_theme//config/postcss.config.js --env ckeditor",
"build:layout:css": "postcss web/themes/custom/nicsdru_corplite_theme/css/admin/ckeditor-base.css -o web/themes/custom/nicsdru_corplite_theme/css/admin/ckeditor-theme-layout.css --config web/themes/custom/nicsdru_corplite_theme//config/postcss.config.js --env ckeditor-layout",
"build:menu:css": "postcss web/themes/custom/nicsdru_corplite_theme/css/admin/ckeditor-menu.css -o web/themes/custom/nicsdru_corplite_theme/css/admin/ckeditor-theme-menu.css --config web/themes/custom/nicsdru_corplite_theme//config/postcss.config.js --env ckeditor-menu",
"build:ckeditor:all": "npm run build:ckeditor:css && npm run build:layout:css && npm run build:menu:css",
"––––––– CSS SCRIPTS": "–––––––––––––",
"scss:dev": "sass --style=expanded --source-map --embed-sources --no-error-css $npm_package_config_compileDir_corplite $npm_package_config_compileDir_afbini $npm_package_config_compileDir_etini $npm_package_config_compileDir_hseni $npm_package_config_compileDir_nisra $npm_package_config_compileDir_nsmc",
"scss:prod": "sass --style=compressed --no-source-map --no-error-css $npm_package_config_compileDir_corplite $npm_package_config_compileDir_afbini $npm_package_config_compileDir_etini $npm_package_config_compileDir_hseni $npm_package_config_compileDir_nisra $npm_package_config_compileDir_nsmc",
"scss:lint": "stylelint web/themes/custom/nicsdru_corplite_theme/src/scss/**/*.scss",
"scss:lint:fix": "stylelint web/themes/custom/nicsdru_corplite_theme/src/scss/**/*.scss --fix",
"css-post": "postcss --config web/themes/custom/nicsdru_corplite_theme/config/postcss.config.js --replace \"web/themes/custom/nicsdru_corplite_theme/css/**/*.css\" --env theme",
"––––––– WATCH SCRIPTS": "–––––––––––––",
"watch": "npm-run-all --parallel watch-*",
"watch-corplite-scss": "onchange 'web/themes/custom/nicsdru_corplite_theme/src/scss/**/*.scss' -- npm run scss:dev",
"watch-afbini:scss": "onchange 'project/sites/afbini/themes/afbini_theme/src/scss/**/*.scss' -- npm run scss:dev",
"watch-etini:scss": "onchange 'project/sites/etini/themes/etini_theme/src/scss/**/*.scss' -- npm run scss:dev",
"watch-hseni:scss": "onchange 'project/sites/hseni/themes/hseni_theme/src/scss/**/*.scss' -- npm run scss:dev",
"watch-nisra:scss": "onchange 'project/sites/nisra/themes/nisra_theme/src/scss/**/*.scss' -- npm run scss:dev",
"watch-nsmc:scss": "onchange 'project/sites/northsouthministerialcouncil/themes/northsouthministerialcouncil_theme/src/scss/**/*.scss' -- npm run scss:dev",
"––––––– BUILD SCRIPTS": "–––––––––––––",
"build": "npm-run-all --parallel build-*",
"build-css": "npm-run-all --parallel scss:prod --sequential css-post build:ckeditor:all",
"build-js": "npm run js:compile"
},
"config": {
"//": "Some useful configuration we can use to pass back to scripts",
"compileDir_corplite": "web/themes/custom/nicsdru_corplite_theme/src/scss/:web/themes/custom/nicsdru_corplite_theme/css/",
"compileDir_afbini": "project/sites/afbini/themes/afbini_theme/src/scss/:project/sites/afbini/themes/afbini_theme/css/",
"compileDir_etini": "project/sites/etini/themes/etini_theme/src/scss/:project/sites/etini/themes/etini_theme/css/",
"compileDir_hseni": "project/sites/hseni/themes/hseni_theme/src/scss/:project/sites/hseni/themes/hseni_theme/css/",
"compileDir_nisra": "project/sites/nisra/themes/nisra_theme/src/scss/:project/sites/nisra/themes/nisra_theme/css/",
"compileDir_nsmc": "project/sites/northsouthministerialcouncil/themes/northsouthministerialcouncil_theme/src/scss/:project/sites/northsouthministerialcouncil/themes/northsouthministerialcouncil_theme/css/"
},
"browserslist": [
"> 1%",
"last 2 versions"
],
"devDependencies": {
"autoprefixer": "^10.4.20",
"breakpoint-sass": "^3.0.0",
"eslint": "^9.9.1",
"npm-run-all": "^4.1.5",
"onchange": "^7.1.0",
"parallelshell": "^3.0.2",
"postcss": "^8.5.6",
"postcss-assets": "^6.0.0",
"postcss-cli": "^11.0.1",
"postcss-import": "^16.1.1",
"postcss-inline-svg": "^6.0.0",
"postcss-prefix-selector": "^2.1.1",
"sass": "^1.77.8",
"stylelint": "^16.9.0",
"stylelint-config-standard-scss": "^13.1.0",
"uglify-js": "^3.19.3"
}
}