Permalink
Browse files

Work with npm 1.0 local packaging strategy

  • Loading branch information...
1 parent 9864c78 commit ff30a70cb02803ea5f8cdf014997c98f0e563fa9 Anatoliy Chakkaev committed May 31, 2011
Showing with 22 additions and 0 deletions.
  1. +2 −0 README.md
  2. +1 −0 lib/generators.js
  3. +19 −0 templates/package.json
View
@@ -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
==========================
View
@@ -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);
},
@@ -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.