-
-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(plugins): issue with new version of clean webpack plugin
The new version doesn't expect path, rather uses option to configure itself. Pass in new option to keep the old behavior.
- Loading branch information
Showing
7 changed files
with
60 additions
and
33 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
@types/** |
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,6 +1,6 @@ | ||
declare module 'clean-webpack-plugin' { | ||
import * as webpack from 'webpack'; | ||
export default class cleanWebpackPlugin extends webpack.Plugin { | ||
constructor(config:string[], options: {[x:string]: boolean|string|string[]}) | ||
constructor(options: {[x:string]: boolean|string|string[]}) | ||
} | ||
} |
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,22 @@ | ||
#!/usr/bin/env node | ||
/** | ||
* This file provides a cli helpline for developers to quickly check | ||
* the output of different commands without touching the file-system. | ||
* | ||
* Check the source code for more documentation | ||
*/ | ||
|
||
import program from 'commander'; | ||
import process from 'process'; | ||
import { Bootstrap } from '../scripts/Bootstrap'; | ||
|
||
program | ||
.command('bootstrap') | ||
.description('Check the CLI output of bootstrap command') | ||
.action(async () => { | ||
const bs = new Bootstrap(process.cwd(), '0.0.0-dev'); | ||
const answer = await bs.getUserInput(); | ||
console.log(JSON.stringify(answer, null, 4)); | ||
}); | ||
|
||
program.parse(process.argv); |
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