mirror of
https://github.com/penpot/penpot.git
synced 2025-12-11 22:14:05 +01:00
More improvements to deploy tasks.
This commit is contained in:
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})
|
||||||
|
|||||||
Reference in New Issue
Block a user