Skip to content

Commit

Permalink
Update packages
Browse files Browse the repository at this point in the history
  • Loading branch information
warrenca committed Jun 22, 2017
1 parent 9e11fda commit 29dafca
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 32 deletions.
18 changes: 8 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
6 changes: 4 additions & 2 deletions generators/app/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,17 @@ 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
askFor: function () {
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());
Expand Down
48 changes: 29 additions & 19 deletions generators/app/templates/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down

0 comments on commit 29dafca

Please sign in to comment.