javascript - Why does ngdocs generate 0 files? -


I have set up a very simple project to test Grant-NGDOS (). However, when I try to generate documentation, it does not recognize any comments as to why ?! help!

GrantFile.js

  module.exports = function (grunt) {// project configuration grunt.initConfig ({ngdocs: {options: {dest: 'docs'} , API: {src: [someCode.js'], title: 'API documentation'}}}); // Load plug-ins that provide functions grunt.loadNpmTasks ('grunge-ngdocs'); };   

someCode.js

  / ** * * This is a sample function @param x * layers {number} * / var myFunc = function (X) {Return2 * x; };  

console output:

  slc058: ngDocPlay selah $ grunt ngdocs is running "ngdocs: api" (ngdocs) Working documentation documentation ... done . Generated 0 pages in 7ms, complete without errors  

I have some codecs Amended and then it worked!

someCode.js

  / ** * @ngdoc function * @name myFunc * @description * This is a sample function @most {number} x - any number , T thing which * / var myFunc = function (x) {return2 * x; };  

Comments

Popular posts from this blog

import - Python ImportError: No module named wmi -

Editing Python Class in Shell and SQLAlchemy -

lua - HowTo create a fuel bar -