Skip to content

kerelist/gulp-setup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Gulp Setup - Import to any project

NPM & GULP

Set configurations (do not change these unless necessary or agreed upon by a team)

.editorconfig (see installation additional info, bottom) works with your editor to maintain formatting standards

gulpfile.js base installation of gulp - here, recurses through the gulp folder to find configuration and tasks

Stable configurations (will work as-is but able to be expanded upon)

.eslintignore

.eslintrc

TO DO: Editable configurations (must edit to start project, see #4 below)

gulp/config.js

Getting Started: The Baseline

  1. Open a Terminal or Command Prompt

  2. Navigate (cd) to the root folder of your project

  3. Enter npm install, hit enter, wait for process to complete (may take a few mins)

  4. Navigate to the file config.js in the gulp folder (path [project root]/gulp/config.js).

  5. Change configuration paths to match those in your project. If you haven’t added any FED files yet (css, js, etc), do that first. There are suggested formats included in the comments of the config file.

  6. Test out the commands! There is a listing in this README, below.

v3.9.0; sass compiled with node-sass, requires npm > 3.7.5

installation npm install

tasks all held in the gulp/tasks folder.

config held in gulp/config.js

useful combined tasks:

gulp dev: clean, lint, sass, concat

gulp: (default) dev, watch

gulp build: clean, lint, uglify, compress; to be attached to qa/prod build engine process

imagemin: rastermin (jpg png gif lossless), svgmin (svgo); only minifies (no svg sprites), must have images in a /src/ folder within main images folder of project

svg-sprites: svg-prep, svg-symbol; creates svg sprites, consult config & task in tasks/svg.js for further guidance

notes: [project]/[images]/src to be added to .gitignore

About

my current gulp setup

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published