Skip to content

Commit

Permalink
feat: 打包优化
Browse files Browse the repository at this point in the history
  • Loading branch information
fjc0k committed May 29, 2019
1 parent 6ac8b34 commit 048d154
Show file tree
Hide file tree
Showing 5 changed files with 1,069 additions and 1,121 deletions.
8 changes: 0 additions & 8 deletions bili.config.js

This file was deleted.

13 changes: 13 additions & 0 deletions bili.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import { Config } from 'bili'

const config: Config = {
input: 'src/index.ts',
banner: true,
output: {
dir: 'lib',
format: ['cjs', 'es', 'umd', 'umd-min'],
moduleName: 'vtils',
},
}

export default config
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
"@types/globby": "^9.1.0",
"@types/jest": "^24.0.13",
"@types/sinon": "^5.0.5",
"bili": "^3.4.1",
"bili": "^4.8.0",
"codecov": "^3.1.0",
"eslint": "^5.9.0",
"eslint-config-io": "^0.5.0",
Expand All @@ -73,7 +73,7 @@
"jest": "^24.8.0",
"moment": "^2.22.2",
"nervjs": "^1.3.13",
"rollup-plugin-typescript2": "^0.18.0",
"rollup-plugin-typescript2": "^0.21.1",
"standard-version": "^4.4.0",
"ts-jest": "^24.0.2",
"ts-node": "^8.0.2",
Expand Down
1 change: 1 addition & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"esModuleInterop": true,
"outDir": "./lib",
"newLine": "LF",
"skipLibCheck": true,
"lib": [
"esnext",
"dom"
Expand Down
Loading

0 comments on commit 048d154

Please sign in to comment.