Skip to content

Commit

Permalink
~ managed packages ref #14
Browse files Browse the repository at this point in the history
  • Loading branch information
TilmannBach committed Nov 29, 2015
1 parent 40ddeb2 commit c992f8b
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 9 deletions.
2 changes: 1 addition & 1 deletion backend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@
"cors": "^2.7.1",
"express": "^4.13.3",
"mongoose": "^4.2.4",
"vbb": "^0.3.2"
"vbb-hafas": "^0.5.0"
}
}
15 changes: 8 additions & 7 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ var gulp = require('gulp');
var shell = require('gulp-shell');
var confirm = require('gulp-confirm');
var colors = require('colors');
var rimraf = require('rimraf');

/* Default */
gulp.task('default', ['backend','frontend'], function() {
Expand All @@ -12,20 +13,20 @@ gulp.task('default', ['backend','frontend'], function() {

/* Start Backend */
gulp.task('backend', shell.task([
'cd backend ; npm start &'
'cd backend && npm start &'
])
);

/* Serve Frontend */
gulp.task('frontend', shell.task([
'cd angular2-infoscreen ; ng serve &'
'cd angular2-frontend && ng serve &'
])
);

/* Setup */
gulp.task('setup', shell.task([
'cd backend ; npm install &',
'cd angular2-infoscreen ; npm install &'
'cd backend && npm install &',
'cd angular2-frontend && npm install &'
]))

/* delete node modules */
Expand All @@ -38,9 +39,9 @@ gulp.task('clean', function(){
input: '_key:y'
}))
.pipe(shell([
'cd backend ; rm -r node_modules',
'cd angular2-infoscreen ; rm -r node_modules',
'rm -r node_modules',
'cd backend && rimraf(node_modules)',
'cd angular2-infoscreen && rimraf(node_modules)',
'rimraf(node_modules)',
])
);
})
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
"colors": "^1.1.2",
"gulp": "^3.9.0",
"gulp-confirm": "^1.0.4",
"gulp-shell": "^0.5.1"
"gulp-shell": "^0.5.1",
"rimraf": "latest"
}
}

0 comments on commit c992f8b

Please sign in to comment.