Skip to content

Commit

Permalink
fixed/enhanced grunt install script, updated readme.md
Browse files Browse the repository at this point in the history
  • Loading branch information
blai committed Jan 16, 2013
1 parent 67063ba commit ca73c2e
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 7 deletions.
1 change: 1 addition & 0 deletions .gitignore
@@ -1,3 +1,4 @@
# ignore hidden folders
.*/
.server
node_modules
10 changes: 9 additions & 1 deletion grunt.js
Expand Up @@ -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']);
};
12 changes: 6 additions & 6 deletions readme.md
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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:

Expand Down

0 comments on commit ca73c2e

Please sign in to comment.