|
20 | 20 | "module": "es/index.js",
|
21 | 21 | "browser": "dist/index.min.js",
|
22 | 22 | "scripts": {
|
23 |
| - "build": "npm run clean && father build", |
| 23 | + "build": "npm run clean && father build && npm run build:umd", |
| 24 | + "build:umd": "webpack --config webpack.config.js --mode production", |
| 25 | + "dev:umd": "webpack --config webpack.dev.config.js --mode development", |
24 | 26 | "ci": "npm run build && npm run coverage",
|
25 | 27 | "clean": "rimraf es esm lib",
|
26 | 28 | "coverage": "jest --coverage",
|
27 | 29 | "lint": "eslint --ext .js,.jsx,.ts,.tsx --format=pretty \"./\"",
|
28 | 30 | "lint:src": "eslint --ext .ts --format=pretty \"./src\"",
|
29 | 31 | "prettier": "prettier -c --write \"**/*\"",
|
30 |
| - "test": "jest", |
31 |
| - "test-live": "DEBUG_MODE=1 jest --watch ./tests/unit/find-path-spec.ts", |
| 32 | + "test": "npm run build:umd && jest", |
| 33 | + "test-live": "npm run build:umd && DEBUG_MODE=1 jest --watch ./tests/unit/louvain-spec.ts", |
| 34 | + "test-live:async": "npm run build:umd && DEBUG_MODE=1 jest --watch ./tests/unit/*-async-spec.ts", |
32 | 35 | "lint-staged:js": "eslint --ext .js,.jsx,.ts,.tsx",
|
33 | 36 | "cdn": "antv-bin upload -n @antv/algorithm"
|
34 | 37 | },
|
|
43 | 46 | "license": "MIT",
|
44 | 47 | "author": "https://github.com/orgs/antvis/people",
|
45 | 48 | "devDependencies": {
|
46 |
| - "@babel/core": "^7.12.9", |
| 49 | + "@babel/core": "^7.12.10", |
47 | 50 | "@babel/plugin-proposal-class-properties": "^7.12.1",
|
48 | 51 | "@babel/preset-env": "^7.12.7",
|
| 52 | + "@babel/preset-typescript": "^7.12.7", |
49 | 53 | "@types/jest": "^26.0.18",
|
| 54 | + "@umijs/fabric": "^2.5.6", |
| 55 | + "babel-loader": "^8.2.2", |
50 | 56 | "father": "^2.30.0",
|
51 | 57 | "jest": "^26.6.3",
|
52 | 58 | "jest-electron": "^0.1.11",
|
53 | 59 | "rimraf": "^3.0.2",
|
54 | 60 | "ts-jest": "^26.4.4",
|
| 61 | + "ts-loader": "^8.0.14", |
55 | 62 | "tslint": "^6.1.3",
|
56 |
| - "typescript": "^4.1.2" |
| 63 | + "typescript": "^4.1.3", |
| 64 | + "webpack": "^5.17.0", |
| 65 | + "webpack-cli": "^4.4.0", |
| 66 | + "worker-loader": "^3.0.7" |
57 | 67 | }
|
58 | 68 | }
|
0 commit comments