Permalink
Browse files

chore(netlify): make docs build properly (#5636)

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 committed Nov 30, 2018
1 parent d72786f commit a8828cd76d9cc40ce137bac152e6894a7f3f0a1b
Showing with 6 additions and 5 deletions.
  1. +5 −4 build/netlify-docs.js
  2. +1 −1 rollup.config.js
@@ -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();
}
}
@@ -50,7 +50,7 @@ const primedBabel = babel({
});

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

0 comments on commit a8828cd

Please sign in to comment.