From 3b9a6e535d9fccffa1f11f5214012e361497b7e4 Mon Sep 17 00:00:00 2001 From: Joel Felsinger Date: Sat, 24 Jan 2015 01:50:14 -0500 Subject: [PATCH] Add missing deps --- app/templates/_gulpfile.js | 2 +- app/templates/_package.json | 6 ++++-- app/templates/config/express.js | 3 ++- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/app/templates/_gulpfile.js b/app/templates/_gulpfile.js index 17a8861..342a607 100644 --- a/app/templates/_gulpfile.js +++ b/app/templates/_gulpfile.js @@ -98,7 +98,7 @@ gulp.task('fonts', function() { .pipe(gulp.dest(dir.dist + '/fonts/')); }); -gulp.task('watch', ['app', 'client'], function() { +gulp.task('watch', ['client'], function() { // Watch client scripts gulp.watch(dir.client + '/scripts/**/*.js', ['clientScripts']); diff --git a/app/templates/_package.json b/app/templates/_package.json index 2d63b2d..2e06b8c 100644 --- a/app/templates/_package.json +++ b/app/templates/_package.json @@ -11,8 +11,10 @@ "express": "^4.3.1", "express-session": "^1.2.1", "express-layout": "^0.1.0", - "hbs": "^2.7.0", - "swag": "^0.7.0", + "hbs": "^2.7.0",<% if (includes.swag) { %> + "swag": "^0.7.0",<% } if (includes.i18n) { %> + "i18n": "^0.5.0",<% } if (includes.moment) { %> + "moment": "^2.9.0",<% } %> "cookie-parser": "^1.1.0", "debug": "^2.1.1", "method-override": "^1.0.2", diff --git a/app/templates/config/express.js b/app/templates/config/express.js index c023656..b904286 100644 --- a/app/templates/config/express.js +++ b/app/templates/config/express.js @@ -5,7 +5,8 @@ var express = require('express'), methodOverride = require('method-override'), flash = require('connect-flash'), session = require('express-session'), - parallel = require('../lib/parallel'), + parallel = require('../lib/parallel'),<% if (includes.i18n) { %> + i18n = require('i18n'),<% } %> passport = require('passport'); var config = require('./config');