This repository has been archived by the owner on Jun 15, 2023. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix const reassign & throw BrunchError (#1535)
* introduce plugin adapter * move `plugin.minify` handling to `plugin-adapter` * move missing `plugin.defaultEnv` handling to `plugin-adapter` * move `plugin.include` handling to `plugin-adapter` * arguments is still a thing * use String#repeat * move `logger.notifications` to `config.js` * minor tweaks * fix OptimizeJob * add `teardown` to `config.hooks` * reorder `onCompile` and `preCompile` hooks * replace `.constructor.name` with `brunchPluginName` * escape `plugin.extension` when converted to RegExp * move `promisifyHook` to utils * remove noops * promisify `preCompile` in `config.js` * promisify `preCompile` hook in `plugin-adapter` * reassign method in `promisifyHook` * introduce hooks merging * do not pass `onCompile` to `plugins.js` * remove old comments * refactor hash returned by `plugins.js` * fixes * move `callPlugin` to `plugin-adapter` * call plugin methods directly * fixes * early return * less indent * hoist pure functions * callback => onCompile * verbose ava * revert * move string wrapping to `plugin-adapter` * fix pattern * tweaks * refactor patternFor/isPluginFor * tweaks * respect custom paths to pkg.json in `plugins.js` * fix compileStatic wrapping * set up `staticPattern` conditionally * Fix const reassign * more descriptive name * Report legacy new syntax with BrunchError
- Loading branch information
1 parent
34bab85
commit 169b742
Showing
4 changed files
with
20 additions
and
16 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