UNPKG

grafo-client

Version:

Grafo Client API Library

1 lines 846 B
var gulp=require("gulp");const terser=require("gulp-terser");var pump=require("pump"),del=require("del");function clean(){del("./dist/*")}function conf(){gulp.src("./conf/*.js").pipe(terser()).pipe(gulp.dest("./dist/lib/conf"))}function model(){gulp.src("./models/*.js").pipe(terser()).pipe(gulp.dest("./dist/lib/models"))}function errors(){gulp.src("./errors/*.js").pipe(terser()).pipe(gulp.dest("./dist/lib/errors"))}function top(){gulp.src("./*.js").pipe(terser()).pipe(gulp.dest("./dist/lib"))}function others(){gulp.src("./package.json").pipe(gulp.dest("./dist")),gulp.src("./LICENSE.TXT").pipe(gulp.dest("./dist")),gulp.src("./readme.md").pipe(gulp.dest("./dist"))}function cleanAfter(){del("./dist/lib/conf/conf.js"),del("./dist/lib/gulpfile.js")}gulp.task("build",function(e){clean(),conf(),model(),errors(),top(),others(),cleanAfter()});