forked from mbraak/jqTree
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgulpfile.js
More file actions
27 lines (22 loc) · 727 Bytes
/
Copy pathgulpfile.js
File metadata and controls
27 lines (22 loc) · 727 Bytes
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
const gulp = require("gulp");
const fs = require("fs");
const rename = require("gulp-rename");
const sass = require("gulp-sass");
const ts = require("gulp-typescript");
gulp.task("lib_ts", function () {
const tsProject = ts.createProject('tsconfig.json');
gulp.src("./src/*.ts")
.pipe(tsProject())
.pipe(gulp.dest("./lib"));
});
gulp.task("sass", function () {
gulp.src("./jqtree.scss")
.pipe(sass({ errLogToConsole: true }))
.pipe(gulp.dest("./"))
});
gulp.task("example_sass", function () {
gulp.src("./static/example.scss")
.pipe(sass({ errLogToConsole: true }))
.pipe(gulp.dest("./static"));
});
gulp.task("default", ["lib_ts", "sass", "example_sass"]);