Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Gulp-Bower Presentation

Gulp-Bower Presentation

Building a front-end toolchain with Gulp and Bower

Devon Bellizio

November 11, 2015
Tweet

Other Decks in Technology

Transcript

  1. How does Gulp work? • Streaming build system • Uses

    node filestreams • Manipulates files in memory • Files are ‘piped’ through plugins • Integrates with any technology stack • Focus is on I/O
  2. Gulp do’s and don’ts • Keep task names short &

    explicit • Modularize tasks into separate files • Maintain a list of file paths in a variable • Serve files from a dedicated build folder • Don’t cram all tasks into gulpfile.js • Don’t download every plugin ever • Avoid duplicating tasks only to change one process • Don’t serve files from a ‘tmp’ folder Do’s Don’ts
  3. Gulp setup • ‘npm install -g gulp’ • Plugins •

    ‘npm install <plugin> --save-dev’ • CLI • ‘gulp <task>’ • IDE integration (optional)
  4. Bower setup • ‘npm install -g bower’ • bower.json •

    ‘bower init’ • .bowerrc file (optional) • CLI • ‘bower install <package> --save'