|
36 | 36 | "CHANGELOG.md"
|
37 | 37 | ],
|
38 | 38 | "scripts": {
|
39 |
| - "checked": "npm run generate:file && tsc", |
40 |
| - "checked:taro:vue": "npm run generate:file:taro:vue", |
41 |
| - "dev": "npm run checked && npm run dts && vite --open --force", |
42 |
| - "taro": "npm run createTaroConfig && npm run checked:taro:vue && npm run dts", |
43 |
| - "dev:taro:weapp": "npm run taro && cd packages/nutui-taro-demo/ && npm run dev:weapp", |
44 |
| - "dev:taro:alipay": "npm run taro && cd packages/nutui-taro-demo/ && npm run dev:alipay", |
45 |
| - "dev:taro:jd": "npm run taro && cd packages/nutui-taro-demo/ && npm run dev:jd", |
46 |
| - "dev:taro:h5": "npm run taro && cd packages/nutui-taro-demo/ && npm run dev:h5", |
47 |
| - "build:taro:h5": "npm run taro && cd packages/nutui-taro-demo/ && npm run build:h5", |
48 |
| - "build:taro:weapp": "npm run taro && cd packages/nutui-taro-demo/ && npm run build:weapp", |
49 |
| - "build:site": "npm run checked && vite build", |
50 |
| - "build:site-jdt": "npm run checked && vite build --config vite.config.jdt.ts ", |
51 |
| - "build:site:oss": "npm run checked && vite build --base=/nutui/4x/", |
52 |
| - "build": "npm run checked && vite build --config vite.config.build.ts && vite build --config vite.config.build.disperse.ts && npm run 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 && npm run dts && npm run attrs && node jd/generate-unplugin-deps.cjs nutui && node jd/copy-dist.cjs nutui", |
53 |
| - "build:taro:vue": "npm run checked:taro:vue && vite build --config vite.config.build.taro.vue.ts && vite build --config vite.config.build.taro.vue.disperse.ts && npm run 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 && npm run dts:taro && npm run attrs:taro && node jd/generate-unplugin-deps.cjs nutui-taro && node jd/copy-dist.cjs nutui-taro", |
54 |
| - "serve": "vite preview", |
| 39 | + "preinstall": "npx only-allow pnpm", |
| 40 | + "prepare": "husky install && node jd/generate-nutui.cjs && node jd/generate-nutui-taro-vue.cjs && node ./jd/generate-taro-route.cjs", |
| 41 | + "dev": "vite --open --force", |
| 42 | + "dev:taro:weapp": "pnpm --dir ./packages/nutui-taro-demo dev:weapp", |
| 43 | + "dev:taro:alipay": "pnpm --dir ./packages/nutui-taro-demo dev:alipay", |
| 44 | + "dev:taro:jd": "pnpm --dir ./packages/nutui-taro-demo dev:jd", |
| 45 | + "dev:taro:h5": "pnpm --dir ./packages/nutui-taro-demo dev:h5", |
| 46 | + "build:taro:h5": "pnpm --dir ./packages/nutui-taro-demo build:h5", |
| 47 | + "build:taro:weapp": "pnpm --dir ./packages/nutui-taro-demo build:weapp", |
| 48 | + "build:site": "vite build", |
| 49 | + "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 jd/generate-unplugin-deps.cjs nutui && node jd/copy-dist.cjs nutui", |
| 50 | + "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 jd/generate-unplugin-deps.cjs nutui-taro && node jd/copy-dist.cjs nutui-taro", |
55 | 51 | "add": "node jd/createComponentMode.js",
|
56 |
| - "generate:file": "node jd/generate-nutui.cjs", |
57 |
| - "generate:file:taro:vue": "node jd/generate-nutui-taro-vue.cjs", |
58 | 52 | "generate:types": "rimraf ./dist/types && node jd/generate-types.cjs",
|
59 | 53 | "generate:types:taro": "rimraf ./dist/types && node jd/generate-types-taro.cjs",
|
60 | 54 | "generate:themes": "node jd/generate-themes.cjs",
|
61 | 55 | "generate:themes:taro": "node jd/generate-themes.cjs taro",
|
62 |
| - "prepare": "husky install", |
63 | 56 | "test": "vitest",
|
64 |
| - "test:ui": "vitest --ui", |
65 |
| - "test:c": "vitest run --coverage", |
| 57 | + "test:ui": "vitest --ui --coverage", |
| 58 | + "test:c": "vitest --coverage", |
66 | 59 | "lint": "prettier --check .",
|
67 | 60 | "lint:fix": "prettier --write .",
|
68 | 61 | "copydocs": "node ./jd/copymd.cjs",
|
69 |
| - "createTaroConfig": "node ./jd/generate-taro-route.cjs", |
70 | 62 | "attrs:taro": "node ./jd/createAttributes.cjs taro",
|
71 | 63 | "attrs": "node ./jd/createAttributes.cjs",
|
72 |
| - "dts": "rimraf ./tsc/type && vue-tsc --declaration --emitDeclarationOnly -p ./tsconfig.declaration.json && npm run generate:types", |
73 |
| - "dts:taro": "rimraf ./tsc/type && vue-tsc --declaration --emitDeclarationOnly -p ./tsconfig.declaration.taro.json && npm run generate:types:taro", |
| 64 | + "dts": "rimraf ./tsc/type && vue-tsc --declaration --emitDeclarationOnly -p ./tsconfig.declaration.json && pnpm generate:types", |
| 65 | + "dts:taro": "rimraf ./tsc/type && vue-tsc --declaration --emitDeclarationOnly -p ./tsconfig.declaration.taro.json && pnpm generate:types:taro", |
74 | 66 | "copy:h5": "node ./jd/copyh5.cjs",
|
75 | 67 | "copy:taro": "node ./jd/copytaro.cjs"
|
76 | 68 | },
|
|
0 commit comments