-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathgulpfile.js
33 lines (31 loc) · 1.1 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
const del = require('del'),
zip = require('gulp-archiver');
module.exports = function (gulp) {
return {
name: "brackets-plugin",
tasks: {
"build": {
require: ["codemirror:build"],
func: function (codemirrorBuild) {
codemirrorBuild()
.pipe(gulp.dest('brackets-plugin/build/mode'));
return gulp.src(["main.js", "package.json"], {cwd: 'brackets-plugin'})
.pipe(gulp.dest('brackets-plugin/build/'));
}
},
"package": {
dependencies: ['clean', 'build'],
func: function () {
return gulp.src('brackets-plugin/build/**')
.pipe(zip('mellowd-lang-support.zip'))
.pipe(gulp.dest('brackets-plugin/package/'));
}
},
"clean": {
func: function () {
return del(['brackets-plugin/build/*', 'brackets-plugin/package/*'])
}
}
}
}
};