Level 102
What version of gulp are you using? Did you try googling the error?
Summer Sale! All accounts are 50% off this week.
i need help pls
var gulp = require("gulp");
var yaml = require("js-yaml");
var path = require("path");
var fs = require("fs");
//converts yaml to js
gulp.task("swagger", function() {
var doc = yaml.safeload(fs.readFileSync(path.join(__dirname, "api/swagger/swagger.yaml")));
fs.writeFileSync(
path.join(__dirname, "../golang.json"),
JSON.stringifty(doc, null," ")
);
});
//watch for changers
gulp.task("watch", function() {
gulp.watch("api/swagger/swagger.yaml", ["swagger"]);
})
Please or to participate in this conversation.