-
-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9b0db8f
commit fda4d2e
Showing
8 changed files
with
103 additions
and
35 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,5 @@ | ||
import normalizeErrors from './normalizeErrors'; | ||
|
||
export default (stats) => { | ||
return normalizeErrors(stats.compilation.errors); | ||
}; |
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,5 @@ | ||
import normalizeErrors from './normalizeErrors'; | ||
|
||
export default (stats) => { | ||
return normalizeErrors(stats.compilation.warnings); | ||
}; |
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,19 @@ | ||
import compile from './compile'; | ||
import execute from './execute'; | ||
import getCompiler from './getCompiler'; | ||
import getErrors from './getErrors'; | ||
import getWarnings from './getWarnings'; | ||
import normalizeErrors from './normalizeErrors'; | ||
import readAsset from './readAsset'; | ||
import readsAssets from './readAssets'; | ||
|
||
export { compile, getCompiler, normalizeErrors, readAsset }; | ||
export { | ||
compile, | ||
execute, | ||
getCompiler, | ||
getErrors, | ||
getWarnings, | ||
normalizeErrors, | ||
readAsset, | ||
readsAssets, | ||
}; |
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,11 @@ | ||
import readAsset from './readAsset'; | ||
|
||
export default function readAssets(compiler, stats) { | ||
const assets = {}; | ||
|
||
Object.keys(stats.compilation.assets).forEach((asset) => { | ||
assets[asset] = readAsset(asset, compiler, stats); | ||
}); | ||
|
||
return assets; | ||
} |
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