Skip to content
This repository has been archived by the owner on Nov 16, 2019. It is now read-only.

Commit

Permalink
Remove unused confs, add new ones
Browse files Browse the repository at this point in the history
  • Loading branch information
isaacs committed Dec 16, 2013
1 parent 7b3a8b4 commit 160aa09
Showing 1 changed file with 9 additions and 16 deletions.
25 changes: 9 additions & 16 deletions config-defs.js
Original file line number Diff line number Diff line change
Expand Up @@ -215,12 +215,14 @@ Object.defineProperty(exports, "defaults", {get: function () {
, "cache-max": Infinity
, "cache-min": 10

, cert: null

, color : true
, coverage: false
, depth: Infinity
, description : true
, dev : false
, editor : osenv.editor()
, email: null
, "engine-strict": false
, force : false

Expand All @@ -234,31 +236,28 @@ Object.defineProperty(exports, "defaults", {get: function () {

, global : false
, globalconfig : path.resolve(globalPrefix, "etc", "npmrc")
, globalignorefile : path.resolve( globalPrefix, "etc", "npmignore")
, group : process.platform === "win32" ? 0
: process.env.SUDO_GID || (process.getgid && process.getgid())
, heading: "npm"
, ignore: ""
, "ignore-scripts": false
, "init-module": path.resolve(home, '.npm-init.js')
, "init.version" : "0.0.0"
, "init.author.name" : ""
, "init.author.email" : ""
, "init.author.url" : ""
, "init.license": "ISC"

This comment has been minimized.

Copy link
@timoxley

timoxley Jan 8, 2014

Is there any significant rationale behind using ISC over BSD-2-Clause (previous default supplied by init-package-json)?

This comment has been minimized.

Copy link
@isaacs

isaacs Jan 8, 2014

Author Contributor

ISC is a simplified BSD/MIT-style license granting the same freedoms, but omitting language that's no longer legally necessary.

This comment has been minimized.

Copy link
@isaacs

isaacs Jan 8, 2014

Author Contributor

Also, when people say "BSD" it's unclear which license they're talking about. "ISC" has the benefit of only being one thing.

This comment has been minimized.

Copy link
@timoxley

timoxley Jan 8, 2014

Sounds reasonable. Had never heard of ISC. Perhaps to reduce confusion this should also be updated in init-package-json?

This comment has been minimized.

Copy link
@timoxley

timoxley Jan 8, 2014

If you want it: npm/init-package-json#9

, json: false
, key: null
, link: false
, "local-address" : undefined
, loglevel : "http"
, logstream : process.stderr
, long : false
, message : "%s"
, "node-version" : process.version
, npaturl : "http://npat.npmjs.org/"
, npat : false
, "onload-script" : false
, optional: true
, parseable : false
, pre: false
, prefix : globalPrefix
, production: process.env.NODE_ENV === "production"
, "proprietary-attribs": true
Expand Down Expand Up @@ -294,12 +293,10 @@ Object.defineProperty(exports, "defaults", {get: function () {
, user : process.platform === "win32" ? 0 : "nobody"
, username : ""
, userconfig : path.resolve(home, ".npmrc")
, userignorefile : path.resolve(home, ".npmignore")
, umask: 022
, version : false
, versions : false
, viewer: process.platform === "win32" ? "browser" : "man"
, yes: null

, _exit : true
}
Expand All @@ -316,12 +313,13 @@ exports.types =
, "cache-lock-wait": Number
, "cache-max": Number
, "cache-min": Number
, cert: [null, String]
, color : ["always", Boolean]
, coverage: Boolean
, depth : Number
, description : Boolean
, dev : Boolean
, editor : String
, email: [null, String]
, "engine-strict": Boolean
, force : Boolean
, "fetch-retries": Number
Expand All @@ -332,19 +330,18 @@ exports.types =
, "git-tag-version": Boolean
, global : Boolean
, globalconfig : path
, globalignorefile: path
, group : [Number, String]
, "https-proxy" : [null, url]
, "user-agent" : String
, "heading": String
, ignore : String
, "ignore-scripts": Boolean
, "init-module": path
, "init.version" : [null, semver]
, "init.author.name" : String
, "init.author.email" : String
, "init.author.url" : ["", url]
, "init.license": String
, json: Boolean
, key: [null, String]
, link: Boolean
// local-address must be listed as an IP for a local network interface
// must be IPv4 due to node bug
Expand All @@ -363,12 +360,10 @@ exports.types =
, long : Boolean
, message: String
, "node-version" : [null, semver]
, npaturl : url
, npat : Boolean
, "onload-script" : [null, String]
, optional: Boolean
, parseable : Boolean
, pre: Boolean
, prefix: path
, production: Boolean
, "proprietary-attribs": Boolean
Expand Down Expand Up @@ -399,12 +394,10 @@ exports.types =
, user : [Number, String]
, username : String
, userconfig : path
, userignorefile : path
, umask: Octal
, version : Boolean
, versions : Boolean
, viewer: String
, yes: [false, null, Boolean]
, _exit : Boolean
, _password: String
}
Expand Down

0 comments on commit 160aa09

Please sign in to comment.