Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

implement code documentation and JavaScript™ Closures #118

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Empty file modified CUSTOMIZING.md
100755 → 100644
Empty file.
Empty file modified LICENSE
100755 → 100644
Empty file.
Empty file modified README.md
100755 → 100644
Empty file.
Empty file modified UPGRADING.md
100755 → 100644
Empty file.
Empty file modified app/index.js
100755 → 100644
Empty file.
Empty file modified app/templates/skeleton/.bowerrc
100755 → 100644
Empty file.
Empty file modified app/templates/skeleton/.editorconfig
100755 → 100644
Empty file.
Empty file modified app/templates/skeleton/.gitignore
100755 → 100644
Empty file.
Empty file modified app/templates/skeleton/.jshintrc
100755 → 100644
Empty file.
Empty file modified app/templates/skeleton/Gruntfile.js
100755 → 100644
Empty file.
Empty file modified app/templates/skeleton/app.js
100755 → 100644
Empty file.
Empty file modified app/templates/skeleton/app.less
100755 → 100644
Empty file.
Empty file modified app/templates/skeleton/bower.json
100755 → 100644
Empty file.
Empty file modified app/templates/skeleton/gulpfile.js
100755 → 100644
Empty file.
2 changes: 1 addition & 1 deletion app/templates/skeleton/index.html
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<title></title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta charset="utf-8">
<meta charset="utf-8">
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Roses are red, violets are blue, first indentations use spaces others should too 😉

<link href="app.less" type="text/css" rel="stylesheet/less">
</head>
<body>
Expand Down
Empty file modified app/templates/skeleton/package.json
100755 → 100644
Empty file.
Empty file modified directive/index.js
100755 → 100644
Empty file.
Empty file modified directive/templates/complex/directive-spec.js
100755 → 100644
Empty file.
Empty file modified directive/templates/complex/directive.html
100755 → 100644
Empty file.
40 changes: 30 additions & 10 deletions directive/templates/complex/directive.js
100755 → 100644
Original file line number Diff line number Diff line change
@@ -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) %>);

})();
Empty file modified directive/templates/complex/directive.less
100755 → 100644
Empty file.
Empty file modified directive/templates/simple/directive-spec.js
100755 → 100644
Empty file.
32 changes: 26 additions & 6 deletions directive/templates/simple/directive.js
100755 → 100644
Original file line number Diff line number Diff line change
@@ -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) {

}
}
};
});
}

angular
.module('<%= appname %>')
.directive('<%= _.camelize(name) %>', <%= _.camelize(name) %>);

})();
Empty file modified filter/index.js
100755 → 100644
Empty file.
Empty file modified filter/templates/filter-spec.js
100755 → 100644
Empty file.
29 changes: 25 additions & 4 deletions filter/templates/filter.js
100755 → 100644
Original file line number Diff line number Diff line change
@@ -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';
};
});
}

angular
.module('<%= appname %>')
.filter('<%= _.camelize(name) %>', <%= _.camelize(name) %>);

})();
Empty file modified modal/index.js
100755 → 100644
Empty file.
Empty file modified modal/templates/modal-spec.js
100755 → 100644
Empty file.
Empty file modified modal/templates/modal.html
100755 → 100644
Empty file.
24 changes: 22 additions & 2 deletions modal/templates/modal.js
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,4 +1,24 @@
angular.module('<%= appname %>').controller('<%= ctrlname %>',function($scope){
/**
* <%= name %> Controller
* @namespace Controllers
*/

(function() {
'use strict';

});
/*
* @name <%= _.camelize(ctrlname) %>
* @desc
* @param $scope
* @returns none
* @memberOf Controllers
*/
function <%= _.camelize(ctrlname) %>($scope){

}

angular
.module('<%= appname %>')
.controller('<%= ctrlname %>', <%= _.camelize(ctrlname) %>);

})();
Empty file modified modal/templates/modal.less
100755 → 100644
Empty file.
Empty file modified module/index.js
100755 → 100644
Empty file.
49 changes: 41 additions & 8 deletions module/templates/module.js
100755 → 100644
Original file line number Diff line number Diff line change
@@ -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);
<% } %>
})();
Empty file modified module/templates/module.less
100755 → 100644
Empty file.
Empty file modified package.json
100755 → 100644
Empty file.
Empty file modified partial/index.js
100755 → 100644
Empty file.
Empty file modified partial/templates/partial-spec.js
100755 → 100644
Empty file.
Empty file modified partial/templates/partial.html
100755 → 100644
Empty file.
24 changes: 22 additions & 2 deletions partial/templates/partial.js
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,4 +1,24 @@
angular.module('<%= appname %>').controller('<%= ctrlname %>',function($scope){
/**
* <%= ctrlname %> Controller
* @namespace Controllers
*/

(function() {
'use strict';

});
/*
* @name <%= _.camelize(ctrlname) %>
* @desc
* @param $scope
* @returns none
* @memberOf Controllers
*/
function <%= _.camelize(ctrlname) %>($scope){

}

angular
.module('<%= appname %>')
.controller('<%= ctrlname %>', <%= _.camelize(ctrlname) %>);

})();
Empty file modified partial/templates/partial.less
100755 → 100644
Empty file.
Empty file modified service/index.js
100755 → 100644
Empty file.
Empty file modified service/templates/service-spec.js
100755 → 100644
Empty file.
25 changes: 23 additions & 2 deletions service/templates/service.js
100755 → 100644
Original file line number Diff line number Diff line change
@@ -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) %>;
});
}

angular
.module('<%= appname %>')
.factory('<%= _.camelize(name) %>', <%= _.camelize(name) %>);

})();
Empty file modified test/test-creation.js
100755 → 100644
Empty file.
Empty file modified test/test-load.js
100755 → 100644
Empty file.
Empty file modified utils.js
100755 → 100644
Empty file.