Skip to content

Seed project - Angular driven web app demo with Gulp, Bower and Browserify for app workflow management

Notifications You must be signed in to change notification settings

pshingavi/angular-gulp-bower-browserify-seed

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AngularJS - workflow with Gulp, Bower, Browserify

This is a starter demo for AngularJS using workflow tools to automate the builds and dependencies of the front-end web applicaiton.

GULP - Javascript task runner, used to automate repetitive tasks (i.e., minifying, linting, testing, building, compiling) to simplify the build process.

BOWER - Manage front-end dependencies and serve css/js etc from the downloaded repo configured.

BROWSERIFY - Also manages front-end dependencies (mainly js) and works with NPM 'require' calls for including dependencies instead of script includes in the HTML documents.

Be sure to check NPM first before relying on Bower so you can take advantage of the simple require calls, via Browserify, which reduces code clutter and enables you to write modular, re-usable code.

This example uses Bower to crack jQuery dependency (just to demonstrate the use of bower). Other dependencies like angular, angular-ui-router are taken care by NPM via Browserify require calls, which loads dependencies from node_modules installed.

Quick Start

  1. Install Node js - Here
  2. Clone the repo
  3. Install the global requirements: npm install -g gulp bower browserify
  4. Install the local requirements: npm install
  5. Install the Bower components: bower install
  6. Run locally: gulp
  7. browserify : angular dependencies
  8. jshint : js validations
  9. connect to local server at port defined in the log (here : 8888)
  10. Run build: gulp build
  11. jshint : js validations
  12. css-minify : minify css and deploy to build folder
  13. browserify and js-minify : process angular dependencies, concat and minify to single js and copy to build folder
  14. copy-html-files : Copy HTML partial / non-partial files to deploy folder
  15. copy-bower-components : Copy bower_components dependency files to deploy folder
  16. connect to local server at port defined in the log (here : 9999) with app path pointing to build folder
  17. To clean the build: gulp clean
  18. Delete the deploy folder
  19. Delete the minified single js from app folder created from Run build (above)

Take a look - Blog post

Be sure to read the blog posts to learn how to create this setup from scratch:

  1. Kickstarting Angular With Gulp and Browserify, Part 1 - Gulp and Bower
  2. Kickstarting Angular With Gulp and Browserify, Part 2 - Browserify

About

Seed project - Angular driven web app demo with Gulp, Bower and Browserify for app workflow management

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published