Skip to content

Commit

Permalink
deletign schema.json (#146)
Browse files Browse the repository at this point in the history
  • Loading branch information
sachingupta committed Oct 16, 2018
1 parent 92002c4 commit 975d94f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 459 deletions.
21 changes: 3 additions & 18 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,28 +101,13 @@ gulp.task("test", ["ts"], function(done) {
).start();
});

gulp.task("doc", function(done) {
var parse = require("json-schema-to-markdown");
var schema = require("./src/MicrosoftTeams.schema.json");
var markdown = parse(schema);
fs.mkdir(buildDir, function() {
fs.mkdir(buildDir + "/doc", function() {
fs.writeFile(buildDir + "/doc/MicrosoftTeams.schema.md", markdown, done);
});
});
});

gulp.task("dist", ["ts", "doc"], function() {
var distFiles = [
buildDir + "/src/**/*.js",
buildDir + "/src/**/*.d.ts",
"./src/**/*.schema.json"
];
gulp.task("dist", ["ts"], function() {
var distFiles = [buildDir + "/src/**/*.js", buildDir + "/src/**/*.d.ts"];

return gulp.src(distFiles).pipe(gulp.dest(distDir));
});

gulp.task("default", ["prettier", "ts", "test", "doc", "dist"]);
gulp.task("default", ["prettier", "ts", "test", "dist"]);

gulp.task("clean", function() {
return del([buildDir, distDir]);
Expand Down
Loading

0 comments on commit 975d94f

Please sign in to comment.