Skip to content
This repository has been archived by the owner on Jun 2, 2022. It is now read-only.

Webpack 5 #25

Merged
merged 26 commits into from
Feb 6, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
7913b2f
chore: update minor dependencies
Oct 11, 2020
45cbf97
chore: update un-critically dependencies
Oct 11, 2020
2d87d21
test: replace deprecated puppeteer's page.waitFor()
Oct 11, 2020
8bca48d
refactor: webpack 5.0.0
Oct 11, 2020
6c346b8
fix: webpack 5.0.0 type errors
Oct 12, 2020
db1d78e
fix: temporary use custom build webpack-bundle-analyzer
Oct 12, 2020
91e0212
fix: can't find tar file on yarn workspace
Oct 12, 2020
29ceb7d
fix: can't find tar file on yarn workspace
Oct 12, 2020
c8d07d7
fix: disable webpack-bundle-analyzer with the issue https://github.co…
Nov 10, 2020
abe02af
chore: update dependencies
Nov 10, 2020
cfe5288
chore: update dependencies
Nov 10, 2020
9e2df08
fix: disable webpack-bundle-analyzer with the issue https://github.co…
Nov 10, 2020
dc18411
chore: update dependencies
Nov 11, 2020
0af3659
chore: update dependencies
Feb 5, 2021
9c697a4
fix: e2e error related js-yaml
Feb 5, 2021
50e1f58
fix: monkey patch for an error the webpack-bundle-analyzer access to …
Feb 5, 2021
3034277
docs: add dependencies doc
Feb 5, 2021
8dd5e85
fix: rollback package separation get-webpack-alias
Feb 5, 2021
9c6eee5
breaking change: drop node 10
Feb 5, 2021
6808add
test: avoid e2e test error by npm 7
Feb 5, 2021
850c29d
test: create .npmrc files each package output directory to avoid the …
Feb 6, 2021
95ffa73
fix: solve conflict between webpack own declaration and @types/webpack
Feb 6, 2021
1b35b73
fix: --legacy-peer-deps
Feb 6, 2021
3bb7397
fix: increase github actions operation timeout
Feb 6, 2021
0b7530a
fix: increase github actions operation timeout
Feb 6, 2021
779c4cf
test: using yarn instead of npm on e2e test's dependency installation
Feb 6, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ jobs:
e2e:
name: E2E ${{ matrix.node }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
timeout-minutes: 15
timeout-minutes: 30

strategy:
fail-fast: false
matrix:
node: [10, 12, 14]
node: [12, 14, 15]
os: [ubuntu-latest]

steps:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
strategy:
fail-fast: false
matrix:
node: [10, 12, 14]
node: [12, 14, 15]
os: [ubuntu-latest, macos-latest]
include:
- os: windows-latest
Expand Down
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,10 @@ lerna-debug.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
package-lock.json

# output
coverage/
out/
source/test/storage/
source/test/storage/
packages/.fixtures
11 changes: 11 additions & 0 deletions DEPENDENCIES.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# DO NOT UPGRADE THESE DEPENDENCIES

```
◯ fork-ts-checker-webpack-plugin latest 5.2.1 ❯ 6.1.0 packages https://github.com/TypeStrong/fork-ts-checker-webpack-plugin#readme
◯ html-webpack-plugin latest 4.5.1 ❯ 5.0.0 packages https://github.com/jantimon/html-webpack-plugin
◯ http-proxy-middleware latest 0.19.2 ❯ 1.0.6 packages https://github.com/chimurai/http-proxy-middleware#readme
◯ node-sass latest 4.14.1 ❯ 5.0.0 packages https://github.com/sass/node-sass
◯ puppeteer latest 6.0.0 ❯ 7.0.1 packages https://github.com/puppeteer/puppeteer#readme
◯ puppeteer-core latest 6.0.0 ❯ 7.0.1 packages https://github.com/puppeteer/puppeteer#readme
◯ sass-loader latest 8.0.2 ❯ 11.0.0 packages https://github.com/webpack-contrib/sass-loader
```
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@
"@handbook/markdown-source-import": "^1.0.1",
"@ssen/eslint-config": "^1.3.1",
"@ssen/prettier-config": "^1.2.0",
"eslint": "^7.10.0",
"eslint-config-prettier": "^6.12.0",
"husky": "^4.3.0",
"lint-staged": "^10.4.0",
"prettier": "^2.1.2"
"eslint": "^7.19.0",
"eslint-config-prettier": "^7.2.0",
"husky": "^4.3.8",
"lint-staged": "^10.5.3",
"prettier": "^2.2.1"
}
}
2 changes: 1 addition & 1 deletion packages/.package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"bugs": "https://github.com/rocket-hangar/rocket-scripts/issues",
"homepage": "https://github.com/rocket-hangar/rocket-scripts/tree/master/packages/src/{name}",
"engines": {
"node": ">=10"
"node": ">=12"
},
"publishConfig": {
"access": "public"
Expand Down
8 changes: 4 additions & 4 deletions packages/.packages.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
'@ssen/*':
version: 1.3.0
tag: latest
version: 2.0.0-alpha.1
tag: canary
module: commonjs
'@rocket-scripts/*':
version: 1.3.0
tag: latest
version: 2.0.0-alpha.1
tag: canary
module: commonjs
2 changes: 1 addition & 1 deletion packages/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ module.exports = {

setupFiles: ['<rootDir>/jest.setup.js'],

testTimeout: 100000,
testTimeout: process.env.CI ? 130000 : 50000,

moduleNameMapper: {
...jestPreset.moduleNameMapper,
Expand Down
44 changes: 22 additions & 22 deletions packages/jest.setup.js
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
const fs = require('fs');
const path = require('path');

function getModuleDirectories(from) {
const moduleDirectories = [];
const root = path.resolve('/');

let dir = from;
while (dir !== root) {
const modules = path.resolve(dir, 'node_modules');

if (fs.existsSync(modules)) {
moduleDirectories.push(modules);
}

dir = path.dirname(dir);
}

return moduleDirectories.join(':');
}

process.env.NODE_PATH = getModuleDirectories(__dirname);
//const fs = require('fs');
//const path = require('path');
//
//function getModuleDirectories(from) {
// const moduleDirectories = [];
// const root = path.resolve('/');
//
// let dir = from;
// while (dir !== root) {
// const modules = path.resolve(dir, 'node_modules');
//
// if (fs.existsSync(modules)) {
// moduleDirectories.push(modules);
// }
//
// dir = path.dirname(dir);
// }
//
// return moduleDirectories.reverse().join(':');
//}
//
//process.env.NODE_PATH = getModuleDirectories(__dirname);
194 changes: 96 additions & 98 deletions packages/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,155 +31,153 @@
]
},
"devDependencies": {
"@babel/core": "^7.11.6",
"@babel/plugin-proposal-class-properties": "^7.10.1",
"@babel/plugin-proposal-decorators": "^7.10.5",
"@babel/plugin-proposal-nullish-coalescing-operator": "^7.10.1",
"@babel/plugin-proposal-object-rest-spread": "^7.11.0",
"@babel/plugin-proposal-optional-chaining": "^7.11.0",
"@babel/core": "^7.12.13",
"@babel/plugin-proposal-class-properties": "^7.12.13",
"@babel/plugin-proposal-decorators": "^7.12.13",
"@babel/plugin-proposal-nullish-coalescing-operator": "^7.12.13",
"@babel/plugin-proposal-object-rest-spread": "^7.12.13",
"@babel/plugin-proposal-optional-chaining": "^7.12.13",
"@babel/plugin-syntax-dynamic-import": "^7.8.3",
"@babel/plugin-transform-arrow-functions": "^7.10.4",
"@babel/plugin-transform-destructuring": "^7.10.1",
"@babel/preset-env": "^7.11.5",
"@babel/preset-react": "^7.10.1",
"@babel/preset-typescript": "^7.10.1",
"@babel/plugin-transform-arrow-functions": "^7.12.13",
"@babel/plugin-transform-destructuring": "^7.12.13",
"@babel/preset-env": "^7.12.13",
"@babel/preset-react": "^7.12.13",
"@babel/preset-typescript": "^7.12.13",
"@loadable/babel-plugin": "^5.13.2",
"@loadable/webpack-plugin": "^5.13.0",
"@loadable/webpack-plugin": "^5.14.2",
"@mapbox/rehype-prism": "^0.5.0",
"@mdx-js/loader": "^1.6.18",
"@ssen/jest-transform": "^2.3.1",
"@ssen/promised": "^2.3.1",
"@ssen/require-typescript": "^2.3.1",
"@ssen/tmp-directory": "^2.3.1",
"@svgr/webpack": "^5.2.0",
"@testing-library/dom": "^7.24.3",
"@testing-library/react-hooks": "^3.4.2",
"@mdx-js/loader": "^1.6.22",
"@ssen/jest-transform": "^2.4.0",
"@ssen/promised": "^2.4.0",
"@ssen/require-typescript": "^2.4.0",
"@ssen/tmp-directory": "^2.4.0",
"@svgr/webpack": "^5.5.0",
"@testing-library/dom": "^7.29.4",
"@testing-library/react-hooks": "^5.0.3",
"@types/anymatch": "^1.3.1",
"@types/babel__core": "^7.1.10",
"@types/babel__core": "^7.1.12",
"@types/babel__preset-env": "^7.9.1",
"@types/browserslist": "^4.8.0",
"@types/eslint": "^7.2.3",
"@types/browserslist": "^4.15.0",
"@types/eslint": "^7.2.6",
"@types/file-loader": "^4.2.0",
"@types/fs-extra": "^9.0.1",
"@types/fs-extra": "^9.0.6",
"@types/glob": "^7.1.2",
"@types/html-webpack-plugin": "^3.2.2",
"@types/http-proxy-middleware": "^0.19.3",
"@types/jest": "^26.0.14",
"@types/js-yaml": "^3.12.5",
"@types/less": "^3.0.1",
"@types/jest": "^26.0.20",
"@types/js-yaml": "^4.0.0",
"@types/less": "^3.0.2",
"@types/loadable__webpack-plugin": "^5.7.1",
"@types/lodash.debounce": "^4.0.6",
"@types/mini-css-extract-plugin": "^0.9.1",
"@types/node": "^14.11.2",
"@types/node-fetch": "^2.5.5",
"@types/mini-css-extract-plugin": "^1.2.2",
"@types/node": "^14.14.25",
"@types/node-fetch": "^2.5.8",
"@types/node-sass": "^4.11.0",
"@types/nodemon": "^1.19.0",
"@types/optimize-css-assets-webpack-plugin": "^5.0.1",
"@types/optimize-css-assets-webpack-plugin": "^5.0.2",
"@types/prompts": "^2.4.0",
"@types/puppeteer": "^3.0.2",
"@types/puppeteer-core": "^2.0.0",
"@types/ramda": "^0.27.19",
"@types/react": "^16.9.49",
"@types/puppeteer": "^5.4.3",
"@types/puppeteer-core": "^5.4.0",
"@types/ramda": "^0.27.36",
"@types/react": "^17.0.1",
"@types/react-dev-utils": "^9.0.4",
"@types/react-dom": "^16.9.8",
"@types/react-test-renderer": "^16.9.3",
"@types/resolve": "^1.14.0",
"@types/react-dom": "^17.0.0",
"@types/react-test-renderer": "^17.0.0",
"@types/resolve": "^1.19.0",
"@types/rimraf": "^3.0.0",
"@types/semver": "^7.3.4",
"@types/source-map-support": "^0.5.1",
"@types/stream-buffers": "^3.0.3",
"@types/terser-webpack-plugin": "^4.2.0",
"@types/testing-library__react-hooks": "^3.4.1",
"@types/terser-webpack-plugin": "^5.0.2",
"@types/testing-library__react-hooks": "^4.0.0",
"@types/tmp": "^0.2.0",
"@types/webpack": "^4.41.22",
"@types/webpack-bundle-analyzer": "^3.8.0",
"@types/webpack-dev-server": "^3.11.0",
"@types/webpack-env": "^1.15.3",
"@types/webpack-bundle-analyzer": "^3.9.0",
"@types/webpack-dev-server": "^3.11.1",
"@types/webpack-env": "^1.16.0",
"@types/webpack-merge": "^4.1.5",
"@types/webpack-node-externals": "^2.5.0",
"@types/yargs": "^15.0.7",
"@types/yargs": "^16.0.0",
"anymatch": "^3.1.1",
"babel-jest": "^26.3.0",
"babel-loader": "^8.0.6",
"babel-plugin-import": "^1.12.2",
"babel-plugin-named-asset-import": "^0.3.6",
"browserslist": "^4.14.5",
"cfonts": "^2.8.6",
"babel-jest": "^26.6.3",
"babel-loader": "^8.2.2",
"babel-plugin-import": "^1.13.3",
"babel-plugin-named-asset-import": "^0.3.7",
"browserslist": "^4.16.3",
"cfonts": "^2.9.1",
"chalk": "^4.1.0",
"chokidar": "^3.4.2",
"css-loader": "^4.3.0",
"date-fns": "^2.16.1",
"electron": "^10.1.3",
"chokidar": "^3.5.1",
"css-loader": "^5.0.1",
"date-fns": "^2.17.0",
"electron": "^11.2.3",
"escape-string-regexp": "^4.0.0",
"eslint": "^7.10.0",
"eslint-config-prettier": "^6.12.0",
"eslint": "^7.19.0",
"eslint-config-prettier": "^7.2.0",
"eslint-loader": "^4.0.2",
"file-loader": "^6.1.0",
"fork-ts-checker-webpack-plugin": "^5.2.0",
"fs-extra": "^9.0.1",
"file-loader": "^6.2.0",
"fork-ts-checker-webpack-plugin": "^5",
"fs-extra": "^9.1.0",
"glob": "^7.1.6",
"gray-matter": "^4.0.2",
"html-webpack-plugin": "^4.5.0",
"http-proxy-middleware": "^0.19.1",
"ink": "^3.0.6",
"ink-testing-library": "^2.0.1",
"ink": "^3.0.8",
"ink-testing-library": "^2.1.0",
"ink-use-stdout-dimensions": "^1.0.5",
"intl-messageformat": "^9.3.8",
"jest": "^26.4.1",
"js-yaml": "^3.14.0",
"intl-messageformat": "^9.4.6",
"jest": "^26.6.3",
"js-yaml": "^4.0.0",
"json-loader": "^0.5.7",
"less": "^3.12.2",
"less-loader": "^7.0.1",
"lint-staged": "^10.4.0",
"less": "^4.1.1",
"less-loader": "^8.0.0",
"lint-staged": "^10.5.4",
"lodash.debounce": "^4.0.8",
"mini-css-extract-plugin": "^0.11.2",
"mini-css-extract-plugin": "^1.3.5",
"node-fetch": "^2.6.1",
"node-sass": "^4.13.1",
"nodemon": "^2.0.4",
"nodemon": "^2.0.7",
"optimize-css-assets-webpack-plugin": "^5.0.4",
"package-json": "^6.5.0",
"portfinder": "^1.0.28",
"postcss": "^8.1.1",
"postcss-flexbugs-fixes": "^4.2.0",
"postcss-loader": "^4.0.2",
"postcss": "^8.2.4",
"postcss-flexbugs-fixes": "^5.0.2",
"postcss-loader": "^5.0.0",
"postcss-normalize": "^9.0.0",
"postcss-preset-env": "^6.7.0",
"postcss-safe-parser": "^5.0.2",
"prompts": "^2.3.1",
"puppeteer": "^5.3.1",
"puppeteer-core": "^5.3.1",
"prompts": "^2.4.0",
"puppeteer": "^6.0.0",
"puppeteer-core": "^6.0.0",
"ramda": "^0.27.1",
"raw-loader": "^4.0.0",
"react": "^16.13.1",
"react-dev-utils": "^10.2.1",
"react-dom": "^16.13.1",
"raw-loader": "^4.0.2",
"react": "^17.0.1",
"react-dev-utils": "^11.0.2",
"react-dom": "^17.0.1",
"react-svg-loader": "^3.0.3",
"react-test-renderer": "^16.13.1",
"resolve": "^1.15.1",
"react-test-renderer": "^17.0.1",
"resolve": "^1.19.0",
"rimraf": "^3.0.2",
"rocket-punch": "^2.3.1",
"rocket-punch": "^2.4.0",
"rxjs": "^6.6.3",
"sass-loader": "^8.0.2",
"semver": "^7.1.3",
"semver": "^7.3.4",
"source-map-support": "^0.5.16",
"stream-buffers": "^3.0.2",
"strip-ansi": "^6.0.0",
"style-loader": "^1.1.3",
"terser": "^5.3.3",
"terser-webpack-plugin": "^4.2.2",
"style-loader": "^2.0.0",
"terser": "^5.6.0-beta",
"terser-webpack-plugin": "^5.1.1",
"tmp": "^0.2.1",
"ts-jest": "^26.4.1",
"ts-node": "^9.0.0",
"ts-jest": "^26.5.0",
"ts-node": "^9.1.1",
"tsconfig-paths": "^3.9.0",
"typescript": "^4.0.3",
"url-loader": "^4.1.0",
"webpack": "^4.44.2",
"webpack-bundle-analyzer": "^3.9.0",
"webpack-dev-server": "^3.10.3",
"webpack-merge": "^5.1.4",
"typescript": "^4.1.3",
"url-loader": "^4.1.1",
"webpack": "^5.21.0",
"webpack-bundle-analyzer": "^4.4.0",
"webpack-dev-server": "^3.11.2",
"webpack-merge": "^5.7.3",
"webpack-node-externals": "^2.5.2",
"worker-loader": "^3.0.3",
"worker-loader": "^3.0.7",
"yaml-loader": "^0.6.0",
"yargs": "^16.0.3"
"yargs": "^16.2.0"
}
}
Loading