Giter Club home page Giter Club logo

generator-gulp-ng's Introduction

This is a yeoman generator for an angularjs project that follows the Best Practice Recommendations for Angular App Structure.

It takes advantage of the gulp build tool and makes use of bower and npm for dependency management.


DIRECTORY STRUCTURE

app/
  components/
    app_service.js
    app_service_test.js
  main/
    main.html
    main_controller.js
    main_controller_test.js
  app.css
  app.js
  app_controller.js
  app_controller_test.js
  index.html
bower_components/    
node_modules/
.bowerrc
.gitignore
README.md
bower.json
gulpgile.js
package.json

FEAUTURES

  • follows the recommended best practice project structure for angularjs
  • all js files in the app folder are concatenated into build/app.js
  • all html files in the app folder except index.html are concatenated and compiled into a js file:build/templates.js and loaded into angular templateCache
  • all css files in the app folder are concatenated into build/app.css
  • all js files in the bower_components folder are concatenated into build/lib.js
  • all css files in the bower_components folder are concatenated into build/lib.css
  • index.html is copied to build/index.html
  • a static server is run at port 9000 with livereload support
  • when any html, js or css file in the build folder changes, they are autoreloaded on the browser

Prerequisites


USAGE

  1. npm install -g generator-gulp-ng

  2. mkdir myApp && cd myApp && yo gulp-ng

  3. gulp

  4. open browser to http://localhost:9000

  5. start hacking


Support

For questions and issues: https://github.com/henyojess/generator-gulp-ng/issues

generator-gulp-ng's People

Contributors

jessie-apollotech avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.