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

Commit

Permalink
2.4.0
Browse files Browse the repository at this point in the history
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"
  • Loading branch information
leebenson committed May 28, 2017
1 parent fe3c16b commit 80e6543
Show file tree
Hide file tree
Showing 4 changed files with 149 additions and 77 deletions.
10 changes: 10 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
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"

2.3.0 - 2017-04-29
------------------------------------------------------------
* Closes #32 - adds choice for Javascript or Typescript flavoured kit
Expand Down
18 changes: 14 additions & 4 deletions cli/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,17 @@ const pkg = require('../package.json');

// ----------------------

const versions = {
'kit': {
version: '1.3.0',
date: '2017-05-27',
},
'kit.ts': {
version: '1.1.2',
date: '2017-04-29',
},
};

// Check for ReactQL updates automatically
updateNotifier({ pkg, updateCheckInterval: 0 }).notify();

Expand Down Expand Up @@ -225,11 +236,11 @@ const args = yargs
message: 'Which version of the kit would you like?',
choices: [
{
name: 'Javascript (ES6)',
name: `Javascript (ES6) - v${versions['kit'].version} (${versions['kit'].date})`,
value: 'kit',
},
{
name: 'Typescript',
name: `Typescript - v${versions['kit.ts'].version} (${versions['kit.ts'].date})`,
value: 'kit.ts',
},
]
Expand All @@ -253,12 +264,11 @@ const args = yargs
// Show the separator to make it clear we've moved on to the
// next step
console.log(separator);

console.log('Downloading source code from Github...');

// Download the .zip containing the kit's source code
request
.get(`https://github.com/reactql/${args.repo}/archive/master.zip`)
.get(`https://github.com/reactql/${args.repo}/archive/${versions[args.repo].version}.zip`)
.pipe(
file.on('finish', () => {
console.log('Extracting archive...');
Expand Down
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "reactql",
"version": "2.3.0",
"version": "2.4.0",
"description": "Universal React+GraphQL starter kit: React, Apollo, Webpack 2, React Router 4, PostCSS, SSR",
"main": "cli/index.js",
"scripts": {
Expand Down Expand Up @@ -39,18 +39,18 @@
"chalk": "^1.1.3",
"command-exists": "^1.2.2",
"cross-spawn": "^5.1.0",
"fs-extra": "^3.0.0",
"fs-extra": "^3.0.1",
"inquirer": "^3.0.6",
"mkdirp": "^0.5.1",
"request": "^2.81.0",
"spdx": "^0.5.1",
"temp": "^0.8.3",
"update-notifier": "^2.1.0",
"yargs": "^7.1.0",
"yargs": "^8.0.1",
"yauzl": "^2.8.0"
},
"devDependencies": {
"eslint": "^3.19.0",
"eslint-plugin-import": "^2.2.0"
"eslint-plugin-import": "^2.3.0"
}
}
Loading

0 comments on commit 80e6543

Please sign in to comment.