Skip to content

Commit

Permalink
Fixed build to include themes
Browse files Browse the repository at this point in the history
  • Loading branch information
Çağatay Çivici authored and Çağatay Çivici committed Aug 25, 2018
1 parent ba70454 commit e18dcae
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
10 changes: 9 additions & 1 deletion gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,14 @@ gulp.task('build-css', function() {
.pipe(gulp.dest('resources'));
});

gulp.task('build-themes', function() {
return gulp.src([
'public/resources/themes/**/*'
])
//.pipe(uglifycss({"uglyComments": true}))
.pipe(gulp.dest('resources/themes'));
})

gulp.task('images', function() {
return gulp.src(['src/components/**/images/*.png', 'src/components/**/images/*.gif'])
.pipe(flatten())
Expand All @@ -31,6 +39,6 @@ gulp.task('build-exports', function() {
});

//Building project with run sequence
gulp.task('prepublish', ['build-css','images']);
gulp.task('build-resources', ['build-css','images', 'build-themes']);


2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
"test": "react-scripts test --env=jsdom",
"eject": "react-scripts eject",
"compile-components": "babel src/components --out-dir components --presets es2015,react,stage-0 --copy-files",
"build-resources": "gulp prepublish",
"build-resources": "gulp build-resources",
"build-exports": "gulp build-exports"
}
}

0 comments on commit e18dcae

Please sign in to comment.