Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorisaacs <i@izs.me>2013-11-20 22:06:08 +0400
committerisaacs <i@izs.me>2013-11-20 22:06:42 +0400
commit9b3786dafd76f27bc07b85d6a7ade53720124e4b (patch)
tree4728e067b506e56984fad444903e5314bf2fe6c0
parent1b2b78c06620ef8c65e90d6334d95e5c1a17a1b9 (diff)
init-package-json@0.0.13
-rw-r--r--node_modules/init-package-json/example/example-basic.js8
-rw-r--r--node_modules/init-package-json/example/example-default.js7
-rw-r--r--node_modules/init-package-json/example/example-npm.js (renamed from node_modules/init-package-json/example.js)7
-rw-r--r--node_modules/init-package-json/example/init/basic-init.js1
-rw-r--r--node_modules/init-package-json/node_modules/promzard/package.json1
-rw-r--r--node_modules/init-package-json/package.json8
-rw-r--r--package.json2
7 files changed, 26 insertions, 8 deletions
diff --git a/node_modules/init-package-json/example/example-basic.js b/node_modules/init-package-json/example/example-basic.js
new file mode 100644
index 000000000..29b0c818d
--- /dev/null
+++ b/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/node_modules/init-package-json/example/example-default.js b/node_modules/init-package-json/example/example-default.js
new file mode 100644
index 000000000..f3aea518c
--- /dev/null
+++ b/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/node_modules/init-package-json/example.js b/node_modules/init-package-json/example/example-npm.js
index ebab729ca..b394eeabc 100644
--- a/node_modules/init-package-json/example.js
+++ b/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/node_modules/init-package-json/example/init/basic-init.js b/node_modules/init-package-json/example/init/basic-init.js
new file mode 100644
index 000000000..c8615cc10
--- /dev/null
+++ b/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/node_modules/init-package-json/node_modules/promzard/package.json b/node_modules/init-package-json/node_modules/promzard/package.json
index 3cf38bf80..14c20d044 100644
--- a/node_modules/init-package-json/node_modules/promzard/package.json
+++ b/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/node_modules/init-package-json/package.json b/node_modules/init-package-json/package.json
index 7c7103788..f73b57f3b 100644
--- a/node_modules/init-package-json/package.json
+++ b/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"
}
diff --git a/package.json b/package.json
index 0dc6dd212..6f9d854ae 100644
--- a/package.json
+++ b/package.json
@@ -61,7 +61,7 @@
"read-package-json": "~1.1.4",
"read-installed": "~0.2.2",
"glob": "~3.2.6",
- "init-package-json": "0.0.11",
+ "init-package-json": "0.0.13",
"osenv": "0",
"lockfile": "~0.4.0",
"retry": "~0.6.0",