Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fixed/enhanced grunt install script, updated readme.md

  • Loading branch information...
commit ca73c2e9fd2dbdea69a54491cfee83ca1e21dd6c 1 parent 67063ba
@blai blai authored
Showing with 16 additions and 7 deletions.
  1. +1 −0  .gitignore
  2. +9 −1 grunt.js
  3. +6 −6 readme.md
View
1  .gitignore
@@ -1,3 +1,4 @@
# ignore hidden folders
.*/
+.server
node_modules
View
10 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']);
};
View
12 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:
Please sign in to comment.
Something went wrong with that request. Please try again.