Last active
October 31, 2021 05:45
-
-
Save Oaphi/c9c58a779b4c4f50252f9adf36256e13 to your computer and use it in GitHub Desktop.
Gulp workflow
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# if gulp CLI is not installed | |
npm i -g gulp-cli | |
# gulp package | |
npm i -D gulp @types/gulp | |
# TypeScript prerequisites | |
# ts-node is required for gulpfile.ts | |
npm i -D typescript ts-node | |
# necessary plugins | |
# Uglify plugin doesn't come with types built-in | |
# same for Rename, Concat plugins | |
npm i -D gulp-typescript \ | |
gulp-uglify @types/gulp-uglify \ | |
gulp-rename @types/gulp-rename \ | |
gulp-concat @types/gulp-concat \ | |
gulp-append-prepend \ | |
gulp-autoprefixer @types/gulp-autoprefixer \ | |
gulp-inject @types/gulp-inject && \ | |
touch gulpfile.ts && \ | |
code guplfile.ts | |
# browserify - plugin not maintained, needs direct integration | |
# vinyl buffer is needed to create a transform stream | |
npm i -D browserify @types/browserify \ | |
vinyl-buffer @types/vinyl-buffer \ | |
vinyl-source-stream @types/vinyl-source-stream | |
# gulp-clean is deprecated, use 'del' package | |
npm i -D del |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment