1.0.0 • Published 9 years ago
gulp-routedoc v1.0.0
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
asas eitheres6,commonjs,amd, orjsonwill cause the output format to be the corresponding type. - Setting
modeasstrict(orstrict: true) will cause the routedoc parser to run in strict mode.
License
MIT
1.0.0
9 years ago