mirror of
https://github.com/penpot/penpot.git
synced 2025-01-09 00:10:11 -05:00
More improvements to deploy tasks.
This commit is contained in:
parent
0b1f831efc
commit
ce2ac6fe47
2 changed files with 10 additions and 5 deletions
12
gulpfile.js
12
gulpfile.js
|
@ -11,7 +11,7 @@ var rimraf = require("rimraf");
|
||||||
var paths = {};
|
var paths = {};
|
||||||
paths.app = "./resources/";
|
paths.app = "./resources/";
|
||||||
paths.output = "./resources/public/";
|
paths.output = "./resources/public/";
|
||||||
paths.dist = "./dist";
|
paths.dist = "./dist/";
|
||||||
paths.scss = paths.app + "styles/**/*.scss";
|
paths.scss = paths.app + "styles/**/*.scss";
|
||||||
|
|
||||||
gulp.task("scss", function() {
|
gulp.task("scss", function() {
|
||||||
|
@ -41,9 +41,13 @@ gulp.task("styles:dist", function(next) {
|
||||||
runseq("scss", "autoprefixer", 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 + "css/", function() {
|
||||||
rimraf(paths.output + "js/", next)
|
rimraf(paths.output + "js/", next);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -54,7 +58,7 @@ gulp.task("copy", function() {
|
||||||
|
|
||||||
// Default
|
// Default
|
||||||
gulp.task("dist", function(next) {
|
gulp.task("dist", function(next) {
|
||||||
runseq("clean", "styles:dist", "cssmin", "copy", next);
|
runseq("clean:public", "styles:dist", "cssmin", "clean:dist", "copy", next);
|
||||||
});
|
});
|
||||||
|
|
||||||
// Watch
|
// Watch
|
||||||
|
|
|
@ -14,7 +14,8 @@
|
||||||
:warnings {:ns-var-clash false}
|
:warnings {:ns-var-clash false}
|
||||||
:output-to "resources/public/js/main.js"
|
:output-to "resources/public/js/main.js"
|
||||||
:output-dir "resources/public/js"
|
:output-dir "resources/public/js"
|
||||||
:optimizations :advanced
|
:optimizations :simple
|
||||||
|
:static-fns true
|
||||||
:language-in :ecmascript5
|
:language-in :ecmascript5
|
||||||
:language-out :ecmascript5
|
:language-out :ecmascript5
|
||||||
:verbose true})
|
:verbose true})
|
||||||
|
|
Loading…
Reference in a new issue