This repository has been archived by the owner on Dec 22, 2020. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(infra): node 10+, webpack@5 compat, latest webpack-defaults (#84)
* chore(infra): node 10+, latest webpack-defaults - upgrade all deps to latest stable. - regenerate `package-lock.json`. * chore(tests): update to newer template - add cjs test, checking pitch loader is set as well. - update to latest test helpers, simplifing a bit with newer syntax. - remove now-unused memory-fs (replaced with memfs; same as template). * test: disable namedModules when snapshoting to avoid env-specific information in bundle * test: try using production mode to see if webpack 4 and 5 bundles match then * test: configure jest to run in node mode it has jsdom failures in browser mode * test: back to development mode and turn moduleIds off, to try and normalize webpack 4/5 * test: behaviorial test using puppeteer * test: ensure headless mode used only for debugging * test: longer timeout for browser tests * feat: support webpack 5 - avoid using process.nextTick, as it is no longer polyfilled in webpack 5 - decrease test timeout to 15s (typo) - decrease puppeteer timeout to 5s - catch page errors after evaluation * fix: revert start script to a regular function that code is being bundled, so prefer older syntax * fix: remove rest of MochaPhantomJS code * chore(infra): regenerate package-lock ensure we pass with latest 3rd, 4th, etc parties * test: remove now unneeded lint globals * test: increase puppeteer timeout to 15s for slow CI. set timeout of e2e test to 20s, so that proper errors will be shown. * fix: ensure output works when injected to <head> - avoid using document.write to be less destructive - create output element right before running and after DOMContentLoaded - remove initialization script in favor of resolving mocha's js/css once in loader - use require.resolve so loader entry throws if not finding required files. - ensure mocha.js and mocha.css don't get further processed by prefixing with !!. (no pre/post loaders as well; see: https://webpack.js.org/concepts/loaders/#inline) * fix: mark webpack@5 as compatible peerDep * chore(deps): remove now-unused "del" devDep still brought indirectly by other deps * chore(eps): update minimum mocha to 5+ per PR review
- Loading branch information
1 parent
48bede8
commit 5b44fa1
Showing
23 changed files
with
2,867 additions
and
2,028 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
module.exports = { | ||
testEnvironment: 'node', | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
module.exports = { | ||
'*.js': ['prettier --write', 'eslint --fix', 'git add'], | ||
'*.{json,md,yml,css}': ['prettier --write', 'git add'], | ||
'*.{json,md,yml,css,ts}': ['prettier --write', 'git add'], | ||
}; |
Oops, something went wrong.