Closed chenyulun closed 2 years ago
"scripts": {
"g": "npm run generate",
"generate": "cross-env NODE_ENV=production gulp --require ts-node/register/transpile-only",
"type-check": "tsc --noEmit",
"build:es": "tsc --project tsconfig.build.json --module esnext --outDir es",
"build:lib": "tsc --project tsconfig.build.json --module commonjs --outDir lib",
- "build": "cross-env NODE_ENV=production && npm run build:es && npm run build:lib",
+ "build": "cross-env NODE_ENV=production && npm run g && npm run build:es && npm run build:lib",
"test": "cross-env NODE_ENV=test && npm run test:unit",
"test:unit": "jest",
"prepublishOnly": "npm run test && npm run g && npm run build && npm run type-check && npm run digest",
"digest": "node scripts/digest.js"
},
我需要先执行icons:generate
,建议内部写prebuild命令比较好的
vue:ci
> @ant-design/icons-vue@6.0.1 postcompile
> npm run clean && TS_NODE_PROJECT=scripts/tsconfig.json node -r ts-node/register scripts/generate.ts --target=entry
> @ant-design/icons-vue@6.0.1 clean
> ./scripts/cleanup.sh
> @ant-design/icons-vue@6.0.1 test
> cross-env NODE_ENV=test jest --config .jest.js
console.error
Warning: [@ant-design/icons-vue] Should have `component` prop/slot or `children`.
29 | // Support uglify
30 | if (process.env.NODE_ENV !== 'production' && !valid && console !== undefined) {
> 31 | console.error("Warning: ".concat(message));
| ^
32 | }
33 | }
34 |
at warn (lib/utils.js:31:13)
at warning (lib/utils.js:36:3)
at Icon (lib/components/Icon.js:39:22)
at renderComponentRoot (node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:456:19)
at ReactiveEffect.componentUpdateFn [as fn] (node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:4154:57)
at ReactiveEffect.run (node_modules/@vue/reactivity/dist/reactivity.cjs.js:164:29)
at setupRenderEffect (node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:4280:9)
console.error
Warning: [@ant-design/icons-vue] Make sure that you provide correct `viewBox` prop (default `0 0 1024 1024`) to the icon.
29 | // Support uglify
30 | if (process.env.NODE_ENV !== 'production' && !valid && console !== undefined) {
> 31 | console.error("Warning: ".concat(message));
| ^
32 | }
33 | }
34 |
at warn (lib/utils.js:31:13)
at warning (lib/utils.js:36:3)
at renderInnerNode (lib/components/Icon.js:78:26)
at Icon (lib/components/Icon.js:99:8)
at renderComponentRoot (node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:456:19)
at ReactiveEffect.componentUpdateFn [as fn] (node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:4154:57)
at ReactiveEffect.run (node_modules/@vue/reactivity/dist/reactivity.cjs.js:164:29)
lerna success run Ran npm script 'ci' in 1 package in 50.6s:
lerna success - @ant-design/icons-vue
✨ Done in 54.94s.