diff options
author | isaacs <i@izs.me> | 2013-11-20 11:08:52 -0800 |
---|---|---|
committer | isaacs <i@izs.me> | 2013-11-20 11:08:52 -0800 |
commit | c1452f4c6fac17dd8ab974372daee05cd5cdbdec (patch) | |
tree | 12d57003bc0f73e1be3893beaebe82ef6a4a83c3 /deps/npm/node_modules/init-package-json | |
parent | 88dc1fcb62f40c3c906802dcaa8a8e9dfef2a264 (diff) | |
download | node-new-c1452f4c6fac17dd8ab974372daee05cd5cdbdec.tar.gz |
npm: Upgrade to v1.3.15
Diffstat (limited to 'deps/npm/node_modules/init-package-json')
-rw-r--r-- | deps/npm/node_modules/init-package-json/example/example-basic.js | 8 | ||||
-rw-r--r-- | deps/npm/node_modules/init-package-json/example/example-default.js | 7 | ||||
-rw-r--r-- | deps/npm/node_modules/init-package-json/example/example-npm.js (renamed from deps/npm/node_modules/init-package-json/example.js) | 7 | ||||
-rw-r--r-- | deps/npm/node_modules/init-package-json/example/init/basic-init.js | 1 | ||||
-rw-r--r-- | deps/npm/node_modules/init-package-json/node_modules/promzard/package.json | 1 | ||||
-rw-r--r-- | deps/npm/node_modules/init-package-json/package.json | 8 |
6 files changed, 25 insertions, 7 deletions
diff --git a/deps/npm/node_modules/init-package-json/example/example-basic.js b/deps/npm/node_modules/init-package-json/example/example-basic.js new file mode 100644 index 0000000000..29b0c818d1 --- /dev/null +++ b/deps/npm/node_modules/init-package-json/example/example-basic.js @@ -0,0 +1,8 @@ +var init = require('../init-package-json.js') +var path = require('path') +var dir = process.cwd() +var initFile = require.resolve('./init/basic-init.js') + +init(dir, initFile, function (err, data) { + if (!err) console.log('written successfully') +}) diff --git a/deps/npm/node_modules/init-package-json/example/example-default.js b/deps/npm/node_modules/init-package-json/example/example-default.js new file mode 100644 index 0000000000..f3aea518c5 --- /dev/null +++ b/deps/npm/node_modules/init-package-json/example/example-default.js @@ -0,0 +1,7 @@ +var init = require('../init-package-json.js') +var path = require('path') +var dir = process.cwd() + +init(dir, 'file that does not exist', function (err, data) { + if (!err) console.log('written successfully') +}) diff --git a/deps/npm/node_modules/init-package-json/example.js b/deps/npm/node_modules/init-package-json/example/example-npm.js index ebab729cab..b394eeabc0 100644 --- a/deps/npm/node_modules/init-package-json/example.js +++ b/deps/npm/node_modules/init-package-json/example/example-npm.js @@ -1,12 +1,11 @@ -var init = require('./init-package-json.js') +var init = require('../init-package-json.js') var path = require('path') -var initFile = path.resolve(process.env.HOME, '.npm-init') var dir = process.cwd() - var npm = require('npm') + npm.load(function (er, npm) { if (er) throw er - init(dir, initFile, npm.config.get(), function (er, data) { + init(dir, npm.config.get('init-module'), npm.config, function (er, data) { if (er) throw er console.log('written successfully') }) diff --git a/deps/npm/node_modules/init-package-json/example/init/basic-init.js b/deps/npm/node_modules/init-package-json/example/init/basic-init.js new file mode 100644 index 0000000000..c8615cc100 --- /dev/null +++ b/deps/npm/node_modules/init-package-json/example/init/basic-init.js @@ -0,0 +1 @@ +exports.flavor = prompt("what's your favorite flavor of ice cream buddy?", "I LIKE THEM ALL")
\ No newline at end of file diff --git a/deps/npm/node_modules/init-package-json/node_modules/promzard/package.json b/deps/npm/node_modules/init-package-json/node_modules/promzard/package.json index 3cf38bf80f..14c20d0442 100644 --- a/deps/npm/node_modules/init-package-json/node_modules/promzard/package.json +++ b/deps/npm/node_modules/init-package-json/node_modules/promzard/package.json @@ -25,6 +25,7 @@ "bugs": { "url": "https://github.com/isaacs/promzard/issues" }, + "homepage": "https://github.com/isaacs/promzard", "_id": "promzard@0.2.0", "_from": "promzard@~0.2.0" } diff --git a/deps/npm/node_modules/init-package-json/package.json b/deps/npm/node_modules/init-package-json/package.json index 7c71037887..f73b57f3b3 100644 --- a/deps/npm/node_modules/init-package-json/package.json +++ b/deps/npm/node_modules/init-package-json/package.json @@ -1,6 +1,6 @@ { "name": "init-package-json", - "version": "0.0.11", + "version": "0.0.13", "main": "init-package-json.js", "scripts": { "test": "tap test/*.js" @@ -20,7 +20,8 @@ "promzard": "~0.2.0", "read": "~1.0.1", "read-package-json": "1", - "semver": "2.x" + "semver": "2.x", + "glob": "~3.2.7" }, "devDependencies": { "tap": "~0.2.5", @@ -41,6 +42,7 @@ "bugs": { "url": "https://github.com/isaacs/init-package-json/issues" }, - "_id": "init-package-json@0.0.11", + "homepage": "https://github.com/isaacs/init-package-json", + "_id": "init-package-json@0.0.13", "_from": "init-package-json@latest" } |