gulp-mson-to-json-schema

1.1.1 • Public • Published

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.

Package Sidebar

Install

npm i gulp-mson-to-json-schema

Weekly Downloads

2

Version

1.1.1

License

MIT

Last publish

Collaborators

  • pushred