diff --git a/CUSTOMIZING.md b/CUSTOMIZING.md old mode 100755 new mode 100644 diff --git a/LICENSE b/LICENSE old mode 100755 new mode 100644 diff --git a/README.md b/README.md old mode 100755 new mode 100644 diff --git a/UPGRADING.md b/UPGRADING.md old mode 100755 new mode 100644 diff --git a/app/index.js b/app/index.js old mode 100755 new mode 100644 diff --git a/app/templates/skeleton/.bowerrc b/app/templates/skeleton/.bowerrc old mode 100755 new mode 100644 diff --git a/app/templates/skeleton/.editorconfig b/app/templates/skeleton/.editorconfig old mode 100755 new mode 100644 diff --git a/app/templates/skeleton/.gitignore b/app/templates/skeleton/.gitignore old mode 100755 new mode 100644 diff --git a/app/templates/skeleton/.jshintrc b/app/templates/skeleton/.jshintrc old mode 100755 new mode 100644 diff --git a/app/templates/skeleton/Gruntfile.js b/app/templates/skeleton/Gruntfile.js old mode 100755 new mode 100644 diff --git a/app/templates/skeleton/app.js b/app/templates/skeleton/app.js old mode 100755 new mode 100644 diff --git a/app/templates/skeleton/app.less b/app/templates/skeleton/app.less old mode 100755 new mode 100644 diff --git a/app/templates/skeleton/bower.json b/app/templates/skeleton/bower.json old mode 100755 new mode 100644 diff --git a/app/templates/skeleton/gulpfile.js b/app/templates/skeleton/gulpfile.js old mode 100755 new mode 100644 diff --git a/app/templates/skeleton/index.html b/app/templates/skeleton/index.html old mode 100755 new mode 100644 index 335ee20..c4af99e --- a/app/templates/skeleton/index.html +++ b/app/templates/skeleton/index.html @@ -3,7 +3,7 @@ - + diff --git a/app/templates/skeleton/package.json b/app/templates/skeleton/package.json old mode 100755 new mode 100644 diff --git a/directive/index.js b/directive/index.js old mode 100755 new mode 100644 diff --git a/directive/templates/complex/directive-spec.js b/directive/templates/complex/directive-spec.js old mode 100755 new mode 100644 diff --git a/directive/templates/complex/directive.html b/directive/templates/complex/directive.html old mode 100755 new mode 100644 diff --git a/directive/templates/complex/directive.js b/directive/templates/complex/directive.js old mode 100755 new mode 100644 index 39d2759..30d8c80 --- a/directive/templates/complex/directive.js +++ b/directive/templates/complex/directive.js @@ -1,14 +1,34 @@ -angular.module('<%= appname %>').directive('<%= _.camelize(name) %>', function() { - return { - restrict: 'E', - replace: true, - scope: { +/** + * <%= name %> Directive + * @namespace Directives + */ + +(function() { + 'use strict'; - }, - templateUrl: '<%= htmlPath %>', - link: function(scope, element, attrs, fn) { + /* + * @name <%= _.camelize(name) %> + * @desc + * @param none + * @returns directive object + * @memberOf Directives + */ + function <%= _.camelize(name) %>() { + return { + restrict: 'EA', + replace: true, + scope: { + }, + templateUrl: '<%= htmlPath %>', + link: function(scope, element, attrs, fn) { - } + } }; -}); + } + + angular + .module('<%= appname %>') + .directive('<%= _.camelize(name) %>', <%= _.camelize(name) %>); + +})(); diff --git a/directive/templates/complex/directive.less b/directive/templates/complex/directive.less old mode 100755 new mode 100644 diff --git a/directive/templates/simple/directive-spec.js b/directive/templates/simple/directive-spec.js old mode 100755 new mode 100644 diff --git a/directive/templates/simple/directive.js b/directive/templates/simple/directive.js old mode 100755 new mode 100644 index 3391aec..9d13357 --- a/directive/templates/simple/directive.js +++ b/directive/templates/simple/directive.js @@ -1,9 +1,29 @@ -angular.module('<%= appname %>').directive('<%= _.camelize(name) %>', function() { - return { - restrict: 'A', - link: function(scope, element, attrs, fn) { +/** + * <%= name %> Directive + * @namespace Directives + */ + +(function() { + 'use strict'; + /* + * @name <%= _.camelize(name) %> + * @desc + * @param none + * @returns directive object + * @memberOf Directives + */ + function <%= _.camelize(name) %>() { + return { + restrict: 'EA', + link: function(scope, element, attrs, fn) { - } + } }; -}); \ No newline at end of file + } + + angular + .module('<%= appname %>') + .directive('<%= _.camelize(name) %>', <%= _.camelize(name) %>); + +})(); diff --git a/filter/index.js b/filter/index.js old mode 100755 new mode 100644 diff --git a/filter/templates/filter-spec.js b/filter/templates/filter-spec.js old mode 100755 new mode 100644 diff --git a/filter/templates/filter.js b/filter/templates/filter.js old mode 100755 new mode 100644 index 1993020..4bbab6e --- a/filter/templates/filter.js +++ b/filter/templates/filter.js @@ -1,5 +1,26 @@ -angular.module('<%= appname %>').filter('<%= _.camelize(name) %>', function() { - return function(input,arg) { - return 'output'; +/** + * <%= name %> Filter + * @namespace Filters + */ + +(function() { + 'use strict'; + + /* + * @name <%= _.camelize(name) %> + * @desc + * @param none + * @returns filter function + * @memberOf Filters + */ + function <%= _.camelize(name) %>() { + return function(input, arg) { + return 'output'; }; -}); \ No newline at end of file + } + + angular + .module('<%= appname %>') + .filter('<%= _.camelize(name) %>', <%= _.camelize(name) %>); + +})(); diff --git a/modal/index.js b/modal/index.js old mode 100755 new mode 100644 diff --git a/modal/templates/modal-spec.js b/modal/templates/modal-spec.js old mode 100755 new mode 100644 diff --git a/modal/templates/modal.html b/modal/templates/modal.html old mode 100755 new mode 100644 diff --git a/modal/templates/modal.js b/modal/templates/modal.js old mode 100755 new mode 100644 index 4704561..0b7b0b6 --- a/modal/templates/modal.js +++ b/modal/templates/modal.js @@ -1,4 +1,24 @@ -angular.module('<%= appname %>').controller('<%= ctrlname %>',function($scope){ +/** + * <%= name %> Controller + * @namespace Controllers + */ +(function() { + 'use strict'; -}); \ No newline at end of file + /* + * @name <%= _.camelize(ctrlname) %> + * @desc + * @param $scope + * @returns none + * @memberOf Controllers + */ + function <%= _.camelize(ctrlname) %>($scope){ + + } + + angular + .module('<%= appname %>') + .controller('<%= ctrlname %>', <%= _.camelize(ctrlname) %>); + +})(); diff --git a/modal/templates/modal.less b/modal/templates/modal.less old mode 100755 new mode 100644 diff --git a/module/index.js b/module/index.js old mode 100755 new mode 100644 diff --git a/module/templates/module.js b/module/templates/module.js old mode 100755 new mode 100644 index 3a34ce6..6abda91 --- a/module/templates/module.js +++ b/module/templates/module.js @@ -1,14 +1,47 @@ -angular.module('<%= _.camelize(name) %>', ['ui.bootstrap','ui.utils','<%= routerModuleName %>','ngAnimate']); +/** + * <%= name %> Module + * @namespace Modules + */ + +(function() { + 'use strict'; + + angular + .module('<%= _.camelize(name) %>', ['ui.bootstrap','ui.utils','<%= routerModuleName %>','ngAnimate']); <% if (!uirouter) { %> -angular.module('<%= _.camelize(name) %>').config(function($routeProvider) { + /* + * @name <%= _.camelize(name) %>Route + * @desc defined route for module <%= name %> + * @param $routeProvider + * @returns none + * @memberOf Modules + */ + function <%= _.camelize(name) %>Route($routeProvider) { + + /* Add New Routes Above */ - /* Add New Routes Above */ + } + + angular + .module('<%= _.camelize(name) %>') + .config(<%= _.camelize(name) %>Route); +<% } %> +<% if (uirouter) { %> + /* + * @name <%= _.camelize(name) %>Route + * @desc defined route for module <%= name %> + * @param $stateProvider + * @returns none + * @memberOf Modules + */ + function <%= _.camelize(name) %>Route($stateProvider) { -}); -<% } %><% if (uirouter) { %> -angular.module('<%= _.camelize(name) %>').config(function($stateProvider) { + /* Add New States Above */ - /* Add New States Above */ + } -}); + angular + .module('<%= _.camelize(name) %>') + .config(<%= _.camelize(name) %>Route); <% } %> +})(); diff --git a/module/templates/module.less b/module/templates/module.less old mode 100755 new mode 100644 diff --git a/package.json b/package.json old mode 100755 new mode 100644 diff --git a/partial/index.js b/partial/index.js old mode 100755 new mode 100644 diff --git a/partial/templates/partial-spec.js b/partial/templates/partial-spec.js old mode 100755 new mode 100644 diff --git a/partial/templates/partial.html b/partial/templates/partial.html old mode 100755 new mode 100644 diff --git a/partial/templates/partial.js b/partial/templates/partial.js old mode 100755 new mode 100644 index 4704561..b29b44b --- a/partial/templates/partial.js +++ b/partial/templates/partial.js @@ -1,4 +1,24 @@ -angular.module('<%= appname %>').controller('<%= ctrlname %>',function($scope){ +/** + * <%= ctrlname %> Controller + * @namespace Controllers + */ +(function() { + 'use strict'; -}); \ No newline at end of file + /* + * @name <%= _.camelize(ctrlname) %> + * @desc + * @param $scope + * @returns none + * @memberOf Controllers + */ + function <%= _.camelize(ctrlname) %>($scope){ + + } + + angular + .module('<%= appname %>') + .controller('<%= ctrlname %>', <%= _.camelize(ctrlname) %>); + +})(); diff --git a/partial/templates/partial.less b/partial/templates/partial.less old mode 100755 new mode 100644 diff --git a/service/index.js b/service/index.js old mode 100755 new mode 100644 diff --git a/service/templates/service-spec.js b/service/templates/service-spec.js old mode 100755 new mode 100644 diff --git a/service/templates/service.js b/service/templates/service.js old mode 100755 new mode 100644 index 6f5f88d..77e969a --- a/service/templates/service.js +++ b/service/templates/service.js @@ -1,6 +1,27 @@ -angular.module('<%= appname %>').factory('<%= _.camelize(name) %>',function() { +/** + * <%= name %> Factory + * @namespace Factories + */ + +(function() { + 'use strict'; + + /* + * @name <%= _.camelize(ctrlname) %> + * @desc + * @param none + * @returns factory object + * @memberOf Factories + */ + function <%= _.camelize(name) %>() { var <%= _.camelize(name) %> = {}; return <%= _.camelize(name) %>; -}); \ No newline at end of file + } + + angular + .module('<%= appname %>') + .factory('<%= _.camelize(name) %>', <%= _.camelize(name) %>); + +})(); diff --git a/test/test-creation.js b/test/test-creation.js old mode 100755 new mode 100644 diff --git a/test/test-load.js b/test/test-load.js old mode 100755 new mode 100644 diff --git a/utils.js b/utils.js old mode 100755 new mode 100644