-
Notifications
You must be signed in to change notification settings - Fork 1
/
gulpfile.js
41 lines (36 loc) · 1.2 KB
/
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
35
36
37
38
39
40
41
var gulp = require("gulp");
var sass = require("gulp-sass");
gulp.task("copy:html", function() {
return gulp.src("src/**/*.html")
.pipe(gulp.dest("dist/amd"))
.pipe(gulp.dest("dist/commonjs"))
.pipe(gulp.dest("dist/es2015"))
.pipe(gulp.dest("dist/native-modules"))
.pipe(gulp.dest("dist/system"));
});
gulp.task("copy:css", function() {
return gulp.src("src/**/*.css")
.pipe(gulp.dest("dist/amd"))
.pipe(gulp.dest("dist/commonjs"))
.pipe(gulp.dest("dist/es2015"))
.pipe(gulp.dest("dist/native-modules"))
.pipe(gulp.dest("dist/system"));
});
gulp.task("copy:json", function() {
return gulp.src("src/**/*.json")
.pipe(gulp.dest("dist/amd"))
.pipe(gulp.dest("dist/commonjs"))
.pipe(gulp.dest("dist/es2015"))
.pipe(gulp.dest("dist/native-modules"))
.pipe(gulp.dest("dist/system"));
});
gulp.task("sass", function() {
return gulp.src("src/**/*.scss")
.pipe(sass().on("error", sass.logError))
.pipe(gulp.dest("dist/amd"))
.pipe(gulp.dest("dist/commonjs"))
.pipe(gulp.dest("dist/es2015"))
.pipe(gulp.dest("dist/native-modules"))
.pipe(gulp.dest("dist/system"));
});
gulp.task("default", ["copy:html", "copy:css", "copy:json", "sass"]);