|
13 | 13 | },
|
14 | 14 | "scripts": {
|
15 | 15 | "commit": "git-cz",
|
16 |
| - "build": "webpack --mode production", |
17 |
| - "dev": "webpack --mode development --watch", |
18 |
| - "lint": "eslint src --ext .js", |
19 |
| - "lint:fix": "eslint src --ext .js --fix", |
| 16 | + "clean": "del-cli dist", |
| 17 | + "prebuild": "yarn clean", |
| 18 | + "build": "bili", |
| 19 | + "dev": "bili --config bili.config.dev.js --watch", |
| 20 | + "lint": "eslint --ext .js .", |
| 21 | + "lint:fix": "yarn lint --fix", |
20 | 22 | "test": "jest",
|
21 | 23 | "test:ci": "jest --coverage --bail --runInBand --verbose=false",
|
22 | 24 | "coverage": "jest --coverage",
|
23 | 25 | "coverage:html": "jest --coverage --coverageReporters=html",
|
24 | 26 | "coverage:text": "jest --coverage --coverageReporters=text",
|
25 | 27 | "coverage:lcov": "jest --coverage --coverageReporters=lcov",
|
26 |
| - "prepublishOnly": "yarn lint && yarn test && webpack --mode production", |
| 28 | + "prepublishOnly": "yarn lint && yarn test && yarn build", |
27 | 29 | "semantic-release": "semantic-release"
|
28 | 30 | },
|
29 | 31 | "config": {
|
|
54 | 56 | "vue",
|
55 | 57 | "vuejs"
|
56 | 58 | ],
|
57 |
| - "main": "dist/vue-gtag.js", |
| 59 | + "main": "./dist/vue-gtag.js", |
| 60 | + "module": "./dist/vue-gtag.esm.js", |
| 61 | + "unpkg": "./dist/vue-gtag.umd.js", |
| 62 | + "jsdelivr": "./dist/vue-gtag.umd.js", |
58 | 63 | "types": "vue-gtag.d.ts",
|
59 | 64 | "files": [
|
60 | 65 | "dist",
|
|
69 | 74 | "@babel/preset-env": "^7.7.1",
|
70 | 75 | "@vue/test-utils": "^1.0.0-beta.29",
|
71 | 76 | "babel-eslint": "^10.0.3",
|
72 |
| - "babel-loader": "^8.0.6", |
73 |
| - "clean-webpack-plugin": "^3.0.0", |
| 77 | + "bili": "^4.8.1", |
74 | 78 | "commitizen": "^4.0.3",
|
75 |
| - "compression-webpack-plugin": "^3.0.0", |
76 | 79 | "cz-conventional-changelog": "^3.0.2",
|
| 80 | + "del-cli": "^3.0.0", |
77 | 81 | "eslint": "^6.6.0",
|
78 | 82 | "eslint-config-prettier": "^6.7.0",
|
79 |
| - "eslint-loader": "^3.0.2", |
80 | 83 | "eslint-plugin-jest": "^23.0.4",
|
81 | 84 | "eslint-plugin-prettier": "^3.1.1",
|
82 | 85 | "eslint-plugin-vue": "^6.0.1",
|
83 | 86 | "flush-promises": "^1.0.2",
|
84 | 87 | "jest": "^24.9.0",
|
85 | 88 | "prettier": "^1.19.1",
|
86 | 89 | "semantic-release": "^15.13.31",
|
87 |
| - "terser-webpack-plugin": "^2.2.1", |
88 | 90 | "vue": "^2.6.10",
|
89 | 91 | "vue-router": "^3.1.3",
|
90 |
| - "vue-template-compiler": "^2.6.10", |
91 |
| - "webpack": "^4.41.2", |
92 |
| - "webpack-cli": "^3.3.10" |
| 92 | + "vue-template-compiler": "^2.6.10" |
93 | 93 | }
|
94 | 94 | }
|
0 commit comments