0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-08 16:00:19 -05:00

More improvements to deploy tasks.

This commit is contained in:
Andrey Antukh 2016-02-21 20:42:01 +02:00
parent 0b1f831efc
commit ce2ac6fe47
2 changed files with 10 additions and 5 deletions

View file

@ -11,7 +11,7 @@ var rimraf = require("rimraf");
var paths = {};
paths.app = "./resources/";
paths.output = "./resources/public/";
paths.dist = "./dist";
paths.dist = "./dist/";
paths.scss = paths.app + "styles/**/*.scss";
gulp.task("scss", function() {
@ -41,9 +41,13 @@ gulp.task("styles:dist", function(next) {
runseq("scss", "autoprefixer", next);
});
gulp.task("clean", function(next) {
gulp.task("clean:dist", function(next) {
rimraf(paths.dist + "**/*", next);
});
gulp.task("clean:public", function(next) {
rimraf(paths.output + "css/", function() {
rimraf(paths.output + "js/", next)
rimraf(paths.output + "js/", next);
});
});
@ -54,7 +58,7 @@ gulp.task("copy", function() {
// Default
gulp.task("dist", function(next) {
runseq("clean", "styles:dist", "cssmin", "copy", next);
runseq("clean:public", "styles:dist", "cssmin", "clean:dist", "copy", next);
});
// Watch

View file

@ -14,7 +14,8 @@
:warnings {:ns-var-clash false}
:output-to "resources/public/js/main.js"
:output-dir "resources/public/js"
:optimizations :advanced
:optimizations :simple
:static-fns true
:language-in :ecmascript5
:language-out :ecmascript5
:verbose true})