Skip to content
This repository was archived by the owner on Oct 31, 2024. It is now read-only.

Commit 80e6543

Browse files
committed
2.4.0
2.4.0 - 2017-05-28 ------------------------------------------------------------ * Adds deterministic versioning by hard-coding `kit` and `kit.ts` versions, and downloading from the appropriate repository * Displays versions next to JS and Typescript choices on installation * Adds version release dates * Bumps NPM: "fs-extra": "^3.0.1" "yargs": "^8.0.1" "eslint-plugin-import": "^2.3.0"
1 parent fe3c16b commit 80e6543

File tree

4 files changed

+149
-77
lines changed

4 files changed

+149
-77
lines changed

CHANGELOG

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
2.4.0 - 2017-05-28
2+
------------------------------------------------------------
3+
* Adds deterministic versioning by hard-coding `kit` and `kit.ts` versions, and downloading from the appropriate repository
4+
* Displays versions next to JS and Typescript choices on installation
5+
* Adds version release dates
6+
* Bumps NPM:
7+
"fs-extra": "^3.0.1"
8+
"yargs": "^8.0.1"
9+
"eslint-plugin-import": "^2.3.0"
10+
111
2.3.0 - 2017-04-29
212
------------------------------------------------------------
313
* Closes #32 - adds choice for Javascript or Typescript flavoured kit

cli/index.js

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,17 @@ const pkg = require('../package.json');
3131

3232
// ----------------------
3333

34+
const versions = {
35+
'kit': {
36+
version: '1.3.0',
37+
date: '2017-05-27',
38+
},
39+
'kit.ts': {
40+
version: '1.1.2',
41+
date: '2017-04-29',
42+
},
43+
};
44+
3445
// Check for ReactQL updates automatically
3546
updateNotifier({ pkg, updateCheckInterval: 0 }).notify();
3647

@@ -225,11 +236,11 @@ const args = yargs
225236
message: 'Which version of the kit would you like?',
226237
choices: [
227238
{
228-
name: 'Javascript (ES6)',
239+
name: `Javascript (ES6) - v${versions['kit'].version} (${versions['kit'].date})`,
229240
value: 'kit',
230241
},
231242
{
232-
name: 'Typescript',
243+
name: `Typescript - v${versions['kit.ts'].version} (${versions['kit.ts'].date})`,
233244
value: 'kit.ts',
234245
},
235246
]
@@ -253,12 +264,11 @@ const args = yargs
253264
// Show the separator to make it clear we've moved on to the
254265
// next step
255266
console.log(separator);
256-
257267
console.log('Downloading source code from Github...');
258268

259269
// Download the .zip containing the kit's source code
260270
request
261-
.get(`https://github.com/reactql/${args.repo}/archive/master.zip`)
271+
.get(`https://github.com/reactql/${args.repo}/archive/${versions[args.repo].version}.zip`)
262272
.pipe(
263273
file.on('finish', () => {
264274
console.log('Extracting archive...');

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "reactql",
3-
"version": "2.3.0",
3+
"version": "2.4.0",
44
"description": "Universal React+GraphQL starter kit: React, Apollo, Webpack 2, React Router 4, PostCSS, SSR",
55
"main": "cli/index.js",
66
"scripts": {
@@ -39,18 +39,18 @@
3939
"chalk": "^1.1.3",
4040
"command-exists": "^1.2.2",
4141
"cross-spawn": "^5.1.0",
42-
"fs-extra": "^3.0.0",
42+
"fs-extra": "^3.0.1",
4343
"inquirer": "^3.0.6",
4444
"mkdirp": "^0.5.1",
4545
"request": "^2.81.0",
4646
"spdx": "^0.5.1",
4747
"temp": "^0.8.3",
4848
"update-notifier": "^2.1.0",
49-
"yargs": "^7.1.0",
49+
"yargs": "^8.0.1",
5050
"yauzl": "^2.8.0"
5151
},
5252
"devDependencies": {
5353
"eslint": "^3.19.0",
54-
"eslint-plugin-import": "^2.2.0"
54+
"eslint-plugin-import": "^2.3.0"
5555
}
5656
}

0 commit comments

Comments
 (0)