Super simple Angular app using CoffeeScript, Jade and Stylus. Also has a easy to use cli for generating and deleting views. Everything is compiled using Gulp. BrowserSync will automatically inject css changes and reload your browser when editing your coffee and jade files.
All dependencies and libraries gathered using bower and then compiled into a single vendor.js file. If you require more dependencies or libraries, just run $ bower install [library you want] --save
, then run $ gulp vendor
from the command line and refresh your browser.
This app skeleton heavily relies on ngClassify. You will need to understand how it works in order to use this project. It is actually very simple and should only take a few minutes to start understanding the basics. It really makes the app super clean an organised.
For more info visit:
Along with Stylus I've added Jeet and Rupture to make media queries and grids much easier. You dont have to use these but I would highly recommend it.
For more info visit:
If you would like to create a spritesheet from a set of images, just add images to the src/assets
directory and run $ gulp sprites
from your command line. All images must be png format. A stylus file and corresponding sprite.png will be generated for you.
To display an icon just write out .icon-[image name]
in any of your jade templates.
For more info visit:
I've included some other libraries that I think are very useful
Just run the following from your command line
$ git clone [email protected]:ashmore11/angular-boilerplate.git`
$ cd angular-boilerplate
$ make setup
$ make watch
When gulp is up and running, run $ make open_localhost
to open the app in your default browser. If you are using Sublime Text 2 you can run $ make open_sublime
and it will open the app in Sublime for you. Just open the makefile to change this command to your editor of choice. You should now be able to start working on your app and see updates in your browser automatically thanks to BrowserSync.
The cli is still very much a work in progress but so far can be used to simultaneously generate a new controller, template and route with some boilerplate. The idea was to save time rather than waste it creating all the files manually. Feel free to add anything you think would be helpful and let me know if you do.
For more info visit:
Initial setup
$ npm install -g shelljs
$ make cli
To generate or delete a view just run the following from your command line
$ app mk-view [view name] [route name]
$ app rm-view [view name] [route name]
Just run the following from your command line
$ make release
If you would like to contribute, please do the following:
- Fork the repository.
- Create a separate branch using the latest master.
- Commit and push your changes to the branch.
- Make a pull request.
Many thanks to all the following for making life so much easier!