From 29dafcaa9508f47f6f3346f2a9453b62ec9896cf Mon Sep 17 00:00:00 2001 From: Warren Date: Fri, 23 Jun 2017 00:18:43 +1200 Subject: [PATCH] Update packages --- README.md | 18 +++++----- generators/app/index.js | 6 ++-- generators/app/templates/package.json | 48 ++++++++++++++++----------- package.json | 2 +- 4 files changed, 42 insertions(+), 32 deletions(-) diff --git a/README.md b/README.md index 708b58a..2c86cea 100644 --- a/README.md +++ b/README.md @@ -13,23 +13,21 @@ npm install -g generator-restify-es-6 Then generate your new project: ```bash -yo restify-es-6 - - _-----_ - | | ╭──────────────────────────╮ - |--(o)--| │ Let's create RESTify │ - `---------´ │ server in ES6! │ + _-----_ ╭──────────────────────────╮ + | | │ Let's create RESTify │ + |--(o)--| │ server in ES6! │ + `---------´ │ ~~Now on v0.1.0~~ │ ( _´U`_ ) ╰──────────────────────────╯ /___A___\ / | ~ | __'.___.'__ ´ ` |° ´ Y ` -? Your project name restify-es-6 -? The namespace of your project restify-es-6 -? Your project description Description of restify-es-6 -? Your project URL https://github.com/myname/myproject.git +? Your project name restify-fix +? The namespace of your project restify-fix +? Your project description Description of restify-fix +? Your project URL https://github.com/username/restify-fix I'm all done. Running npm install && bower install for you to install the required dependencies. If this fails, try running the command yourself. diff --git a/generators/app/index.js b/generators/app/index.js index 4a1a5e3..29b6a88 100644 --- a/generators/app/index.js +++ b/generators/app/index.js @@ -5,7 +5,8 @@ var yeoman = require('yeoman-generator'), yosay = require('yosay'), _s = require('underscore.string'), path = require('path'), - mkdirp = require('mkdirp'); + mkdirp = require('mkdirp'), + packagejson = require('../../package.json'); module.exports = yeoman.Base.extend({ //Ask for user input @@ -13,7 +14,8 @@ module.exports = yeoman.Base.extend({ var done = this.async(); // have Yeoman greet the user this.log(yosay( - 'Let\'s create ' + chalk.red('RESTify server in ES6') + '!' + 'Let\'s create ' + chalk.red('RESTify server in ES6') + "!\n" + + chalk.green('~~Now on v' + packagejson.version + '~~') )); var appname = path.basename(process.cwd()); diff --git a/generators/app/templates/package.json b/generators/app/templates/package.json index bb7e3e7..cdbc845 100644 --- a/generators/app/templates/package.json +++ b/generators/app/templates/package.json @@ -4,31 +4,41 @@ "description": "<%=app_description%>", "main": "app.js", "dependencies": { - "async": "^2.0.0-rc.1", - "babel-cli": "^6.5.1", - "babel-preset-es2015": "^6.5.0", - "bunyan": "^1.8.1", - "consign": "^0.1.2", - "dotenv": "^2.0.0", - "moment": "^2.12.0", - "node-service-locator": "0.0.2", - "pm2": "^1.1.3", - "restify": "^4.1.0", - "restify-errors": "^4.2.1", + "async": "^2.4.1", + "babel-cli": "^6.24.1", + "babel-preset-es2015": "^6.24.1", + "bunyan": "^1.8.10", + "chai": "^4.0.2", + "consign": "^0.1.6", + "dotenv": "^4.0.0", + "eslint-config-google": "^0.8.0", + "grunt": "^1.0.1", + "grunt-contrib-watch": "^1.0.0", + "grunt-env": "^0.4.4", + "grunt-eslint": "^20.0.0", + "grunt-mocha-test": "^0.13.2", + "grunt-notify": "^0.4.5", + "mocha": "^3.4.2", + "moment": "^2.18.1", + "node-service-locator": "^0.0.2", + "pm2": "^2.5.0", + "restify": "^4.3.0", + "restify-errors": "^4.3.0", + "supertest": "^3.0.0", "underscore": "^1.8.3" }, "devDependencies": { - "babel-register": "^6.7.2", - "chai": "^3.5.0", - "eslint-config-google": "^0.4.0", - "grunt": "~0.4.5", + "babel-register": "^6.24.1", + "chai": "^4.0.2", + "eslint-config-google": "^0.8.0", + "grunt": "^1.0.1", "grunt-contrib-watch": "^1.0.0", "grunt-env": "^0.4.4", - "grunt-eslint": "^18.0.0", - "grunt-mocha-test": "^0.12.7", + "grunt-eslint": "^20.0.0", + "grunt-mocha-test": "^0.13.2", "grunt-notify": "^0.4.5", - "mocha": "^2.4.5", - "supertest": "^1.2.0" + "mocha": "^3.4.2", + "supertest": "^3.0.0" }, "scripts": { "start": "node app.js", diff --git a/package.json b/package.json index 8c9d92d..3bb9c03 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "generator-restify-es-6", - "version": "0.1.0", + "version": "0.1.1", "description": "Restify boilerplate in ES6", "homepage": "https://github.com/warrenca/generator-restify-es-6", "author": {