1.1.4 • Published 2 years ago

mane v1.1.4

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

typescript test

ts

# 全局安装typescript
cnpm install -g typescript
yarn global add typescript

# 编译ts文件为js文件
tsc index.ts

tsc --init      # 生成tsconfig.json配置文件


# 监听ts文件变动 实时编译:
vscode --> termianl --> run task --> typesctipt --> tsc:watch tsconfig.json

npm scripts

# "dev": "rollup -w -c --environment FORMAT:esm",
# "build": "rollup -c rollup.config.js",
# "dev1": "set NODE_ENV=developemnt && rollup -c rollup.config.js -w",
# "build1": "set NODE_ENV=production && rollup -c rollup.config.js",
# "shell": "node ./scripts/index.js",
# "fs": "node ./scripts/fs.js",
# "chalk": "node ./scripts/chalk.js",
# "lint": "eslint . --fix",
# "browserify": "rollup -c support/rollup.config.js"

package

"@babel/core": "^7.19.6",
"@rollup/plugin-commonjs": "^23.0.2",
"@rollup/plugin-json": "^5.0.1",
"@rollup/plugin-node-resolve": "^15.0.1",
"@typescript-eslint/parser": "^5.41.0",
"rollup": "^3.2.3",
"rollup-plugin-babel": "^4.4.0",
"rollup-plugin-cleandir": "^2.0.0",
"rollup-plugin-commonjs": "^10.1.0",
"rollup-plugin-eslint": "^7.0.0",
"rollup-plugin-node-polyfills": "^0.2.1",
"rollup-plugin-sourcemaps": "^0.6.3",
"rollup-plugin-terser": "^7.0.2",
"rollup-plugin-typescript": "^1.0.1",
"rollup-plugin-typescript2": "^0.34.1",
"rollup-plugin-uglify": "^6.0.4",
"typescript": "^4.8.4"





cnpm install --save lodash-es               # ts类型定义
cnpm install --save @types/lodash-es


cnpm install --save-dev @babel/core
cnpm install --save-dev @rollup/plugin-babel

warning

Warning: To load an ES module, set "type": "module" in the package.json or use the .mjs extension.
1.1.4

2 years ago

1.1.3

2 years ago

1.1.2

2 years ago

1.1.1

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago

10.0.0

10 years ago