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:06:09 +02:00
parent 630db6d5c3
commit 0944146842
8 changed files with 27 additions and 16 deletions

View File

@@ -7,7 +7,7 @@
"pnpm": ">=8"
},
"scripts": {
"dev": "turbo dev --filter='./packages/*' --filter=@vue-flow/examples-vite",
"dev": "pnpm build && turbo dev --filter='./packages/*' --filter=@vue-flow/examples-vite",
"dev:docs": "turbo dev --filter=@vue-flow/docs",
"changelog": "git-cliff --output CHANGELOG.md && git add CHANGELOG.md && git commit -m \"chore: Update CHANGELOG.md\"",
"build:docs": "turbo build --filter docs",

View File

@@ -46,9 +46,11 @@
],
"sideEffects": false,
"scripts": {
"dev": "vite build --watch",
"dev": "pnpm types:watch & pnpm build:watch",
"build": "vite build",
"build:watch": "vite build --watch",
"types": "vue-tsc --declaration --emitDeclarationOnly && pnpm lint:dist",
"types:watch": "vue-tsc --declaration --emitDeclarationOnly --watch",
"lint": "eslint --ext .js,.ts,.vue ./",
"lint:dist": "eslint --ext \".ts,.tsx\" -c .eslintrc.js --fix --ignore-pattern !**/* ./dist",
"test": "exit 0"

View File

@@ -49,9 +49,11 @@
"*.css"
],
"scripts": {
"dev": "vite build --watch",
"dev": "pnpm types:watch & pnpm build:watch",
"build": "vite build",
"build:watch": "vite build --watch",
"types": "vue-tsc --declaration --emitDeclarationOnly && pnpm lint:dist",
"types:watch": "vue-tsc --declaration --emitDeclarationOnly --watch",
"lint": "eslint --ext .js,.ts,.vue ./",
"lint:dist": "eslint --ext \".ts,.tsx\" -c .eslintrc.js --fix --ignore-pattern !**/* ./dist",
"test": "exit 0"

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 ./",

View File

@@ -47,9 +47,11 @@
],
"sideEffects": false,
"scripts": {
"dev": "vite build --watch",
"dev": "pnpm types:watch & pnpm build:watch",
"build": "vite build",
"build:watch": "vite build --watch",
"types": "vue-tsc --declaration --emitDeclarationOnly && pnpm lint:dist",
"types:watch": "vue-tsc --declaration --emitDeclarationOnly --watch",
"lint": "eslint --ext .js,.ts,.vue ./",
"lint:dist": "eslint --ext \".ts,.tsx\" -c .eslintrc.js --fix --ignore-pattern !**/* ./dist",
"test": "exit 0"

View File

@@ -49,9 +49,11 @@
"*.css"
],
"scripts": {
"dev": "vite build --watch",
"dev": "pnpm types:watch & pnpm build:watch",
"build": "vite build",
"build:watch": "vite build --watch",
"types": "vue-tsc --declaration --emitDeclarationOnly && pnpm lint:dist",
"types:watch": "vue-tsc --declaration --emitDeclarationOnly --watch",
"lint": "eslint --ext .js,.ts,.vue ./",
"lint:dist": "eslint --ext \".ts,.tsx\" -c .eslintrc.js --fix --ignore-pattern !**/* ./dist",
"test": "exit 0"

View File

@@ -30,9 +30,11 @@
],
"sideEffects": false,
"scripts": {
"dev": "vite build --watch",
"dev": "pnpm types:watch & pnpm build:watch",
"build": "vite build",
"build:watch": "vite build --watch",
"types": "vue-tsc --declaration --emitDeclarationOnly && pnpm lint:dist",
"types:watch": "vue-tsc --declaration --emitDeclarationOnly --watch",
"lint": "eslint --ext .js,.ts,.vue ./",
"lint:dist": "eslint --ext \".ts,.tsx\" -c .eslintrc.js --fix --ignore-pattern !**/* ./dist",
"test": "exit 0"

View File

@@ -45,14 +45,15 @@
],
"sideEffects": false,
"scripts": {
"prepare": "ts-patch install -s",
"dev": "vite build --watch",
"example": "vite",
"dev": "pnpm types:watch & pnpm build:watch",
"build": "vite build",
"types": "pnpm prepare && vue-tsc --declaration --emitDeclarationOnly && shx rm -rf tmp",
"postbuild": "shx rm -rf tmp",
"test": "exit 0;",
"lint": "eslint --ext .js,.ts,.vue ./"
"build:watch": "vite build --watch",
"types": "vue-tsc --declaration --emitDeclarationOnly && pnpm lint:dist",
"types:watch": "vue-tsc --declaration --emitDeclarationOnly --watch",
"examples": "vite",
"test": "exit 0",
"lint": "eslint --ext .js,.ts,.vue ./",
"lint:dist": "eslint --ext \".ts,.tsx\" -c .eslintrc.js --fix --ignore-pattern !**/* ./dist"
},
"peerDependencies": {
"@vue-flow/core": "^1.12.2"
@@ -68,8 +69,6 @@
"@types/pathfinding": "^0.0.6",
"@vue-flow/core": "workspace:*",
"@vitejs/plugin-vue": "^4.0.0",
"ts-patch": "^2.1.0",
"typescript-transform-paths": "^3.4.6",
"vite": "^4.1.4",
"vue": "^3.2.25",
"vue-tsc": "^1.2.0"