Skip to content

Commit

Permalink
Merge pull request #629 from RCopeland/build-fix
Browse files Browse the repository at this point in the history
Build fix
  • Loading branch information
RCopeland authored Oct 3, 2018
2 parents 4f2020c + 25fc4f9 commit e9d1cb8
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ gulp.task('build', (done) => {
'copy',
'sass',
'images',
'build-es5',
'js',
'critical',
done,
Expand Down Expand Up @@ -150,6 +151,20 @@ gulp.task('build-angular', (cb) => {
});
});

gulp.task('build-es5', (cb) => {
const cmd = exec(`
cd packages/spark-core &&
npm install && npm build && cd .. &&
cd spark-extras/components/highlight-board && npm install && npm build
`, {
stdio: 'inherit',
});
return cmd.on('close', cb).on('error', (err) => {
log.error(err.message);
});
});


gulp.task('pre-publish', ['build-angular'], () => {});

// Register default task
Expand Down

0 comments on commit e9d1cb8

Please sign in to comment.