Skip to content

Commit

Permalink
Ensure CSS is built as part of predeploy
Browse files Browse the repository at this point in the history
  • Loading branch information
AlanFoster committed Nov 5, 2015
1 parent 562d7bd commit 414fce3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions gulpfile.babel.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,11 +109,11 @@ gulp.task('test-coverage', ['lint'], function (done) {
}, done).start();
});

gulp.task('clean-dist-js', function() {
gulp.task('clean-dist', function() {
return clean('dist');
});

gulp.task('build-dist-js', ['clean-dist-js'], function() {
gulp.task('build-dist-js', ['clean-dist'], function() {
// build javascript files
return gulp.src(['src/**/*.{js,jsx}', '!src/**/tests/**', '!src/tests.webpack.js'])
.pipe(plugins.babel({
Expand All @@ -131,6 +131,8 @@ gulp.task('build-dist-scss', function() {
.pipe(gulp.dest('./dist/css'));
});

gulp.task('build-dist', ['clean-dist', 'build-dist-js', 'build-dist-scss']);

gulp.task('build-example-js', function() {
var compiler = plugins.webpack(webpackConfig, webpack);

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"test": "gulp test-coverage",
"lint": "gulp lint",
"deploy-example": "gulp deploy-example",
"prepublish": "gulp build-dist-scss"
"prepublish": "gulp build-dist"
},
"style": "./dist/css/react-calendar.css",
"files": [
Expand Down

0 comments on commit 414fce3

Please sign in to comment.