1.1.1 • Published 8 years ago

gulp-mson-to-json-schema v1.1.1

Weekly downloads
1
License
MIT
Repository
github
Last release
8 years ago

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.