Skip to content

Commit 073b642

Browse files
committed
ng-doc basic setup
1 parent 1a3a3c9 commit 073b642

File tree

6 files changed

+28
-6
lines changed

6 files changed

+28
-6
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# master only
2+
/docs
3+
14
# Created by https://www.gitignore.io
25

36
### Project ###

gulpfile.js

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ var path = require('path');
1010
var cache = require('gulp-cache');
1111
var angularFilesort = require('gulp-angular-filesort');
1212
var ngAnnotate = require('gulp-ng-annotate');
13-
var karmaServer = require('karma').Server;
1413

1514
// Check for "TRUE" code style in JS files
1615
gulp.task('lint', function () {
@@ -51,12 +50,23 @@ gulp.task('compile', function () {
5150
});
5251

5352
gulp.task('test', ['lint', 'compile'], function (done) {
53+
var karmaServer = require('karma').Server;
54+
5455
new karmaServer({
5556
configFile: __dirname + '/karma.conf.js',
5657
browsers: ['PhantomJS']
5758
}, done).start();
5859
});
5960

61+
gulp.task('generate-doc', function () {
62+
var gulpDocs = require('gulp-ngdocs');
63+
return gulp.src('./src/**/*.js')
64+
.pipe(gulpDocs.process({
65+
html5Mode: false
66+
}))
67+
.pipe(gulp.dest('./docs'));
68+
});
69+
6070

6171
gulp.task('watch', function () {
6272
gulp.watch(['./lib/**/*.js'], ['lint', 'compile']);

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
"gulp-concat": "~2.6.0",
3333
"gulp-jshint": "~1.11.2",
3434
"gulp-ng-annotate": "^1.0.0",
35+
"gulp-ngdocs": "^0.2.13",
3536
"jasmine-core": "^2.3.4",
3637
"karma": "^0.13.9",
3738
"karma-chrome-launcher": "^0.2.0",

src/acl-registry-service.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
/**
2-
* @ngdoc service
3-
* @name AclRegistryService
2+
* @ngdoc object
3+
* @name ng-acl.AclRegistryService
44
* @description AclRegistryService factory
55
*/
66
angular.module('ng-acl').factory('AclRegistryService', function () {
77
'use strict';
88

99
/**
10-
* @ngdoc method
10+
* @name AclRegistryService
1111
* @constructs AclRegistryService
1212
* @description Initializes a new ACL role registry
1313
*/

src/acl-service.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@
3737

3838

3939
/**
40-
* @ngdoc service
41-
* @name AclService
40+
* @ngdoc object
41+
* @name ng-acl.AclService
4242
* @description
4343
* Provides a lightweight and flexible access control list (ACL) implementation for privileges management.
4444
* In general, an application may utilize such ACL‘s to control access to certain protected objects by other requesting objects.

src/acl.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,9 @@
1+
/**
2+
* @ngdoc overview
3+
* @name ng-acl
4+
*
5+
* @description
6+
* # ng-acl
7+
* Angular ACL module
8+
*/
19
angular.module('ng-acl', []);

0 commit comments

Comments
 (0)