Skip to content

Commit 195e288

Browse files
committed
Upgraded to yeoman-generator 0.12
Migrated to chalk for output coloring. `colors` was assumed to be implicitly present in the String prototype, which is no longer the case. Also fixed indentation of the `package.json`.
1 parent bebc08f commit 195e288

File tree

2 files changed

+11
-9
lines changed

2 files changed

+11
-9
lines changed

app/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
var fs = require('fs');
22
var path = require('path');
3+
var chalk = require('chalk');
34

45
var Generator = module.exports = function() {
56
var prompts = [];
@@ -12,7 +13,7 @@ var Generator = module.exports = function() {
1213

1314
this.package = JSON.parse(this.readFileAsString(path.join(__dirname, '../package.json')));
1415

15-
this.log.writeln('Generating from ' + 'jQuery Boilerplate'.cyan + ' v' + this.package.version.cyan + '...');
16+
this.log.writeln('Generating from ' + chalk.cyan('jQuery Boilerplate') + ' v' + chalk.cyan(this.package.version) + '...');
1617

1718
files.forEach(function(file) {
1819
if (ignores.indexOf(file) !== -1) {

package.json

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,24 +20,25 @@
2020
},
2121
"license": [
2222
{
23-
"type": "MIT",
24-
"url": "http://zenorocha.mit-license.org/"
25-
}
23+
"type": "MIT",
24+
"url": "http://zenorocha.mit-license.org/"
25+
}
2626
],
2727
"scripts": {
2828
"test": "mocha --reporter spec"
2929
},
3030
"peerDependencies": {
31-
"yo": ">=1.0.0-rc.1.1"
31+
"yo": ">=1.0.0-rc.1.1"
3232
},
3333
"engines": {
34-
"node": ">= 0.8.0",
35-
"npm": ">=1.2.10"
34+
"node": ">= 0.8.0",
35+
"npm": ">=1.2.10"
3636
},
3737
"dependencies": {
38-
"yeoman-generator": "~0.10.2"
38+
"yeoman-generator": "~0.12.0",
39+
"chalk": "~0.2.0"
3940
},
4041
"devDependencies": {
41-
"mocha": "~1.9.0"
42+
"mocha": "~1.12.0"
4243
}
4344
}

0 commit comments

Comments
 (0)