mirror of
https://github.com/Athou/commafeed.git
synced 2026-03-21 21:37:29 +00:00
call bower prune before calling bower install
This commit is contained in:
10
gulpfile.js
10
gulpfile.js
@@ -15,7 +15,13 @@ var SRC_DIR = 'src/main/app/';
|
|||||||
var TEMP_DIR = 'target/gulp/'
|
var TEMP_DIR = 'target/gulp/'
|
||||||
var BUILD_DIR = 'target/classes/assets/';
|
var BUILD_DIR = 'target/classes/assets/';
|
||||||
|
|
||||||
gulp.task('bower', function() {
|
gulp.task('bower_prune', function() {
|
||||||
|
return bower({
|
||||||
|
cmd : 'prune'
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
|
gulp.task('bower', ['bower_prune'], function() {
|
||||||
return bower();
|
return bower();
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -101,7 +107,7 @@ gulp.task('serve', function() {
|
|||||||
connect.server({
|
connect.server({
|
||||||
root : BUILD_DIR,
|
root : BUILD_DIR,
|
||||||
port : 8082,
|
port : 8082,
|
||||||
livereload: true,
|
livereload : true,
|
||||||
middleware : function() {
|
middleware : function() {
|
||||||
var rest = '^/rest/(.*)$ http://localhost:8083/rest/$1 [P]';
|
var rest = '^/rest/(.*)$ http://localhost:8083/rest/$1 [P]';
|
||||||
var next = '^/next(.*)$ http://localhost:8083/next$1 [P]';
|
var next = '^/next(.*)$ http://localhost:8083/next$1 [P]';
|
||||||
|
|||||||
Reference in New Issue
Block a user