-
Notifications
You must be signed in to change notification settings - Fork 24
/
package.json
68 lines (68 loc) · 3.9 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
{
"version": "13.0.0",
"name": "opencms-documentation",
"description": "The Alkacon Mercury template for OpenCms - OpenCms Documentation.",
"author": "Alkacon Software GmbH & Co. KG - http://www.alkacon.com",
"license": "Proprietary software",
"repository": "opencms-documentation",
"private": true,
"devDependencies": {
"autoprefixer": "^10.4.8",
"clean-css": "^5.3.1",
"clean-css-cli": "^5.6.1",
"copyfiles": "^2.4.1",
"del-cli": "^5.0.0",
"glob": "^8.0.3",
"minimist": "^1.2.6",
"mkdirp": "^1.0.4",
"nodemon": "^2.0.19",
"npm": "^8.18.0",
"npm-run-all": "^4.1.5",
"postcss": "^8.4.16",
"postcss-cli": "^10.0.0",
"postcss-urlrewrite": "^0.2.2",
"sass": "^1.54.5",
"uglify-js": "^3.17.0"
},
"browserslist": [
"> 0.5%",
"last 2 versions",
"not dead"
],
"config": {
"basedir": "../mercury-template",
"templateThemeVfsDir": "/system/modules/alkacon.mercury.theme"
},
"nodemonConfig": {
"delay": "1000"
},
"scripts": {
"css:docu": "npm run --silent cssg:all --xsrcdir=template-src/scss/themes/docu --xbuilddir=build/npm/docu --xdeploydir=/system/modules/alkacon.opencms.documentation/resources/css/",
"css-legacy:docu": "npm run --silent cssg:all --xsrcdir=template-src/scss/themes/legacy --xbuilddir=build/npm/legacy --xdeploydir=/system/modules/com.alkacon.opencms.documentation/resources/css/",
"//0": "",
"watch:legacy": "npm run --silent wat:all --xgenscript=css:legacy",
"watch:docu": "npm run --silent wat:all --xgenscript=css:docu",
"//1": "",
"js:dummy": "",
"//2": "",
"dist": "npm-run-all css js",
"css": "npm-run-all css:*",
"cssg:all": "npm-run-all cssg:echo cssg:clean cssg:sass cssg:postcss cssg:minify cssg:deploy",
"cssg:echo": "node ./npm_scripts/echo.js \"\u001b[0m\n\n##### \u001b[36;1mGenerating from: \u001b[31;1m$npm_config_xsrcdir\u001b[0m #####\n\nBuild dir : \u001b[33m$npm_config_xbuilddir\u001b[0m\nMount dir : \u001b[33m${OCMOUNT}\u001b[0m\nDeploy dir: \u001b[33m$npm_config_xdeploydir\u001b[0m\"",
"cssg:clean": "del-cli $npm_config_xbuilddir/1_processed/* $npm_config_xbuilddir/2_postcssed/* $npm_config_xbuilddir/3_minified/*",
"cssg:sass": "sass --source-map --embed-sources --stop-on-error --load-path='../' $npm_config_xsrcdir:$npm_config_xbuilddir/1_processed/$npm_config_xbuildfile",
"cssg:postcss": "postcss --config ./npm_scripts/postcss.config.js $npm_config_xbuilddir/1_processed/*.css --dir $npm_config_xbuilddir/2_postcssed",
"cssg:minify": "node ./npm_scripts/cleancss.js --cleancss --inputDir $npm_config_xbuilddir/2_postcssed/ --outputDir $npm_config_xbuilddir/3_minified",
"cssg:deploy": "copyfiles -f -V $npm_config_xbuilddir/3_minified/* ${OCMOUNT}/$npm_config_xdeploydir",
"cssg:deploy-cssonly": "copyfiles -f -V $npm_config_xbuilddir/3_minified/*.css ${OCMOUNT}/$npm_config_xdeploydir",
"cssg:addsrc": "npm-run-all cssg:all cssg:addsrc-deploy",
"cssg:addsrc-deploy": "copyfiles -f -V $npm_config_xbuilddir/$npm_config_xtheme/2_postcssed/*.css* ${OCMOUNT}/$npm_config_xdeploydir",
"js": "npm-run-all js:*",
"jsg:all": "npm-run-all cssg:echo jsg:clean jsg:mkdir jsg:minify jsg:deploy",
"jsg:clean": "del-cli $npm_config_xbuilddir",
"jsg:mkdir": "mkdirp $npm_config_xbuilddir",
"jsg:minify": "uglifyjs $npm_config_xsrcdir/$npm_config_xsrcfile.js --verbose --compress --mangle --source-map includeSources,url=$npm_config_xsrcfile.js.map --output $npm_config_xbuilddir/$npm_config_xsrcfile.js",
"jsg:deploy": "copyfiles -f -V $npm_config_xbuilddir/$npm_config_xsrcfile.* ${OCMOUNT}/$npm_config_xdeploydir",
"wat:all": "nodemon --watch template-src --watch ../mercury-customers/template-src --watch $npm_package_config_basedir/template-src --ext scss --exec \"npm run --silent $npm_config_xgenscript\""
}
}