mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2026-02-21 08:20:27 +00:00
chore: 🤖 update tsconfig
This commit is contained in:
parent
6e7d364bc8
commit
435c226391
12
README.md
12
README.md
@ -10,18 +10,18 @@
|
|||||||
|
|
||||||
#### 跑起来:
|
#### 跑起来:
|
||||||
|
|
||||||
- `tnpm i`
|
- `npm run reinstall`
|
||||||
- `npm run boot`
|
|
||||||
- `npm run build`
|
- `npm run build`
|
||||||
|
|
||||||
#### Link & unlink
|
#### Link & unlink
|
||||||
|
|
||||||
- `cd packages/<package-name> && tnpm link -g`
|
- ~~`cd packages/<package-name> && tnpm link -g`~~
|
||||||
- `tnpm link @ali/<package-name>`
|
- ~~`tnpm link @ali/<package-name>`~~
|
||||||
|
- ~~`tnpm unlink @ali/<package-name>`~~
|
||||||
|
|
||||||
- `tnpm unlink @ali/<package-name>`
|
已在 tsconfig 中配置 paths,开发时无需 link,但是发包的依赖还得有
|
||||||
|
|
||||||
#### 开发过程中:
|
#### 开发提交:
|
||||||
|
|
||||||
- `git add <your-files>`
|
- `git add <your-files>`
|
||||||
- `npm run commit`
|
- `npm run commit`
|
||||||
|
|||||||
19
package.json
19
package.json
@ -3,7 +3,7 @@
|
|||||||
"private": true,
|
"private": true,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"reinstall": "./scripts/reinstall.sh",
|
"reinstall": "./scripts/reinstall.sh",
|
||||||
"bootstrap": "lerna bootstrap --hoist",
|
"bootstrap": "lerna bootstrap",
|
||||||
"pub": "npm run test && lerna publish --registry http://registry.npm.alibaba-inc.com",
|
"pub": "npm run test && lerna publish --registry http://registry.npm.alibaba-inc.com",
|
||||||
"lint": "eslint -p tsconfig.json",
|
"lint": "eslint -p tsconfig.json",
|
||||||
"lint:fix": "eslint --fix -p tsconfig.json",
|
"lint:fix": "eslint --fix -p tsconfig.json",
|
||||||
@ -14,19 +14,19 @@
|
|||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@ali/lowcode-config": "^2.0.5",
|
"@ali/lowcode-config": "^2.0.5",
|
||||||
"babel-eslint": "^10.0.3",
|
|
||||||
"eslint": "^6.5.1",
|
|
||||||
"ava": "^1.0.1",
|
"ava": "^1.0.1",
|
||||||
|
"babel-eslint": "^10.0.3",
|
||||||
"commitizen": "^3.0.5",
|
"commitizen": "^3.0.5",
|
||||||
"cz-conventional-changelog": "^2.1.0",
|
"cz-conventional-changelog": "^2.1.0",
|
||||||
|
"eslint": "^6.5.1",
|
||||||
"git-cz": "^4.3.1",
|
"git-cz": "^4.3.1",
|
||||||
"husky": "^1.3.1",
|
|
||||||
"lerna": "^2.11.0",
|
"lerna": "^2.11.0",
|
||||||
"lint-staged": "^8.1.0",
|
"lint-staged": "^8.1.0",
|
||||||
"prettier": "^1.15.3",
|
"prettier": "^1.15.3",
|
||||||
"ts-node": "^7.0.1",
|
"ts-node": "^7.0.1",
|
||||||
|
"tslib": "^1.9.3",
|
||||||
"typescript": "^3.2.2",
|
"typescript": "^3.2.2",
|
||||||
"tslib": "^1.9.3"
|
"husky": "^4.2.3"
|
||||||
},
|
},
|
||||||
"workspaces": {
|
"workspaces": {
|
||||||
"packages": [
|
"packages": [
|
||||||
@ -34,8 +34,8 @@
|
|||||||
],
|
],
|
||||||
"nohoist": []
|
"nohoist": []
|
||||||
},
|
},
|
||||||
"engines": {
|
"gitHooks": {
|
||||||
"node": "^10"
|
"pre-commit": "lint-staged"
|
||||||
},
|
},
|
||||||
"lint-staged": {
|
"lint-staged": {
|
||||||
"*.{tsx,ts}": [
|
"*.{tsx,ts}": [
|
||||||
@ -43,11 +43,6 @@
|
|||||||
"git add"
|
"git add"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"husky": {
|
|
||||||
"hooks": {
|
|
||||||
"pre-commit": "lint-staged"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"config": {
|
"config": {
|
||||||
"commitizen": {
|
"commitizen": {
|
||||||
"path": "node_modules/cz-conventional-changelog"
|
"path": "node_modules/cz-conventional-changelog"
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"extends": "../../tsconfig.json",
|
"extends": "../../tsconfig.build.json",
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"outDir": "lib"
|
"outDir": "lib"
|
||||||
},
|
},
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"name": "@ali/lowcode-engine-editor",
|
"name": "@ali/lowcode-editor",
|
||||||
"version": "0.0.1",
|
"version": "0.0.1",
|
||||||
"description": "alibaba lowcode editor core",
|
"description": "alibaba lowcode editor core",
|
||||||
"files": [
|
"files": [
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"name": "@ali/lowcode-engine-skeleton",
|
"name": "@ali/lowcode-skeleton",
|
||||||
"version": "0.0.1",
|
"version": "0.0.1",
|
||||||
"description": "alibaba lowcode editor skeleton",
|
"description": "alibaba lowcode editor skeleton",
|
||||||
"files": [
|
"files": [
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"extends": "../../tsconfig.json",
|
"extends": "../../tsconfig.build.json",
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"outDir": "lib"
|
"outDir": "lib"
|
||||||
},
|
},
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"extends": "../../tsconfig.json",
|
"extends": "../../tsconfig.build.json",
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"rootDir": "src",
|
"rootDir": "src",
|
||||||
"outDir": "lib"
|
"outDir": "lib"
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"extends": "../../tsconfig.json",
|
"extends": "../../tsconfig.build.json",
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"outDir": "lib"
|
"outDir": "lib"
|
||||||
},
|
},
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"extends": "../../tsconfig.json",
|
"extends": "../../tsconfig.build.json",
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"outDir": "lib"
|
"outDir": "lib"
|
||||||
},
|
},
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"extends": "../../tsconfig.json",
|
"extends": "../../tsconfig.build.json",
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"outDir": "lib"
|
"outDir": "lib"
|
||||||
},
|
},
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"extends": "../../tsconfig.json",
|
"extends": "../../tsconfig.build.json",
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"outDir": "lib"
|
"outDir": "lib"
|
||||||
},
|
},
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"extends": "../../tsconfig.json",
|
"extends": "../../tsconfig.build.json",
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"outDir": "lib"
|
"outDir": "lib"
|
||||||
},
|
},
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"extends": "../../tsconfig.json",
|
"extends": "../../tsconfig.build.json",
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"outDir": "lib"
|
"outDir": "lib"
|
||||||
},
|
},
|
||||||
|
|||||||
43
tsconfig.build.json
Normal file
43
tsconfig.build.json
Normal file
@ -0,0 +1,43 @@
|
|||||||
|
{
|
||||||
|
"compilerOptions": {
|
||||||
|
"declaration": true,
|
||||||
|
"lib": ["es2015", "dom"],
|
||||||
|
// Target latest version of ECMAScript.
|
||||||
|
"target": "esnext",
|
||||||
|
// Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'.
|
||||||
|
"module": "esnext",
|
||||||
|
// Search under node_modules for non-relative imports.
|
||||||
|
"moduleResolution": "node",
|
||||||
|
// Process & infer types from .js files.
|
||||||
|
"allowJs": true,
|
||||||
|
// Report errors in .js files.
|
||||||
|
"checkJs": false,
|
||||||
|
// Don't emit; allow Babel to transform files.
|
||||||
|
"noEmit": true,
|
||||||
|
// Enable strictest settings like strictNullChecks & noImplicitAny.
|
||||||
|
"strict": true,
|
||||||
|
// Allow default imports from modules with no default export. This does not affect code emit, just typechecking.
|
||||||
|
"allowSyntheticDefaultImports": true,
|
||||||
|
// Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'.
|
||||||
|
"esModuleInterop": true,
|
||||||
|
// Specify JSX code generation: 'preserve', 'react-native', or 'react'.
|
||||||
|
"jsx": "react",
|
||||||
|
// Import emit helpers (e.g. __extends, __rest, etc..) from tslib
|
||||||
|
"importHelpers": true,
|
||||||
|
// Enables experimental support for ES7 decorators.
|
||||||
|
"experimentalDecorators": true,
|
||||||
|
// Generates corresponding .map file.
|
||||||
|
"sourceMap": true,
|
||||||
|
// Disallow inconsistently-cased references to the same file.
|
||||||
|
"forceConsistentCasingInFileNames": true,
|
||||||
|
// Allow json import
|
||||||
|
"resolveJsonModule": true,
|
||||||
|
// skip type checking of declaration files
|
||||||
|
"skipLibCheck": true,
|
||||||
|
"baseUrl": "./packages",
|
||||||
|
"paths": {
|
||||||
|
"utils": ["./utils"]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"exclude": ["**/test", "**/lib"]
|
||||||
|
}
|
||||||
@ -1,44 +1,10 @@
|
|||||||
{
|
{
|
||||||
|
"extends": "./tsconfig.build.json",
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"declaration": true,
|
|
||||||
"lib": ["es2015", "dom"],
|
|
||||||
// Target latest version of ECMAScript.
|
|
||||||
"target": "esnext",
|
|
||||||
// Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'.
|
|
||||||
"module": "esnext",
|
|
||||||
// Search under node_modules for non-relative imports.
|
|
||||||
"moduleResolution": "node",
|
|
||||||
// Process & infer types from .js files.
|
|
||||||
"allowJs": true,
|
|
||||||
// Report errors in .js files.
|
|
||||||
"checkJs": false,
|
|
||||||
// Don't emit; allow Babel to transform files.
|
|
||||||
"noEmit": true,
|
|
||||||
// Enable strictest settings like strictNullChecks & noImplicitAny.
|
|
||||||
"strict": true,
|
|
||||||
// Allow default imports from modules with no default export. This does not affect code emit, just typechecking.
|
|
||||||
"allowSyntheticDefaultImports": true,
|
|
||||||
// Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'.
|
|
||||||
"esModuleInterop": true,
|
|
||||||
// Specify JSX code generation: 'preserve', 'react-native', or 'react'.
|
|
||||||
"jsx": "preserve",
|
|
||||||
// Import emit helpers (e.g. __extends, __rest, etc..) from tslib
|
|
||||||
"importHelpers": true,
|
|
||||||
// Enables experimental support for ES7 decorators.
|
|
||||||
"experimentalDecorators": true,
|
|
||||||
// Generates corresponding .map file.
|
|
||||||
"sourceMap": true,
|
|
||||||
// Disallow inconsistently-cased references to the same file.
|
|
||||||
"forceConsistentCasingInFileNames": true,
|
|
||||||
// Allow json import
|
|
||||||
"resolveJsonModule": true,
|
|
||||||
// skip type checking of declaration files
|
|
||||||
"skipLibCheck": true,
|
|
||||||
"baseUrl": "./packages",
|
"baseUrl": "./packages",
|
||||||
"paths": {
|
"paths": {
|
||||||
"@ali/lowcode-*": ["./*/src"],
|
"@ali/lowcode-*": ["./*/src"],
|
||||||
"utils": ["./utils"]
|
"utils": ["./utils"]
|
||||||
}
|
}
|
||||||
},
|
}
|
||||||
"exclude": ["**/test", "**/lib"]
|
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user