From ca73c2e9fd2dbdea69a54491cfee83ca1e21dd6c Mon Sep 17 00:00:00 2001 From: Brian Lai Date: Tue, 15 Jan 2013 20:57:32 -0800 Subject: [PATCH] fixed/enhanced grunt install script, updated readme.md --- .gitignore | 1 + grunt.js | 10 +++++++++- readme.md | 12 ++++++------ 3 files changed, 16 insertions(+), 7 deletions(-) diff --git a/.gitignore b/.gitignore index 8b3ae819..0cfde168 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ # ignore hidden folders .*/ +.server node_modules diff --git a/grunt.js b/grunt.js index 97b20c4b..0d510949 100644 --- a/grunt.js +++ b/grunt.js @@ -35,10 +35,18 @@ module.exports = function( grunt ) { linkExpress: { command: 'ln -s ' + expressPath + ' ./yeoman-custom/cli/node_modules/yeoman-generators/lib/generators/express', stdout: true + }, + + promptAddPath: { + command: "echo '\nNow add the follow dir to your system path' && pwd", + stdout: true, + execOptions: { + cwd: './yeoman-custom/cli/bin' + } } } }); // Disable lint for now until we upgrade to latest grunt with latest jshint - grunt.registerTask('install', ['shell:npmYeoman', 'shell: npmDemo', 'shell:linkAngularcrud', 'shell:linkExpress']); + grunt.registerTask('install', ['shell:npmYeoman', 'shell:npmDemo', 'shell:linkAngularcrud', 'shell:linkExpress', 'shell:promptAddPath']); }; \ No newline at end of file diff --git a/readme.md b/readme.md index ca219daa..e4e899ba 100644 --- a/readme.md +++ b/readme.md @@ -19,7 +19,7 @@ This stack assumes that you wish to develop both the server and client portions From `express-stack` root: 1. `npm install` 2. `grunt install` -3. cd `yeoman-custom/cli/bin` and run `pwd` then add the output to your system path +3. follow output of step 2 and update your system path 4. Now your system has a new command `yeomen` (noticed the `e`, instead of `a`, `e` for `express`?), which will run this custom copy of yeoman bundled with the custom generators listed below. ### Getting started from scratch @@ -29,10 +29,10 @@ either start a brand new application using the below commands or skip to the dem where some included sample code is available for you to try out. ``` -yeoman init angularcrud -yeoman init angularcrud:crud post -yeoman init express post -yeoman server +yeomen init angularcrud +yeomen init angularcrud:crud post +yeomen init express post +yeomen server # you can then navigate to #/api/post/index to verify # that the routing is working with Express correctly @@ -43,7 +43,7 @@ Note: should you receive any warnings about Express not being present, ### Demo -You should now be able to navigate to `demo` and run `yeoman server` to run it. Note, if you have multiple versions of yeoman installed locally, you may wish to directly use the binary in `yeoman-custom`, otherwise everything should work. +You should now be able to navigate to `demo` and run `yeomen server` to run it. Note, if you have multiple versions of yeoman installed locally, you may wish to directly use the binary in `yeoman-custom`, otherwise everything should work. For the generators, the following are supported: