feat(theme): use postcss to parse default theme into a simple css file

This commit is contained in:
Braks
2022-03-14 15:06:46 +01:00
parent 25e5b92843
commit 3b8c49e654
2 changed files with 237 additions and 8 deletions

View File

@@ -29,14 +29,15 @@
"scripts": {
"prepare": "ts-patch install -s",
"dev": "vite",
"build": "vite build && vue-tsc --declaration --emitDeclarationOnly && tsc -p tsconfig.build.json",
"build": "vite build && vue-tsc --declaration --emitDeclarationOnly && tsc -p tsconfig.build.json && yarn theme",
"postbuild": "shx rm -rf tmp && yarn docs",
"prepublishOnly": "yarn build",
"test": "cypress run-ct",
"test:open": "cypress open-ct",
"lint:js": "eslint --ext \".js,.jsx,.ts,.tsx\" --fix --ignore-path .gitignore .",
"lint": "yarn lint:js",
"docs": "typedoc --tsconfig ./tsconfig.docs.json dist/index.d.ts"
"docs": "typedoc --tsconfig ./tsconfig.docs.json dist/index.d.ts",
"theme": "postcss src/theme-default.css -o dist/theme-default.css"
},
"dependencies": {
"@braks/revue-draggable": "^0.4.2",
@@ -63,6 +64,8 @@
"eslint-plugin-chai-friendly": "^0.7.2",
"eslint-plugin-prettier": "^3.4.1",
"np": "^7.5.0",
"postcss": "^8.4.8",
"postcss-cli": "^9.1.0",
"postcss-nested": "^5.0.6",
"prettier": "^2.4.1",
"shx": "^0.3.4",