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.
Merge pull request react-bootstrap#607 from react-bootstrap/revert-53…
…6-master Revert "adds ability to require components already wrapped in factories"
- Loading branch information
Showing
9 changed files
with
4 additions
and
105 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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 was deleted.
Oops, something went wrong.
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,21 +1,11 @@ | ||
import 'colors'; | ||
import { exec } from '../exec'; | ||
import path from 'path'; | ||
import fsp from 'fs-promise'; | ||
import { srcRoot, libRoot } from '../constants'; | ||
import generateFactories from '../generateFactories'; | ||
|
||
const factoryDestination = path.join(libRoot, 'factories'); | ||
const babelOptions = '--optional es7.objectRestSpread'; | ||
|
||
export default function BuildCommonJs() { | ||
console.log('Building: '.cyan + 'npm module'.green); | ||
|
||
return exec(`rimraf ${libRoot}`) | ||
.then(() => fsp.mkdirs(factoryDestination)) | ||
.then(() => Promise.all([ | ||
generateFactories(babelOptions, factoryDestination), | ||
exec(`babel ${babelOptions} ${srcRoot} --out-dir ${libRoot}`) | ||
])) | ||
.then(() => exec(`babel --optional es7.objectRestSpread ${srcRoot} --out-dir ${libRoot}`)) | ||
.then(() => console.log('Built: '.cyan + 'npm module'.green)); | ||
} |
This file was deleted.
Oops, something went wrong.