Skip to content

alexloading/gulp-mson-to-json-schema

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gulp-mson-to-json-schema

install

$ npm install gulp-mson-to-json --save-dev

pipe

options
  • samples set to true to include schema conformant JSON files, populated with MSON sample values

/gulpfile.js

var gulp = require('gulp');
var MSONtoJSON = require('gulp-markdown-to-json-schema');

gulp.task('schema', function(){
  return gulp.src('./schema/**/*.md')
    .pipe(MSONtoJSON())
    .pipe(gulp.dest('./schema/json'));
});

JSON output comes from boutique as a string. Pipe in gulp-beautify for beautiful, readable files.


MIT LICENSE
copyright © 2015 Push the Red Button.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%