Skip to content

Commit

Permalink
chore: upgrade examples to webpack 5 (#5)
Browse files Browse the repository at this point in the history
* chore: upgrade blank to webpack 5

* chore: update all templates and examples

* chore: update botonic versions for examples

* chore(webpack): add alias to support linking botonic packages

* chore(blank-typescript): adapt config to webpack 5

* chore: remove react-children-utilites references

* chore: move WEBPACK_ENTRIES_DIR outside

* refactor: refactored constants

* chore: upgrade all dependencies to latest versions
  • Loading branch information
vanbasten17 authored Dec 16, 2020
1 parent 4e20b64 commit b9c7d4f
Show file tree
Hide file tree
Showing 40 changed files with 146,076 additions and 42,287 deletions.
10,842 changes: 3,594 additions & 7,248 deletions blank-typescript/package-lock.json

Large diffs are not rendered by default.

70 changes: 35 additions & 35 deletions blank-typescript/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,57 +2,57 @@
"name": "blank",
"version": "1.0.0",
"scripts": {
"build": "webpack --env.target=all --mode=production",
"start": "webpack-dev-server --env.target=dev --mode=development",
"build": "webpack --env target=all --mode=production",
"start": "webpack serve --env target=dev --mode=development",
"test": "jest",
"train": "node_modules/.bin/ts-node src/nlu/train-model.ts"
},
"jest": {
"rootDir": "tests",
"transformIgnorePatterns": [
"/node_modules/(?!@botonic|react-children-utilities).+\\.(js|jsx)$"
"/node_modules/(?!@botonic).+\\.(js|jsx|ts|tsx|mjs)$"
],
"moduleNameMapper": {
"\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$": "<rootDir>/__mocks__/fileMock.js",
"\\.(scss|css|less)$": "<rootDir>/__mocks__/styleMock.js"
}
},
"dependencies": {
"@babel/runtime": "^7.6.2",
"@botonic/react": "~0.16.0"
"@babel/runtime": "^7.12.5",
"@botonic/react": "0.17.0-alpha.4"
},
"devDependencies": {
"@babel/core": "^7.6.2",
"@babel/plugin-proposal-class-properties": "^7.5.5",
"@babel/plugin-transform-runtime": "^7.6.2",
"@babel/preset-env": "^7.6.2",
"@babel/preset-react": "^7.0.0",
"@babel/core": "^7.12.10",
"@babel/plugin-proposal-class-properties": "^7.12.1",
"@babel/plugin-transform-runtime": "^7.12.10",
"@babel/preset-env": "^7.12.11",
"@babel/preset-react": "^7.12.10",
"@babel/preset-typescript": "^7.12.7",
"@hot-loader/react-dom": "^16.7.0",
"babel-jest": "^24.9.0",
"babel-loader": "^8.0.6",
"chokidar": "^3.4.2",
"@hot-loader/react-dom": "^17.0.1",
"babel-jest": "^26.6.3",
"babel-loader": "^8.2.2",
"chokidar": "^3.4.3",
"clean-webpack-plugin": "^3.0.0",
"copy-webpack-plugin": "^5.0.5",
"css-loader": "^3.3.0",
"file-loader": "^5.0.2",
"html-webpack-plugin": "^3.2.0",
"imagemin-gifsicle": "^6.0.1",
"imagemin-jpegtran": "^6.0.0",
"imagemin-optipng": "^7.1.0",
"imagemin-svgo": "^7.0.0",
"imagemin-webpack": "^5.1.0",
"jest": "^25.2.0",
"node-sass": "^4.13.0",
"null-loader": "^3.0.0",
"react-hot-loader": "^4.12.18",
"sass": "^1.23.7",
"sass-loader": "^8.0.0",
"style-loader": "^1.0.1",
"terser": "^4.4.2",
"terser-webpack-plugin": "^2.2.2",
"webpack": "^4.41.2",
"webpack-cli": "^3.3.10",
"webpack-dev-server": "^3.9.0"
"copy-webpack-plugin": "^7.0.0",
"css-loader": "^5.0.1",
"file-loader": "^6.2.0",
"html-webpack-plugin": "^5.0.0-alpha.17",
"image-minimizer-webpack-plugin": "^1.0.0",
"imagemin-gifsicle": "^7.0.0",
"imagemin-jpegtran": "^7.0.0",
"imagemin-optipng": "^8.0.0",
"imagemin-svgo": "^8.0.0",
"jest": "^26.6.3",
"node-sass": "^5.0.0",
"null-loader": "^4.0.1",
"react-hot-loader": "^4.13.0",
"sass": "^1.30.0",
"sass-loader": "^10.1.0",
"style-loader": "^2.0.0",
"terser": "^5.5.1",
"terser-webpack-plugin": "^5.0.3",
"webpack": "^5.10.3",
"webpack-cli": "^4.2.0",
"webpack-dev-server": "^4.0.0-beta.0"
}
}
Loading

0 comments on commit b9c7d4f

Please sign in to comment.