Skip to content

Commit 32dd78c

Browse files
committed
build(npm): lightning-css
Replace postcss and cleancss with lightning-css. Lightning-css is actively developed, but cleancss is in maintenance mode. Because lightning-css is also capable of prefixing CSS, postcss can also be replaced.
1 parent 691c522 commit 32dd78c

File tree

27 files changed

+24969
-16075
lines changed

27 files changed

+24969
-16075
lines changed

tobago-theme/package-lock.json

Lines changed: 260 additions & 352 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tobago-theme/package.json

Lines changed: 16 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -34,21 +34,21 @@
3434
"css-compile": "npm-run-all --parallel css-compile-*",
3535
"css-prefix": "npm-run-all --parallel css-prefix-*",
3636
"css-minify": "npm-run-all --parallel css-minify-*",
37-
"css-compile-standard": "sass --style expanded --source-map --embed-sources --no-error-css --load-path=./ tobago-theme-standard/src/main/scss/tobago-theme.scss:tobago-theme-standard/src/main/css/tobago.css",
38-
"css-prefix-standard": "postcss --config postcss.config.js --replace tobago-theme-standard/src/main/css/tobago.css",
39-
"css-minify-standard": "cleancss -O1 specialComments:0 --format breakWith=lf --source-map --source-map-inline-sources --output tobago-theme-standard/src/main/css/tobago.min.css tobago-theme-standard/src/main/css/tobago.css",
40-
"css-compile-speyside": "sass --style expanded --source-map --embed-sources --no-error-css --load-path=./ tobago-theme-speyside/src/main/scss/tobago-theme.scss:tobago-theme-speyside/src/main/css/tobago.css",
41-
"css-prefix-speyside": "postcss --config postcss.config.js --replace tobago-theme-speyside/src/main/css/tobago.css",
42-
"css-minify-speyside": "cleancss -O1 specialComments:0 --format breakWith=lf --source-map --source-map-inline-sources --output tobago-theme-speyside/src/main/css/tobago.min.css tobago-theme-speyside/src/main/css/tobago.css",
43-
"css-compile-scarborough": "sass --style expanded --source-map --embed-sources --no-error-css --load-path=./ tobago-theme-scarborough/src/main/scss/tobago-theme.scss:tobago-theme-scarborough/src/main/css/tobago.css",
44-
"css-prefix-scarborough": "postcss --config postcss.config.js --replace tobago-theme-scarborough/src/main/css/tobago.css",
45-
"css-minify-scarborough": "cleancss -O1 specialComments:0 --format breakWith=lf --source-map --source-map-inline-sources --output tobago-theme-scarborough/src/main/css/tobago.min.css tobago-theme-scarborough/src/main/css/tobago.css",
46-
"css-compile-roxborough": "sass --style expanded --source-map --embed-sources --no-error-css --load-path=./ tobago-theme-roxborough/src/main/scss/tobago-theme.scss:tobago-theme-roxborough/src/main/css/tobago.css",
47-
"css-prefix-roxborough": "postcss --config postcss.config.js --replace tobago-theme-roxborough/src/main/css/tobago.css",
48-
"css-minify-roxborough": "cleancss -O1 specialComments:0 --format breakWith=lf --source-map --source-map-inline-sources --output tobago-theme-roxborough/src/main/css/tobago.min.css tobago-theme-roxborough/src/main/css/tobago.css",
49-
"css-compile-charlotteville": "sass --style expanded --source-map --embed-sources --no-error-css --load-path=./ tobago-theme-charlotteville/src/main/scss/tobago-theme.scss:tobago-theme-charlotteville/src/main/css/tobago.css",
50-
"css-prefix-charlotteville": "postcss --config postcss.config.js --replace tobago-theme-charlotteville/src/main/css/tobago.css",
51-
"css-minify-charlotteville": "cleancss -O1 specialComments:0 --format breakWith=lf --source-map --source-map-inline-sources --output tobago-theme-charlotteville/src/main/css/tobago.min.css tobago-theme-charlotteville/src/main/css/tobago.css",
37+
"css-compile-standard": "sass --no-charset --no-error-css --load-path=./ tobago-theme-standard/src/main/scss/tobago-theme.scss:tobago-theme-standard/src/main/css/tobago.css",
38+
"css-prefix-standard": "lightningcss --targets '>= 0.1%' --sourcemap --output-file tobago-theme-standard/src/main/css/tobago.css tobago-theme-standard/src/main/css/tobago.css",
39+
"css-minify-standard": "lightningcss --minify --targets '>= 0.1%' --sourcemap --output-file tobago-theme-standard/src/main/css/tobago.min.css tobago-theme-standard/src/main/css/tobago.css",
40+
"css-compile-speyside": "sass --no-charset --no-error-css --load-path=./ tobago-theme-speyside/src/main/scss/tobago-theme.scss:tobago-theme-speyside/src/main/css/tobago.css",
41+
"css-prefix-speyside": "lightningcss --targets '>= 0.1%' --sourcemap --output-file tobago-theme-speyside/src/main/css/tobago.css tobago-theme-speyside/src/main/css/tobago.css",
42+
"css-minify-speyside": "lightningcss --minify --targets '>= 0.1%' --sourcemap --output-file tobago-theme-speyside/src/main/css/tobago.min.css tobago-theme-speyside/src/main/css/tobago.css",
43+
"css-compile-scarborough": "sass --no-charset --no-error-css --load-path=./ tobago-theme-scarborough/src/main/scss/tobago-theme.scss:tobago-theme-scarborough/src/main/css/tobago.css",
44+
"css-prefix-scarborough": "lightningcss --targets '>= 0.1%' --sourcemap --output-file tobago-theme-scarborough/src/main/css/tobago.css tobago-theme-scarborough/src/main/css/tobago.css",
45+
"css-minify-scarborough": "lightningcss --minify --targets '>= 0.1%' --sourcemap --output-file tobago-theme-scarborough/src/main/css/tobago.min.css tobago-theme-scarborough/src/main/css/tobago.css",
46+
"css-compile-roxborough": "sass --no-charset --no-error-css --load-path=./ tobago-theme-roxborough/src/main/scss/tobago-theme.scss:tobago-theme-roxborough/src/main/css/tobago.css",
47+
"css-prefix-roxborough": "lightningcss --targets '>= 0.1%' --sourcemap --output-file tobago-theme-roxborough/src/main/css/tobago.css tobago-theme-roxborough/src/main/css/tobago.css",
48+
"css-minify-roxborough": "lightningcss --minify --targets '>= 0.1%' --sourcemap --output-file tobago-theme-roxborough/src/main/css/tobago.min.css tobago-theme-roxborough/src/main/css/tobago.css",
49+
"css-compile-charlotteville": "sass --no-charset --no-error-css --load-path=./ tobago-theme-charlotteville/src/main/scss/tobago-theme.scss:tobago-theme-charlotteville/src/main/css/tobago.css",
50+
"css-prefix-charlotteville": "lightningcss --targets '>= 0.1%' --sourcemap --output-file tobago-theme-charlotteville/src/main/css/tobago.css tobago-theme-charlotteville/src/main/css/tobago.css",
51+
"css-minify-charlotteville": "lightningcss --minify --targets '>= 0.1%' --sourcemap --output-file tobago-theme-charlotteville/src/main/css/tobago.min.css tobago-theme-charlotteville/src/main/css/tobago.css",
5252
"bi": "npm-run-all --parallel bi-css bi-fonts",
5353
"bi-css": "ncp node_modules/bootstrap-icons/font/bootstrap-icons.css tobago-theme-standard/src/main/css/bootstrap-icons.css",
5454
"bi-fonts": "ncp node_modules/bootstrap-icons/font/fonts tobago-theme-standard/src/main/css/fonts",
@@ -88,12 +88,11 @@
8888
"@typescript-eslint/eslint-plugin": "^8.56.1",
8989
"@typescript-eslint/parser": "^8.56.1",
9090
"autoprefixer": "^10.4.27",
91-
"clean-css-cli": "^5.6.3",
9291
"eslint": "^10.0.2",
9392
"jest": "^30.2.0",
93+
"lightningcss-cli": "^1.31.1",
9494
"ncp": "^2.0.0",
9595
"npm-run-all": "^4.1.5",
96-
"postcss-cli": "^11.0.1",
9796
"rollup": "^4.59.0",
9897
"sass": "^1.97.3",
9998
"tslib": "^2.8.1",

0 commit comments

Comments
 (0)