Skip to content

Commit f71ad6b

Browse files
'优化webpack打包'
1 parent 7fc8768 commit f71ad6b

2 files changed

Lines changed: 23 additions & 3 deletions

File tree

package.json

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,32 @@
22
"name": "mxgraph-easyeditor",
33
"version": "0.1.0",
44
"private": true,
5+
"pre-commit": [
6+
"pre-commit"
7+
],
8+
"main": "./main.js",
59
"scripts": {
610
"serve": "vue-cli-service serve",
711
"build": "vue-cli-service build",
8-
"lint": "vue-cli-service lint"
12+
"lint": "vue-cli-service lint",
13+
"preinstall": "bash ./scripts/init_files.sh",
14+
"dev": "cross-env BABEL_ENV=development ./node_modules/.bin/webpack-dev-server --progress --devtool eval-source-map --config build/webpack.dev.conf.js",
15+
"start": "yarn lint && yarn dll && yarn dev",
16+
"del:dll": "./node_modules/.bin/rimraf vendor",
17+
"compile:dll": "./node_modules/.bin/webpack --config build/webpack.dll.conf.js --colors --profile",
18+
"dll": "yarn del:dll && yarn compile:dll",
19+
"build:report": "npm_config_report=true node --max_old_space_size=4096 build/build.js",
20+
"pre-commit": "echo 'Pre-commit checks...' && yarn switch-source-in && yarn lint2",
21+
"switch-source-in": "bash ./scripts/switch_source.sh i",
22+
"lint3": "./node_modules/.bin/eslint --fix --ext .js,.jsx,.ts,.tsx,.vue src && ./node_modules/.bin/tslint --fix 'src/**/*{.ts,.tsx}'",
23+
"test": "cross-env NODE_ENV=test jest --config jest.config.js",
24+
"del:components": "./node_modules/.bin/rimraf components",
25+
"copy": "./node_modules/.bin/gulp copy",
26+
"babel": "./node_modules/.bin/babel components -d components",
27+
"components": "yarn del:components && yarn copy && yarn babel",
28+
"deploy": "node --max_old_space_size=4096 build/build.js",
29+
"clean:node": "rm -Rf ./node_modules",
30+
"change:version": "./node/node ./ci_script/changeVersion.js"
931
},
1032
"dependencies": {
1133
"core-js": "^3.6.5",

stats.json

Lines changed: 0 additions & 2 deletions
This file was deleted.

0 commit comments

Comments
 (0)