Skip to content

Commit

Permalink
chore(netlify): make docs build properly (#5636)
Browse files Browse the repository at this point in the history
Refactor of the clean task added docs/api, which didn't happen
previously. Re-order when things are generated to work around it.

Also, don't show rollup progress on netlify either.
  • Loading branch information
gkatsev authored Nov 30, 2018
1 parent d72786f commit a8828cd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
9 changes: 5 additions & 4 deletions build/netlify-docs.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,15 @@ if (process.env.BRANCH === 'master' && semver.valid(output.trim()) === null) {

// if we're on any other branch, we can regenerate docs
} else {
if (process.env.BRANCH !== 'master') {
// generate the example
generateExample();
}

// generate the docs
sh.exec('npm run docs:api');

// copy the legacy docs over
sh.cp('-R', 'docs/legacy-docs', 'docs/api/docs');

if (process.env.BRANCH !== 'master') {
// generate the example
generateExample();
}
}
2 changes: 1 addition & 1 deletion rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ const primedBabel = babel({
});

const progress = () => {
if (process.env.TRAVIS) {
if (process.env.TRAVIS || process.env.NETLIFY) {
return {};
}

Expand Down

0 comments on commit a8828cd

Please sign in to comment.