File tree 12 files changed +83
-2
lines changed 12 files changed +83
-2
lines changed Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ module.exports = function (grunt) {
37
37
} , < % } else { % >
38
38
js : {
39
39
files : [ '<%%= yeoman.app %>/scripts/{,*/}*.js' ] ,
40
- tasks : [ 'newer:jshint:all' ] ,
40
+ tasks : [ 'ngdocs' , ' newer:jshint:all'] ,
41
41
options : {
42
42
livereload : true
43
43
}
@@ -393,6 +393,13 @@ module.exports = function (grunt) {
393
393
configFile : 'karma.conf.js' ,
394
394
singleRun : true
395
395
}
396
+ } ,
397
+ ngdocs: {
398
+ options : {
399
+ dest : '.tmp/docs' ,
400
+ html5Mode : false
401
+ } ,
402
+ api : [ '<%%= yeoman.app %>/scripts/{,*/}*.js' ] ,
396
403
}
397
404
} );
398
405
@@ -407,6 +414,7 @@ module.exports = function (grunt) {
407
414
'bower-install',
408
415
'concurrent:server',
409
416
'autoprefixer',
417
+ 'ngdocs',
410
418
'connect:livereload',
411
419
'watch'
412
420
]);
Original file line number Diff line number Diff line change 27
27
"grunt-usemin" : " ~2.0.0" ,
28
28
"jshint-stylish" : " ~0.1.3" ,
29
29
"load-grunt-tasks" : " ~0.2.0" ,
30
- "time-grunt" : " ~0.2.1"
30
+ "time-grunt" : " ~0.2.1" ,
31
+ "grunt-ngdocs" : " ~0.1.7"
31
32
},
32
33
"engines" : {
33
34
"node" : " >=0.10.0"
Original file line number Diff line number Diff line change 1
1
'use strict' ;
2
2
3
+ /**
4
+ * @ngdoc overview
5
+ * @name <%= scriptAppName %>
6
+ * @description
7
+ * # <%= scriptAppName %>
8
+ *
9
+ * Main module of the application.
10
+ */
3
11
angular . module ( '<%= scriptAppName %>' , [ < %= angularModules % > ])< % if ( ngRoute ) { % >
4
12
. config ( function ( $routeProvider ) {
5
13
$routeProvider
Original file line number Diff line number Diff line change 1
1
'use strict' ;
2
2
3
+ /**
4
+ * @ngdoc function
5
+ * @name <%= scriptAppName %>.controller:<%= classedName %>Ctrl
6
+ * @description
7
+ * # <%= classedName %>Ctrl
8
+ * Controller of the <%= scriptAppName %>
9
+ */
3
10
angular . module ( '<%= scriptAppName %>' )
4
11
. controller ( '<%= classedName %>Ctrl' , function ( $scope ) {
5
12
$scope . awesomeThings = [
Original file line number Diff line number Diff line change 1
1
'use strict' ;
2
2
3
+ /**
4
+ * @ngdoc function
5
+ * @name <%= scriptAppName %>.decorator:<%= classedName %>
6
+ * @description
7
+ * # <%= classedName %>Ctrl
8
+ * Decorator of the <%= scriptAppName %>
9
+ */
3
10
angular . module ( '<%= scriptAppName %>' )
4
11
. config ( function ( $provide ) {
5
12
$provide . decorator ( '<%= cameledName %>' , function ( $delegate ) {
Original file line number Diff line number Diff line change 1
1
'use strict' ;
2
2
3
+ /**
4
+ * @ngdoc directive
5
+ * @name <%= scriptAppName %>.directive:<%= cameledName %>
6
+ * @description
7
+ * # <%= cameledName %>
8
+ * Directive to replace content with custom text.
9
+ */
3
10
angular . module ( '<%= scriptAppName %>' )
4
11
. directive ( '<%= cameledName %>' , function ( ) {
5
12
return {
Original file line number Diff line number Diff line change 1
1
'use strict' ;
2
2
3
+ /**
4
+ * @ngdoc filter
5
+ * @name <%= scriptAppName %>.filter:<%= cameledName %>
6
+ * @function
7
+ * @description
8
+ * # <%= cameledName %>
9
+ * Filter to change your value.
10
+ */
3
11
angular . module ( '<%= scriptAppName %>' )
4
12
. filter ( '<%= cameledName %>' , function ( ) {
5
13
return function ( input ) {
Original file line number Diff line number Diff line change 1
1
'use strict' ;
2
2
3
+ /**
4
+ * @ngdoc service
5
+ * @name <%= scriptAppName %>.<%= cameledName %>
6
+ * @description
7
+ * # <%= cameledName %>
8
+ * Constat in the <%= scriptAppName %>.
9
+ */
3
10
angular . module ( '<%= scriptAppName %>' )
4
11
. constant ( '<%= cameledName %>' , 42 ) ;
Original file line number Diff line number Diff line change 1
1
'use strict' ;
2
2
3
+ /**
4
+ * @ngdoc service
5
+ * @name <%= scriptAppName %>.<%= cameledName %>
6
+ * @description
7
+ * # <%= cameledName %>
8
+ * Factory in the <%= scriptAppName %>.
9
+ */
3
10
angular . module ( '<%= scriptAppName %>' )
4
11
. factory ( '<%= cameledName %>' , function ( ) {
5
12
// Service logic
Original file line number Diff line number Diff line change 1
1
'use strict' ;
2
2
3
+ /**
4
+ * @ngdoc service
5
+ * @name <%= scriptAppName %>.<%= cameledName %>
6
+ * @description
7
+ * # <%= cameledName %>
8
+ * Provider in the <%= scriptAppName %>.
9
+ */
3
10
angular . module ( '<%= scriptAppName %>' )
4
11
. provider ( '<%= cameledName %>' , function ( ) {
5
12
Original file line number Diff line number Diff line change 1
1
'use strict' ;
2
2
3
+ /**
4
+ * @ngdoc service
5
+ * @name <%= scriptAppName %>.<%= cameledName %>
6
+ * @description
7
+ * # <%= cameledName %>
8
+ * Service in the <%= scriptAppName %>.
9
+ */
3
10
angular . module ( '<%= scriptAppName %>' )
4
11
. service ( '<%= classedName %>' , function < %= classedName % > ( ) {
5
12
// AngularJS will instantiate a singleton by calling "new" on this function
Original file line number Diff line number Diff line change 1
1
'use strict' ;
2
2
3
+ /**
4
+ * @ngdoc service
5
+ * @name <%= scriptAppName %>.<%= cameledName %>
6
+ * @description
7
+ * # <%= cameledName %>
8
+ * Value in the <%= scriptAppName %>.
9
+ */
3
10
angular . module ( '<%= scriptAppName %>' )
4
11
. value ( '<%= cameledName %>' , 42 ) ;
You can’t perform that action at this time.
0 commit comments