Skip to content

Commit

Permalink
build(styles): build the theme with postcss when running the build sc…
Browse files Browse the repository at this point in the history
…ript
  • Loading branch information
Dan Büschlen committed Nov 14, 2023
1 parent f4c487f commit 20e25d4
Show file tree
Hide file tree
Showing 2 changed files with 169 additions and 1 deletion.
164 changes: 164 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@
"module": "dist/index.js",
"scripts": {
"analyze": "cem analyze --litelement --globs \"src/**/*.js\"",
"build": "rimraf dist && rollup -c rollup.config.js",
"build": "rimraf dist && npm run build:js && npm run build:css",
"build:js": "rollup -c rollup.config.js",
"build:css": "postcss src/styles/theme.css -o dist/theme.css",
"lint": "npm run lint:eslint && npm run lint:prettier",
"lint:eslint": "eslint --ext .js,.mjs,.html . --ignore-path .gitignore ",
"lint:prettier": "prettier \"**/*.{js,mjs,md,html,json}\" --check --ignore-path .gitignore",
Expand Down Expand Up @@ -49,6 +51,8 @@
"eslint-plugin-storybook": "^0.6.14",
"husky": "^8.0.0",
"lint-staged": "^10.5.4",
"postcss": "^8.4.31",
"postcss-cli": "^10.1.0",
"postcss-import": "^15.1.0",
"postcss-lit": "^1.1.0",
"postcss-preset-env": "^9.1.4",
Expand Down

0 comments on commit 20e25d4

Please sign in to comment.