chore: add watch scripts for types and update dev scripts

Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
This commit is contained in:
braks
2023-04-15 12:12:52 +02:00
parent 630db6d5c3
commit 0944146842
8 changed files with 27 additions and 16 deletions
+3 -1
View File
@@ -51,9 +51,11 @@
],
"scripts": {
"prepare": "ts-patch install -s",
"dev": "vite build --watch",
"dev": "pnpm types:watch & pnpm build:watch",
"build": "vite build && vite build -c vite.config.iife.ts",
"build:watch": "vite build --watch & vite build -c vite.config.iife.ts --watch",
"types": "pnpm prepare && vue-tsc --declaration --emitDeclarationOnly && tsc -p ./tsconfig.build.json && shx rm -rf tmp && pnpm lint:dist && pnpm run patch",
"types:watch": "pnpm prepare && vue-tsc --declaration --emitDeclarationOnly --watch & tsc -p ./tsconfig.build.json --watch",
"patch": "node patch/slots.js",
"theme": "postcss src/style.css -o dist/style.css && postcss src/theme-default.css -o dist/theme-default.css",
"lint": "eslint --ext .js,.ts,.vue ./",