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

Commit a94b6eb

Browse files
rvaggisaacs
authored andcommitted
added init.version for npm init start version
1 parent 016b298 commit a94b6eb

File tree

6 files changed

+8
-0
lines changed

6 files changed

+8
-0
lines changed

config-defs.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,7 @@ Object.defineProperty(exports, "defaults", {get: function () {
158158
, "init.author.name" : ""
159159
, "init.author.email" : ""
160160
, "init.author.url" : ""
161+
, "init.version": "0.0.0"
161162
, "init.license": "ISC"
162163
, json: false
163164
, key: null
@@ -258,6 +259,7 @@ exports.types =
258259
, "init.author.email" : String
259260
, "init.author.url" : ["", url]
260261
, "init.license": String
262+
, "init.version": semver
261263
, json: Boolean
262264
, key: [null, String]
263265
, link: Boolean

test/basic.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ var ucData =
1212
'init.author.name': 'Isaac Z. Schlueter',
1313
'init.author.email': 'i@izs.me',
1414
'init.author.url': 'http://blog.izs.me/',
15+
'init.version': '1.2.3',
1516
'proprietary-attribs': false,
1617
'npm:publishtest': true,
1718
'_npmjs.org:couch': 'https://admin:password@localhost:5984/registry',

test/builtin.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ var ucData =
1010
'init.author.name': 'Isaac Z. Schlueter',
1111
'init.author.email': 'i@izs.me',
1212
'init.author.url': 'http://blog.izs.me/',
13+
'init.version': '1.2.3',
1314
'proprietary-attribs': false,
1415
'npm:publishtest': true,
1516
'_npmjs.org:couch': 'https://admin:password@localhost:5984/registry',

test/fixtures/userconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ env-thing = ${random_env_var}
33
init.author.name = Isaac Z. Schlueter
44
init.author.email = i@izs.me
55
init.author.url = http://blog.izs.me/
6+
init.version = 1.2.3
67
proprietary-attribs = false
78
npm:publishtest = true
89
_npmjs.org:couch = https://admin:password@localhost:5984/registry

test/project.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ var ucData =
1414
'init.author.name': 'Isaac Z. Schlueter',
1515
'init.author.email': 'i@izs.me',
1616
'init.author.url': 'http://blog.izs.me/',
17+
'init.version': '1.2.3',
1718
'proprietary-attribs': false,
1819
'npm:publishtest': true,
1920
'_npmjs.org:couch': 'https://admin:password@localhost:5984/registry',

test/save.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ var expectConf =
1010
'init.author.name = Isaac Z. Schlueter',
1111
'init.author.email = i@izs.me',
1212
'init.author.url = http://blog.izs.me/',
13+
'init.version = 1.2.3',
1314
'proprietary-attribs = false',
1415
'npm:publishtest = true',
1516
'_npmjs.org:couch = https://admin:password@localhost:5984/registry',
@@ -32,6 +33,7 @@ var expectFile =
3233
'init.author.name = Isaac Z. Schlueter',
3334
'init.author.email = i@izs.me',
3435
'init.author.url = http://blog.izs.me/',
36+
'init.version = 1.2.3',
3537
'proprietary-attribs = false',
3638
'npm:publishtest = true',
3739
'_npmjs.org:couch = https://admin:password@localhost:5984/registry',

0 commit comments

Comments
 (0)