From e18dcaefd55d706e4abb36b112d3e34b26e71751 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=87a=C4=9Fatay=20=C3=87ivici?= Date: Sat, 25 Aug 2018 13:15:47 +0300 Subject: [PATCH] Fixed build to include themes --- gulpfile.js | 10 +++++++++- package.json | 2 +- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/gulpfile.js b/gulpfile.js index 473a3048db..47458d7892 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -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()) @@ -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']); \ No newline at end of file diff --git a/package.json b/package.json index 32aa9a9b72..dd1225402a 100644 --- a/package.json +++ b/package.json @@ -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" } }