Skip to content

Commit

Permalink
Version 8.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
chyyran committed May 4, 2019
1 parent a027f99 commit 69f6377
Show file tree
Hide file tree
Showing 5 changed files with 2,333 additions and 405 deletions.
2 changes: 1 addition & 1 deletion dist/stone.dist.json

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions dist/stone.json
Original file line number Diff line number Diff line change
Expand Up @@ -3596,8 +3596,8 @@
"MaximumInputs": 4,
"FriendlyName": "Sega Dreamcast",
"FileTypes": {
".bin": "application/vnd.stone-romfile.sega.dc-rawtrack",
".raw": "application/vnd.stone-romfile.sega.dc-rawtrack",
".bin": "application/vnd.stone-romfile.sega.dc-discimage",
".raw": "application/vnd.stone-romfile.sega.dc-discimage",
".gdi": "application/vnd.stone-romfile.sega.dc-gdi",
".elf": "application/vnd.stone-romfile.sega.dc-elf",
".cdi": "application/vnd.stone-romfile.sega.dc-discjuggler"
Expand Down Expand Up @@ -3904,5 +3904,5 @@
}
}
},
"version": "7.1.2"
"version": "8.0.0"
}
38 changes: 19 additions & 19 deletions gulpfile.js
Original file line number Diff line number Diff line change
@@ -1,32 +1,32 @@
var gulp = require('gulp')
var yaml = require('gulp-yaml')
var jsonConcat = require('gulp-json-concat')
var merge = require('merge-stream')
var jeditor = require('gulp-json-editor')
var rename = require('gulp-rename')
var jsonFormat = require('gulp-json-format')
var tv4 = require('gulp-tv4')
var through = require('through2')
var packageData = require('./package.json')
const gulp = require('gulp')
const yaml = require('gulp-yaml')
const jsonConcat = require('gulp-json-concat')
const merge = require('merge-stream')
const jeditor = require('gulp-json-editor')
const rename = require('gulp-rename')
const jsonFormat = require('gulp-json-format')
const tv4 = require('gulp-tv4')
const through = require('through2')
const packageData = require('./package.json')

gulp.task('default', function () {
var controllerJson = gulp.src('./controller/*.yml')
gulp.task('default', () => {
let controllerJson = gulp.src('./controller/*.yml')
.pipe(yaml({ space: 0 }))
.pipe(tv4('./schema/controller.schema.json'))
.pipe(through.obj(function (file, enc, callback) {
.pipe(through.obj((file, enc, callback) => {
callback(null, file)
if (!file.tv4.valid) {
throw new Error(file.tv4.error + ' at ' + file.path)
}
}))
.pipe(jsonConcat('Controllers.json', function (data) {
.pipe(jsonConcat('Controllers.json', (data) => {
return new Buffer(JSON.stringify(data))
}))

var platformJson = gulp.src('./platform/*.yml')
let platformJson = gulp.src('./platform/*.yml')
.pipe(yaml({ space: 0 }))
.pipe(tv4('./schema/platform.schema.json'))
.pipe(through.obj(function (file, enc, callback) {
.pipe(through.obj((file, enc, callback) => {
callback(null, file)
if (!file.tv4.valid) {
throw new Error(file.tv4.error + ' at ' + file.path)
Expand All @@ -36,7 +36,7 @@ gulp.task('default', function () {
return new Buffer(JSON.stringify(data))
}))

merge(platformJson, controllerJson)
return merge(platformJson, controllerJson)
.pipe(jsonConcat('stone.json', function (data) {
return new Buffer(JSON.stringify(data))
}))
Expand All @@ -49,13 +49,13 @@ gulp.task('default', function () {
.pipe(gulp.dest('./dist'))
})

gulp.task('format-platform', function () {
gulp.task('format-platform', () => {
gulp.src('./platform/*.yml')
.pipe(yaml({ space: 2, safe: true }))
.pipe(gulp.dest('./src/platform'))
})

gulp.task('format-controller', function () {
gulp.task('format-controller', () => {
gulp.src('./controller/*.yml')
.pipe(yaml({ space: 2, safe: true }))
.pipe(gulp.dest('./src/controller'))
Expand Down
Loading

0 comments on commit 69f6377

Please sign in to comment.