Navigation Menu

Skip to content

Commit

Permalink
Work with npm 1.0 local packaging strategy
Browse files Browse the repository at this point in the history
  • Loading branch information
Anatoliy Chakkaev committed May 31, 2011
1 parent 9864c78 commit ff30a70
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Expand Up @@ -20,10 +20,12 @@ Usage

$ mkdir blog && cd blog
$ railway init
$ sudo npm link

or, slightly simplier, but with the same result

$ railway init blog && cd blog
$ sudo npm link

Short functionality review
==========================
Expand Down
1 change: 1 addition & 0 deletions lib/generators.js
Expand Up @@ -149,6 +149,7 @@ module.exports = {
createFileByTemplate('public/javascripts/rails.js', 'rails.js');
createFileByTemplate('node_modules/ejs-ext.js', 'ejs-ext.js');
createFileByTemplate('npmfile', 'npmfile');
createFileByTemplate('package.json', 'package.json', replaceAppname);

fs.chmodSync(srv, 0755);
},
Expand Down
19 changes: 19 additions & 0 deletions templates/package.json
@@ -0,0 +1,19 @@
{ "name": "APPNAME"
, "version": "0.0.1"
, "engines": ["node >= 0.4.0"]
, "main": "server.js"
, "dependencies":
{ "ejs": ">= 0.2.1"
, "express": ">= 2.2.2"
, "connect": ">= 1.4.2"
, "railway": ">= 0.1.5"
, "nodeunit": ">= 0.5.0"
, "yaml": ">= 0.1.2"
, "coffee-script": ">= 1.1.1"
, "mongodb": ">= 0.9.4-5"
, "mime": ">= 1.2.2"
, "qs": ">= 0.1.0"
, "mongoose": ">= 1.3.6"
, "connect-mongodb": ">= 0.3.0"
}
}

0 comments on commit ff30a70

Please sign in to comment.