feat(build): add build:locale & build:utils (#538)

This commit is contained in:
hangzou 2020-11-04 11:15:35 +08:00 committed by GitHub
parent b517177c9c
commit bb85d50cb4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 31 additions and 15 deletions

View File

@ -7,11 +7,12 @@
"test": "jest",
"gen": "bash ./scripts/gc.sh",
"bootstrap": "yarn && npx lerna bootstrap",
"build": "yarn bootstrap && yarn build:lib && yarn build:theme && yarn build:esm-bundle && yarn build:esm",
"build": "yarn bootstrap && yarn build:lib && yarn build:theme && yarn build:esm-bundle && yarn build:esm && yarn build:utils && yarn build:locale",
"build:lib": "rimraf lib && webpack --config ./build/webpack.config.js",
"build:esm-bundle": "rollup --config ./build/rollup.config.bundle.js",
"build:esm": "node ./build/bincomp.js",
"build:utils": "cd ./packages/utils && npx tsc && cd ../",
"build:utils": "npx tsc -p packages/utils",
"build:locale": "npx tsc -p packages/locale",
"build:theme": "rimraf packages/theme-chalk/lib && gulp build --gulpfile packages/theme-chalk/gulpfile.js && cp-cli packages/theme-chalk/lib lib/theme-chalk && rimraf packages/theme-chalk/lib",
"lint": "eslint ./packages --ext .vue,.js,.ts",
"lint-fix": "eslint --fix ./packages --ext .vue,.js,.ts",

View File

@ -0,0 +1,25 @@
{
"compilerOptions": {
"module": "ESNext",
"declaration": false,
"noImplicitAny": false,
"removeComments": true,
"moduleResolution": "node",
"esModuleInterop": true,
"jsx": "preserve",
"noLib": false,
"target": "es6",
"sourceMap": false,
"lib": [
"ESNext", "DOM"
],
"allowSyntheticDefaultImports": true,
"allowUnreachableCode": true,
"allowUnusedLabels": true,
"outDir": "../../lib/locale"
},
"exclude": [
"node_modules",
"__test__/*.ts"
]
}

View File

@ -1,11 +0,0 @@
declare type Nullable<T> = T | null;
declare type CustomizedHTMLElement<T> = HTMLElement & T
declare type Indexable<T> = {
[key: string]: T
}
declare type Hash<T> = Indexable<T>
declare type TimeoutHandle = ReturnType<typeof global.setTimeout>

View File

@ -19,10 +19,11 @@
"outDir": "../../lib/utils"
},
"include": [
"./**/*.ts"
"./**/*.ts",
"../../typings/vue-shim.d.ts"
],
"exclude": [
"node_modules",
"packages/**/__tests__/*"
"tests/*.ts"
]
}