forked from facebook/Rapid
-
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 #12 from bonkles-worldai/v3_merge
Merge master with latest v3 code from upstream.
- Loading branch information
Showing
406 changed files
with
6,266 additions
and
10,818 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
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 |
---|---|---|
@@ -0,0 +1,27 @@ | ||
const buildData = require('./build_data'); | ||
const buildSrc = require('./build_src'); | ||
const buildCSS = require('./build_css'); | ||
|
||
let _currBuild = null; | ||
|
||
// if called directly, do the thing. | ||
buildAll(); | ||
|
||
|
||
function buildAll() { | ||
if (_currBuild) return _currBuild; | ||
|
||
return _currBuild = | ||
Promise.resolve() | ||
.then(() => buildCSS()) | ||
.then(() => buildData()) | ||
.then(() => buildSrc()) | ||
.then(() => _currBuild = null) | ||
.catch((err) => { | ||
console.error(err); | ||
_currBuild = null; | ||
process.exit(1); | ||
}); | ||
} | ||
|
||
module.exports = buildAll; |
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
Oops, something went wrong.