Skip to content

Commit

Permalink
fix(Build): Update build to include RB tools.
Browse files Browse the repository at this point in the history
  • Loading branch information
kendrick committed Nov 21, 2017
1 parent 66e460e commit d826f75
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 1 deletion.
1 change: 1 addition & 0 deletions .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ dist/base/
dist/components/
dist/exposition/
dist/index.html
dist/partials/
dist/sitemap.xml
gulp-tasks/
gulpfile.js
Expand Down
2 changes: 1 addition & 1 deletion gulp-tasks/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

module.exports = function (gulp, plugins, config) {
return function (done) {
return plugins.runSequence('uglify', 'link', 'feature-detection', ['styles', 'views'], 'sitemap', done);
return plugins.runSequence('uglify', 'link', 'feature-detection', ['styles', 'views', 'copy-tools'], 'sitemap', done);
};
};
})();
11 changes: 11 additions & 0 deletions gulp-tasks/copy-tools.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
(function () {
'use strict';

module.exports = function copyTools(gulp, plugins, config) {
return function copyToolsBody() {
return gulp
.src([config.patternsPath + '/tools/**/*'])
.pipe(gulp.dest(config.buildPath + '/tools'));
};
};
})();
1 change: 1 addition & 0 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ gulp.task('clean-links', getTask('clean-links'));
gulp.task('clean', ['clean-links'], getTask('clean'));
gulp.task('copy-js', getTask('copy-js'));
gulp.task('copy-resources', getTask('copy-resources'));
gulp.task('copy-tools', getTask('copy-tools'));
gulp.task('css-sort', getTask('css-sort'));
gulp.task('feature-detection', getTask('feature-detection'));
gulp.task('icons-enterprise', getTask('icons', { enterprise: true }));
Expand Down

0 comments on commit d826f75

Please sign in to comment.