generator-angular-xl
generator-angular-xl copied to clipboard
An opinionated kickstarter for your next large scale AngularJS application
http://java.dzone.com/articles/rich-object-models-and-0
``` javascript $provide.provider('Service', function () { this.$get = function() { return { getAll: something.stubPromise().returns('Default return').rejects('Default reject') }; }; }); .... User.getAll._stub.resolve(); // Resolves with default value defined in stub User.getAll._stub.resolve('data');...
https://github.com/blueimp/angular-localize + https://github.com/blueimp/grunt-locales
Refactor `resources.json`. ``` json "external": [ "bower_components/log/log.js" ], "externalExcludeFromBuild": [ "bower_components/angular-mocks/angular-mocks*.js" ], ``` Should rather become ``` json "external": [ "bower_components/log/log.js", "[ no-build | no-min ]bower_components/angular-mocks/angular-mocks*.js" ] ```
Pre compile each src file with ng-min and uglify and test the minified code. This simplifies writing minsafe code.
All generatorstuff should be moved into a template folder that is local to the project, and use gulp tasks to implement generator stuff. Allows for per project changes etc.