|
13 | 13 | "^@ml(.*)$": "<rootDir>/src/$1", |
14 | 14 | "^@public(.*)$": "<rootDir>/public/$1" |
15 | 15 | }, |
16 | | - "setupTestFrameworkScriptFile": "<rootDir>/test/setup.js" |
| 16 | + "setupFilesAfterEnv": ["<rootDir>/test/setup.js"], |
| 17 | + "globals": { |
| 18 | + "window": {}, |
| 19 | + "location": {} |
| 20 | + } |
17 | 21 | }, |
18 | 22 | "scripts": { |
19 | | - "build": "webpack -p", |
| 23 | + "build": "webpack --mode production", |
20 | 24 | "start": "yarn run dev", |
21 | | - "dev": "webpack-dev-server --mode development --content-base public --host 0.0.0.0 --disable-host-check", |
| 25 | + "dev": "webpack-dev-server --mode development --static public --host 0.0.0.0", |
22 | 26 | "lint": "eslint --ext .js,.jsx src", |
23 | 27 | "test": "yarn run lint && jest", |
24 | 28 | "test:unit": "jest ./test/unit/*.js", |
|
39 | 43 | "react-dom": "~16.14.0" |
40 | 44 | }, |
41 | 45 | "devDependencies": { |
| 46 | + "@babel/core": "^7.24.0", |
| 47 | + "@babel/eslint-parser": "7.25.9", |
| 48 | + "@babel/preset-env": "^7.24.0", |
| 49 | + "@babel/preset-react": "^7.23.0", |
42 | 50 | "@code-dot-org/redactable-markdown": "^0.4.0", |
43 | 51 | "@code-dot-org/svm": "^0.1.1", |
44 | 52 | "@tensorflow-models/knn-classifier": "~1.1.0", |
45 | 53 | "@tensorflow-models/mobilenet": "^2.0.4", |
46 | 54 | "@tensorflow/tfjs": "^1.3.1", |
47 | | - "babel-core": "^6.26.3", |
48 | | - "babel-eslint": "^7.1.1", |
49 | | - "babel-loader": "^7.1.4", |
| 55 | + "assert": "^2.1.0", |
| 56 | + "babel-loader": "^8.3.0", |
50 | 57 | "babel-plugin-add-module-exports": "^0.2.1", |
51 | | - "babel-plugin-syntax-async-functions": "^6.8.0", |
52 | | - "babel-plugin-transform-class-properties": "^6.23.0", |
53 | | - "babel-plugin-transform-es2015-classes": "^6.9.0", |
54 | | - "babel-plugin-transform-object-rest-spread": "^6.8.0", |
55 | | - "babel-plugin-transform-react-jsx": "^6.8.0", |
56 | | - "babel-plugin-transform-regenerator": "^6.26.0", |
57 | | - "babel-polyfill": "^6.26.0", |
58 | | - "babel-preset-env": "^1.7.0", |
59 | | - "babel-preset-react": "^6.5.0", |
60 | | - "babelify": "^10.0.0", |
61 | 58 | "canvas": "^2.8.0", |
62 | 59 | "clean-webpack-plugin": "^3.0.0", |
63 | | - "copy-webpack-plugin": "^5.0.5", |
64 | | - "css-loader": "^3.2.0", |
| 60 | + "copy-webpack-plugin": "^11.0.0", |
| 61 | + "css-loader": "^5.0.0", |
65 | 62 | "enzyme": "^3.9.0", |
66 | 63 | "enzyme-adapter-react-16": "^1.15.7", |
67 | | - "eslint": ">=4.18.2", |
68 | | - "eslint-plugin-react": "^7.11.0", |
69 | | - "file-loader": "^4.2.0", |
| 64 | + "eslint": "^8.56.0", |
| 65 | + "eslint-plugin-react": "^7.37.5", |
70 | 66 | "idempotent-babel-polyfill": "6.26.0-1", |
71 | 67 | "identity-obj-proxy": "^3.0.0", |
72 | | - "jest": "^23.6.0", |
| 68 | + "jest": "^29.7.0", |
73 | 69 | "jquery": "1.12.1", |
74 | 70 | "lodash": "^4.17.5", |
75 | 71 | "mem": ">=4.0.0", |
76 | 72 | "node-fetch": "^2.6.0", |
77 | 73 | "prettier": "1.16.1", |
| 74 | + "process": "^0.11.10", |
78 | 75 | "query-string": "4.1.0", |
79 | 76 | "radium": "^0.25.2", |
80 | 77 | "react": "~16.14.0", |
|
84 | 81 | "remark-parse": "^7.0.2", |
85 | 82 | "remark-rehype": "^5.0.0", |
86 | 83 | "sinon": "^7.5.0", |
87 | | - "style-loader": "^1.0.0", |
88 | | - "url-loader": "^2.2.0", |
89 | | - "webpack": "4.19.1", |
90 | | - "webpack-bundle-analyzer": "^3.6.0", |
91 | | - "webpack-cli": "^3.3.6", |
92 | | - "webpack-dev-server": "^3.1.4", |
| 84 | + "style-loader": "^2.0.0", |
| 85 | + "util": "^0.12.5", |
| 86 | + "webpack": "^5.94.0", |
| 87 | + "webpack-bundle-analyzer": "^4.10.0", |
| 88 | + "webpack-cli": "^5.1.4", |
| 89 | + "webpack-dev-server": "^4.15.2", |
93 | 90 | "yargs": "^14.0.0" |
94 | 91 | }, |
95 | 92 | "bugs": { |
|
100 | 97 | "@fortawesome/fontawesome-svg-core": "^1.2.25", |
101 | 98 | "@fortawesome/free-solid-svg-icons": "^5.11.2", |
102 | 99 | "@fortawesome/react-fontawesome": "^0.1.7", |
103 | | - "messageformat": "^1.1.0", |
| 100 | + "messageformat": "2.3.0", |
104 | 101 | "react-typist": "^2.0.5" |
105 | 102 | }, |
106 | 103 | "files": [ |
|
0 commit comments