Skip to content

Commit

Permalink
chore: update package.json scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
eiinu committed Nov 19, 2023
1 parent 2f8bec9 commit a6d0879
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 31 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,10 +75,10 @@ jobs:
run: pnpm build

- name: Build NutUI-Taro
run: pnpm build:taro:vue
run: pnpm build:taro

- name: Build NutUI Demo
run: pnpm build:site
run: pnpm build:demo

- name: Build NutUI-Taro Demo
run: pnpm build:taro:h5
run: pnpm build:h5
18 changes: 8 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,16 +39,14 @@
"preinstall": "npx only-allow pnpm",
"prepare": "husky install && node scripts/generate-nutui.cjs && node scripts/generate-nutui-taro-vue.cjs && node ./scripts/generate-taro-route.cjs",
"dev": "vite --open --force",
"dev:taro:weapp": "pnpm --dir ./packages/nutui-taro-demo dev:weapp",
"dev:taro:alipay": "pnpm --dir ./packages/nutui-taro-demo dev:alipay",
"dev:taro:jd": "pnpm --dir ./packages/nutui-taro-demo dev:jd",
"dev:taro:h5": "pnpm --dir ./packages/nutui-taro-demo dev:h5",
"dev:taro:tt": "pnpm --dir ./packages/nutui-taro-demo dev:tt",
"build:taro:h5": "pnpm --dir ./packages/nutui-taro-demo build:h5",
"build:taro:weapp": "pnpm --dir ./packages/nutui-taro-demo build:weapp",
"build:site": "vue-tsc --declaration --emitDeclarationOnly -p ./tsconfig.json && vite build",
"dev:h5": "pnpm --dir ./packages/nutui-taro-demo dev h5",
"dev:weapp": "pnpm --dir ./packages/nutui-taro-demo dev weapp",
"dev:taro": "pnpm --dir ./packages/nutui-taro-demo dev",
"build:demo": "vue-tsc --declaration --emitDeclarationOnly -p ./tsconfig.json && vite build",
"build:h5": "pnpm --dir ./packages/nutui-taro-demo build h5",
"build:weapp": "pnpm --dir ./packages/nutui-taro-demo build weapp",
"build": "vite build --config vite.config.build.ts && vite build --config vite.config.build.disperse.ts && pnpm generate:themes && vite build --config vite.config.build.css.ts && vite build --config vite.config.build.locale.ts && vite build --config vite.config.build.resolver.ts && pnpm dts && pnpm attrs && node scripts/generate-unplugin-deps.cjs nutui && node scripts/copy-dist.cjs nutui",
"build:taro:vue": "vite build --config vite.config.build.taro.vue.ts && vite build --config vite.config.build.taro.vue.disperse.ts && pnpm generate:themes:taro && vite build --config vite.config.build.css.ts && vite build --config vite.config.build.locale.ts && vite build --config vite.config.build.resolver.ts && pnpm dts:taro && pnpm attrs:taro && node scripts/generate-unplugin-deps.cjs nutui-taro && node scripts/copy-dist.cjs nutui-taro",
"build:taro": "vite build --config vite.config.build.taro.vue.ts && vite build --config vite.config.build.taro.vue.disperse.ts && pnpm generate:themes:taro && vite build --config vite.config.build.css.ts && vite build --config vite.config.build.locale.ts && vite build --config vite.config.build.resolver.ts && pnpm dts:taro && pnpm attrs:taro && node scripts/generate-unplugin-deps.cjs nutui-taro && node scripts/copy-dist.cjs nutui-taro",
"add": "node scripts/createComponentMode.js",
"generate:types": "rimraf ./dist/types && node scripts/generate-types.cjs",
"generate:types:taro": "rimraf ./dist/types && node scripts/generate-types-taro.cjs",
Expand All @@ -60,8 +58,8 @@
"lint": "eslint ./src ./packages/**/src --ext .vue,.ts,.tsx,.js,.jsx",
"lint:fix": "pnpm lint --fix",
"copydocs": "node ./scripts/copymd.cjs",
"attrs:taro": "node ./scripts/createAttributes.cjs taro",
"attrs": "node ./scripts/createAttributes.cjs",
"attrs:taro": "node ./scripts/createAttributes.cjs taro",
"dts": "rimraf ./tsc/type && vue-tsc --declaration --emitDeclarationOnly -p ./tsconfig.declaration.json && pnpm generate:types",
"dts:taro": "rimraf ./tsc/type && vue-tsc --declaration --emitDeclarationOnly -p ./tsconfig.declaration.taro.json && pnpm generate:types:taro",
"copy:h5": "node ./scripts/copyh5.cjs",
Expand Down
20 changes: 2 additions & 18 deletions packages/nutui-taro-demo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,24 +9,8 @@
"css": "sass"
},
"scripts": {
"build:weapp": "taro build --type weapp",
"build:swan": "taro build --type swan",
"build:alipay": "taro build --type alipay",
"build:tt": "taro build --type tt",
"build:h5": "taro build --type h5",
"build:rn": "taro build --type rn",
"build:qq": "taro build --type qq",
"build:jd": "taro build --type jd",
"build:quickapp": "taro build --type quickapp",
"dev:weapp": "npm run build:weapp -- --watch",
"dev:swan": "npm run build:swan -- --watch",
"dev:alipay": "npm run build:alipay -- --watch",
"dev:tt": "npm run build:tt -- --watch",
"dev:h5": "npm run build:h5 -- --watch",
"dev:rn": "npm run build:rn -- --watch",
"dev:qq": "npm run build:qq -- --watch",
"dev:jd": "npm run build:jd -- --watch",
"dev:quickapp": "npm run build:quickapp -- --watch"
"dev": "taro build --watch --type",
"build": "taro build --type"
},
"browserslist": [
"last 3 versions",
Expand Down

0 comments on commit a6d0879

Please sign in to comment.