|
2 | 2 | "name": "mxgraph-easyeditor", |
3 | 3 | "version": "0.1.0", |
4 | 4 | "private": true, |
| 5 | + "pre-commit": [ |
| 6 | + "pre-commit" |
| 7 | + ], |
| 8 | + "main": "./main.js", |
5 | 9 | "scripts": { |
6 | 10 | "serve": "vue-cli-service serve", |
7 | 11 | "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" |
9 | 31 | }, |
10 | 32 | "dependencies": { |
11 | 33 | "core-js": "^3.6.5", |
|
0 commit comments