<commit_before># ng-boilerplate

## Install
```bash
$ git clone git://github.com/joshdmiller/ng-boilerplate
$ cd ng-boilerplate
$ sudo npm -g install grunt-cli karma bower
$ npm install
$ bower install
(if you want to use foundation/sass) $ sudo apt-get gem install compass zurb-foundation
$ grunt dev
```

## Goal
This is my own take on https://github.com/ngbp/ng-boilerplate (called ngbp from now on in this file), modifying it
to work for *me*, not supposed to be generic.
The main difference with ngbp is that it is more barebone to fit my own needs :

- SASS with Foundation
- dev/release grunt tasks
- neat code organization (this uses the same layout as ngbp, except that the sass files and templates are in their own folder)

The main difference when it comes to code is that I am not using ngMin and therefore need to inline the injection of modules.

The following link http://docs.angularjs.org/guide/di (the Inline Annotation section) explains the way to do it.

## Structure

```bash
ng-boilerplate/
  |- src/
  |  |- app/
  |  |  |- <app logic>
  |  |- assets/
  |  |  |- <static files>
  |  |- style/
  |  |  |- *.scss
  |- libs/
  |  |- angular/
  |  |- angular-ui-router/
  |- .bowerrc
  |- .gitignore
  |- bower.json
  |- build.config.js
  |- Gruntfile.js
  |- package.json
```
See this awesome discussion to understand the structure : https://github.com/yeoman/generator-angular/issues/109  
The basic idea is that you create a folder for each feature in src/app and put your code/html in it (look at the home directory for an example).

## Tasks
There are grunt 4 tasks :

- build: one off dev build
- dev: continuous build process, automatically run tests on code change, compile compass, concatenates templates
- test: run the whole test suite
- release: create a release directory containing the files ready to deploy

## TODO
Add common directory to the build<commit_msg>chore(doc): update readme<commit_after># ng-boilerplate

## Install
```bash
$ git clone git://github.com/Keats/ng-boilerplate
$ cd ng-boilerplate
$ git submodule init
$ git submodule update
$ sudo npm -g install grunt-cli bower
$ npm install
$ bower install
$ grunt dev
```

## Goal
This is my own take on https://github.com/ngbp/ng-boilerplate (called ngbp from now on in this file), modifying it
to work for *me*, not supposed to be generic.
The main difference with ngbp is that it is more barebone to fit my own needs :

- SASS using snowflake https://github.com/Keats/snowflake (Bourbon + Neat + some parts of Foundation 5)
- dev/release grunt tasks
- neat code organization (this uses the same layout as ngbp, except that the sass files and templates are in their own folder)

The main difference when it comes to code is that I am not using ngMin and therefore do DI a bit differently (look at app.coffee to see an example).

## Structure

```bash
ng-boilerplate/
  |- src/
  |  |- app/
  |  |  |- <app logic>
  |  |- assets/
  |  |  |- <static files>
  |  |- style/
  |  |  |- *.scss
  |  |- templates/
  |  |  |- **/*.html
  |- libs/
  |  |- angular/
  |  |- angular-ui-router/
  |- .bowerrc
  |- .gitignore
  |- bower.json
  |- build.config.js
  |- Gruntfile.js
  |- package.json
```
See this awesome discussion to understand the structure : https://github.com/yeoman/generator-angular/issues/109
The basic idea is that you create a folder for each feature in src/app, making for very small files.
I also put tests into their own folders in a feature directory with an extensions of .tests.coffee.

## Tasks
There are 4 grunt tasks :

- build: one off dev build
- dev: continuous build process, automatically run tests on code change, compile compass, concatenates templates
- test: run the whole test suite
- release: create a release directory containing the files ready to deploy
{'fraction_non_alphanumeric': 0.09664642196989702, 'fraction_numerical': 0.0023765513599155004, 'mean_word_length': 3.280225988700565, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 5, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1578166', 'n_tokens_mistral': 1219, 'n_tokens_neox': 1136, 'n_words': 496}