forked from react-bootstrap/react-bootstrap
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[fixed] Do not use Babel cache for release build
Fixes react-bootstrap#840
- Loading branch information
Jimmy Jia
committed
Jun 15, 2015
1 parent
737a672
commit 01c547f
Showing
6 changed files
with
49 additions
and
27 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,15 @@ | ||
import { exec } from '../exec'; | ||
import { distRoot } from '../constants'; | ||
|
||
export default function BuildDistributable() { | ||
export default function BuildDistributable({useCache}) { | ||
console.log('Building: '.cyan + 'distributable'.green); | ||
|
||
const useCacheOption = `--use-cache=${Boolean(useCache)}`; | ||
|
||
return exec(`rimraf ${distRoot}`) | ||
.then(() => Promise.all([ | ||
exec('webpack --bail'), | ||
exec('webpack --bail -p') | ||
exec(`webpack ${useCacheOption} --bail`), | ||
exec(`webpack ${useCacheOption} --bail -p`) | ||
])) | ||
.then(() => console.log('Built: '.cyan + 'distributable'.green)); | ||
} |
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