Skip to content

Commit

Permalink
fix(gulp): make sure tests and main app file are not injected
Browse files Browse the repository at this point in the history
filter out tests and `app.js` from the script files injected into
`index.html`
  • Loading branch information
david-mohr committed Dec 20, 2015
1 parent bb67961 commit 0171112
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/templates/gulpfile.babel(gulp).js
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ gulp.task('inject', cb => {
gulp.task('inject:js', () => {
return gulp.src(paths.client.mainView)
.pipe(plugins.inject(
gulp.src(_.union(paths.client.scripts, [`!${clientPath}/**/*.spec.<%= scriptExt %>`]), {read: false})
gulp.src(_.union(paths.client.scripts, [`!${clientPath}/**/*.{spec,mock}.js`, `!${clientPath}/app/app.js`]), {read: false})
.pipe(plugins.sort(sortModulesFirst)),
{
starttag: '<!-- injector:js -->',
Expand Down

0 comments on commit 0171112

Please sign in to comment.