GithubHelp home page GithubHelp logo

isabella232 / ngbp-gulp Goto Github PK

View Code? Open in Web Editor NEW

This project forked from moduscreateorg/ngbp-gulp

0.0 0.0 0.0 247 KB

A modified version of the ngBoilerplate that replaces Grunt with gulp, and uses the Angular Material library instead of Boostrap.

JavaScript 98.89% CSS 1.11%

ngbp-gulp's Introduction

Angular Boilerplate

A version of the NGBP that uses gulp instead of Grunt, and comes default with the Angular Material library. Basic code examples are setup to follow Todd Motto and John Papa's styleguide for Angular. Inspired by ngbp by Josh Miller.

Get up and running

To use this boilerplate, we'll assume that you have globally installed versions of bower and npm, as well as node.

Download a ZIP of this repository - or clone, and run:

$ npm install
$ bower install
$ gulp

A server will be started at localhost:1337 for local dev. gulp will watch for changes to your filesystem, and run the appropriate tasks based on what changes.

Addtional vendor files

New application files that are added to /src will automatically be added to the build. Vendor JS and CSS paths must be added to build.config.js, as well as karma.conf.js.

Going to production

Ready to go to prod? Bump the version number in package.json, and run gulp prod to do a build. Production ready assets and code will be copied over to your /dist directory and ready for deployment.

Livereload

For Livereload to work, you must install this Chrome extension and have it activated when developing on localhost:1337.

Available Tasks

All tasks can be seen in the shell by running gulp help

build             runs: clean, sass, html2js, copy, test, index
build-prod-css    builds production ready CSS from /build
build-prod-index  builds our index.html file for production
build-prod-js     builds production ready javascript versionf of vendor, 
                  application, and template javascript.

clean             cleaning build directories
copy              copies all relevant files to their proper location in /build during development
help              Display this help text.
html2js           compiles .tpl.html files into javascript templates, injected into $templateCache
index             injects script and css files into our index.html file
jshint            runs jshint on our application code. reads a local copy of your .jshintrc 
                  in the root of the project
livereload        don't run this manually
ngAnnotate        runs ngAnnotate on our code for proper `strictdi` conformity
prod              builds our app for production, in /dist
sass              compiles sass files into css
server            spins up a local development server on 0.0.0.0:1337
test              uses karma to directly run our unit tests
watch             

Contributing

Please! I'd love to hear bug reports as well as pull requests. yes

License

   DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
                   Version 2, December 2004

Copyright (C) 2004 Sam Hocevar <[email protected]>

Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.

           DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
  TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION

 0. You just DO WHAT THE FUCK YOU WANT TO.

ngbp-gulp's People

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.