Skip to content
This repository has been archived by the owner on Mar 26, 2018. It is now read-only.

Commit

Permalink
Use lodash by default
Browse files Browse the repository at this point in the history
  • Loading branch information
robertd committed May 10, 2014
1 parent e8a49e7 commit f7b0941
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions app/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ Generator.prototype.askFor = function askFor() {
value: 'coffee',
checked: this.options.coffee || false
}, {
name: 'Use RequireJs',
name: 'Use RequireJS',
value: 'requirejs',
checked: this.options.requirejs || false
}]
Expand All @@ -89,7 +89,6 @@ Generator.prototype.askFor = function askFor() {
this.includeRequireJS = hasFeature('requirejs');
this.config.set('compassBootstrap', this.compassBootstrap);


if (!this.options.coffee) {
this.options.coffee = hasFeature('coffee');
this.config.set('coffee', this.options.coffee);
Expand All @@ -99,6 +98,7 @@ Generator.prototype.askFor = function askFor() {
this.options.requirejs = this.includeRequireJS;
this.config.set('includeRequireJS', this.includeRequireJS);
}

cb();
}.bind(this));
};
Expand Down Expand Up @@ -151,7 +151,7 @@ Generator.prototype.writeIndex = function writeIndex() {

var vendorJS = [
'bower_components/jquery/dist/jquery.js',
'bower_components/underscore/underscore.js',
'bower_components/lodash/dist/lodash.js',
'bower_components/backbone/backbone.js'
];

Expand Down
4 changes: 2 additions & 2 deletions app/templates/Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ module.exports = function (grunt) {
specs : 'test/spec/**/*.js',
vendor : [
'<%%= yeoman.app %>/bower_components/jquery/dist/jquery.js',
'<%%= yeoman.app %>/bower_components/underscore/underscore.js',
'<%%= yeoman.app %>/bower_components/lodash/dist/lodash.js',
'<%%= yeoman.app %>/bower_components/backbone/backbone.js',
'.tmp/scripts/templates.js'
]
Expand Down Expand Up @@ -217,7 +217,7 @@ module.exports = function (grunt) {
paths: {
'templates': '../../.tmp/scripts/templates',
'jquery': '../../<%%= yeoman.app %>/bower_components/jquery/dist/jquery',
'underscore': '../../<%%= yeoman.app %>/bower_components/underscore/underscore',
'underscore': '../../<%%= yeoman.app %>/bower_components/lodash/dist/lodash',
'backbone': '../../<%%= yeoman.app %>/bower_components/backbone/backbone'
},
// TODO: Figure out how to make sourcemaps work with grunt-usemin
Expand Down
2 changes: 1 addition & 1 deletion app/templates/_bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"dependencies": {<% if (compassBootstrap) { %>
"sass-bootstrap": "~3.0.2",<% } %>
"jquery": "~2.1.0",
"underscore": "~1.6.0",
"lodash": "~2.4.1",
"backbone": "~1.1.0",<% if (includeRequireJS) { %>
"requirejs": "~2.1.10",
"requirejs-text": "~2.0.10",<% } %>
Expand Down
2 changes: 1 addition & 1 deletion templates/coffeescript/requirejs/main.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ require.config
paths:
jquery: '../bower_components/jquery/dist/jquery'
backbone: '../bower_components/backbone/backbone'
underscore: '../bower_components/underscore/underscore'<% if (compassBootstrap) { %>
underscore: '../bower_components/lodash/dist/lodash'<% if (compassBootstrap) { %>
bootstrap: '../bower_components/sass-bootstrap/dist/js/bootstrap'<% } %><% if (templateFramework === 'handlebars') { %>
handlebars: '../bower_components/handlebars/handlebars'<% } %>

Expand Down
2 changes: 1 addition & 1 deletion templates/requirejs/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ require.config({
paths: {
jquery: '../bower_components/jquery/dist/jquery',
backbone: '../bower_components/backbone/backbone',
underscore: '../bower_components/underscore/underscore'<% if (compassBootstrap) { %>,
underscore: '../bower_components/lodash/dist/lodash'<% if (compassBootstrap) { %>,
bootstrap: '../bower_components/sass-bootstrap/dist/js/bootstrap'<% } %><% if (templateFramework === 'handlebars') { %>,
handlebars: '../bower_components/handlebars/handlebars'<% } %>
}
Expand Down

0 comments on commit f7b0941

Please sign in to comment.