diff options
author | Michal Wolny <michal.wolny@versum.pl> | 2020-10-06 19:28:20 +0200 |
---|---|---|
committer | Michal Wolny <michal.wolny@versum.pl> | 2020-10-06 19:28:20 +0200 |
commit | d82841119820b4814169a8fa42a88f166f406a6f (patch) | |
tree | 5617b40088a57a19c74b454d949bbba5d3b63c63 /gulpfile.js | |
parent | Release 1.33.0 (diff) | |
download | tabler-icons-d82841119820b4814169a8fa42a88f166f406a6f.tar.xz |
[dev-icons-react-bundling] change svgr template to enable babel transformation, add babel with react and env, add rollup for commonJS, UMD and ESM, add gulp and npm tasks for building react, add peer react and react-dom dependencies, add needed deps, updated npm package files, updated readme
Diffstat (limited to 'gulpfile.js')
-rw-r--r-- | gulpfile.js | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/gulpfile.js b/gulpfile.js index f7826fa1..da9f4aa0 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -650,4 +650,10 @@ gulp.task('update-icons-version', function (cb) { cb(); }); -gulp.task('build', gulp.series('optimize', 'update-icons-version', 'build-jekyll', 'build-copy', 'icons-sprite', 'svg-to-react', 'icons-preview', 'svg-to-png', 'build-iconfont', 'changelog-image', 'build-zip')); +gulp.task("build-react", function (cb) { + cp.exec("npm run build-react", function () { + cb(); + }); +}); + +gulp.task('build', gulp.series('optimize', 'update-icons-version', 'build-jekyll', 'build-copy', 'icons-sprite', 'svg-to-react', 'build-react', 'icons-preview', 'svg-to-png', 'build-iconfont', 'changelog-image', 'build-zip')); |