gulp-routedoc
v1.0.0
Published
Gulp plugin for routedoc
Downloads
1
Maintainers
Readme
gulp-routedoc
Gulp plugin for routedoc.
Example
var gulp = require('gulp');
var routedoc = require('gulp-routedoc');
gulp.task('generate-urls', function() {
return gulp.src('./web/routes')
.pipe(routedoc({
as: 'es6'
})
.pipe(gulp.dest('build/public/js/routes'));
});
The above example will parse the routes file (located in web/routes
) and output as an es6 module in build/public/js/routes
.
Options
- Setting
as
as eitheres6
,commonjs
,amd
, orjson
will cause the output format to be the corresponding type. - Setting
mode
asstrict
(orstrict: true
) will cause the routedoc parser to run in strict mode.
License
MIT