forked from Tennu/tennu
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgulpfile.js
34 lines (29 loc) · 837 Bytes
/
gulpfile.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
const gulp = require("gulp");
const rename = require("gulp-rename")
const concat = require("gulp-concat-util");
gulp.task("default", function() {
console.log("Use the 'build' task.");
});
gulp.task("build", function () {
gulp.src("src/lib/**/*.sjs")
.pipe(rename(function (path) {
path.extname = ".js";
}))
.pipe(gulp.dest("lib"));
gulp.src("src/plugin/**/*.sjs")
.pipe(rename(function (path) {
path.extname = ".js";
}))
.pipe(gulp.dest("tennu_plugins"));
gulp.src("src/test/**/*.sjs")
.pipe(rename(function (path) {
path.extname = ".js";
}))
.pipe(gulp.dest("test"))
gulp.src("src/bin/**/*.sjs")
.pipe(concat.header("#! /usr/bin/env node\n\n"))
.pipe(rename(function (path) {
path.extname = ".js";
}))
.pipe(gulp.dest("bin"))
});