Skip to content

Commit

Permalink
Fixed #7186, added new build script to dist task. Build and includes …
Browse files Browse the repository at this point in the history
…es-modules in distribution.
  • Loading branch information
jon-a-nygaard committed Feb 19, 2018
1 parent c1004ae commit edf3893
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions gulpfile.js
Expand Up @@ -406,7 +406,9 @@ const compile = (files, sourceFolder) => {
const compileScripts = () => {
const sourceFolder = './code/';
const files = getFilesInFolder(sourceFolder, true, '')
.filter(path => path.endsWith('.src.js'));
// Compile all files ending with .src.js.
// Do not compile files in ./es-modules or ./js/es-modules.
.filter(path => (path.endsWith('.src.js') && !path.includes('es-modules')));
return compile(files, sourceFolder);
};

Expand Down Expand Up @@ -1367,7 +1369,7 @@ gulp.task('dist', () => {
return Promise.resolve()
.then(gulpify('cleanCode', cleanCode))
.then(gulpify('styles', styles))
.then(gulpify('scripts', scripts))
.then(gulpify('scripts', getBuildScripts({}).fnFirstBuild))
.then(gulpify('lint', lint))
.then(gulpify('compile', compileScripts))
.then(gulpify('cleanDist', cleanDist))
Expand Down

0 comments on commit edf3893

Please sign in to comment.