Skip this step if you already did it before.
- Clone this repo to a directory outside project root:
git clone [email protected]:denisborovikov/gulp-frontend-dev.git
. - Go to the cloned directory:
cd gulp-frontend-dev
. - Install dependencies:
npm install
. - Install Gulp if not installed:
npm install -g gulp
.
- Go to the project root directory.
- Make symlink to
gulp-frontend-dev/node_modules
directory:ln -s /your_path_to/gulp-frontend-dev/node_modules .
- Make symlink to
gulp-frontend-dev/gulp
directory:ln -s /your_path_to/gulp-frontend-dev/gulp .
- If you start a new project, copy
gulp-config.js
,gulpfile.js
andpackage.json
files from the repo (see install section) to the project root directory. If it's existing project, this files should be in place.
- Copy
gulp/utils/gulp-config-local-example.js
to the project root directory and rename it togulp-config-local.js
. Make all of your local specific changes in this file. - If you start a new project, add
node_modules
,gulp
, andgulp-config-local.js
to.gitignore
.
Make this step cccasionally to make sure that your npm dependencies and gulp tasks are up-to-date.
Make this step if you get an error running gulp tasks.
- Go to the
gulp-frontend-dev
directory. - Update the repo:
git pull
. - If
gulpfile.js
was changed, copy and replace it in your project(s) root directory(s). - If
package.json
was changed, copy and replace it in your project(s) root directory(s). - If
gulp-config.js
was changed, merge it with the same file in your project(s) root directory(s). -
- If
gulp-config-local-example.js
was changed, copy it to your project(s) root directory(s), rename togulp-config-local.js
and merge with the same file.
- If
- Update npm dependencies:
npm install
.
TODO: Add tasks description.
gulp
gulp images
gulp sprites
gulp svg
gulp lint
gulp all
gulp html
gulp watch