.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
.eslintignore
.eslintrc
gulp/config.js
-
Open a Terminal or Command Prompt
-
Navigate (
cd
) to the root folder of your project -
Enter
npm install
, hit enter, wait for process to complete (may take a few mins) -
Navigate to the file
config.js
in the gulp folder (path[project root]/gulp/config.js
). -
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.
-
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