Skip to content

Commit

Permalink
Merge pull request #160 from calibreapp/release-3-0
Browse files Browse the repository at this point in the history
Release 3 0
  • Loading branch information
Michael Dijkstra authored Feb 7, 2020
2 parents 96a1c48 + 6337346 commit 08a4c64
Show file tree
Hide file tree
Showing 6 changed files with 93 additions and 37 deletions.
15 changes: 15 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
### 3.0.0 - 2020-02-07

- Added `calibre token set` command.
- Added `calibre token remove` command.
- Updated default host to https://api.calibreapp.com
- Added ability to get agent settings in `agentSettings` API
- Added `agentSettings` to create in `site` API
- Added `--schedule` flag to `create site` with snapshot schedule
- Added `--interval` flag to `create site` with snapshot schedule interval
- Updated `create site` to have same defaults as web
- Improved error handling when trying to `get-snapshot-metrics` for a snapshot
that does not exist
- Fix undefined `ref` when creating a snapshot in API without a `ref`
- Support node version >= 10.13.0 (the first version of 10.x that was considered LTS.)

### 2.4.0 - 2019-12-03

- Added ability to set `isPrivate` in `test` API
Expand Down
2 changes: 1 addition & 1 deletion __tests__/cli/__snapshots__/index.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,4 @@ Examples:
For more information on Calibre, see http://localhost:5678."
`;
exports[`calibre --version 1`] = `"2.4.0"`;
exports[`calibre --version 1`] = `"3.0.0"`;
2 changes: 1 addition & 1 deletion examples/nodejs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "calibre-nodejs-examples",
"version": "1.0.1",
"engines": {
"node": ">= 8.3.0"
"node": ">= 10.13.0"
},
"description": "Calibre’s Node.JS examples",
"license": "ISC",
Expand Down
87 changes: 57 additions & 30 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"name": "calibre",
"version": "2.4.0",
"version": "3.0.0",
"engines": {
"node": "> 8.15.0"
"node": ">= 10.13.0"
},
"description": "Calibre - Page speed performance testing with Google Lighthouse",
"author": "calibreapp.com",
Expand Down
20 changes: 17 additions & 3 deletions src/cli/site/create.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,20 @@ const main = async function(args) {
scheduleAnchor: interval
}

const testProfiles = [
{
name: 'Chrome Desktop',
connection: 'cable'
},
{
name: 'MotoG4, 3G connection',
device: 'MotorolaMotoG4',
connection: 'regular3G'
}
]

try {
const site = await create({ name, pages, agentSettings })
const site = await create({ name, pages, agentSettings, testProfiles })

if (!args.json) {
spinner.succeed(`${site.name} added to Calibre`)
Expand All @@ -55,11 +67,13 @@ module.exports = {
})
.option('schedule', {
describe:
'Schedule for automated snapshots. One of: hourly, daily, every_x_hours'
'Schedule for automated snapshots. One of: hourly, daily, every_x_hours',
default: 'every_x_hours'
})
.option('interval', {
describe:
"Automated snapshot interval. UTC hour of day for 'daily', hour interval for 'every_x_hours'"
"Automated snapshot interval. UTC hour of day for 'daily', hour interval for 'every_x_hours'",
default: 6
})
.option('json', {
describe: 'Return the site attributes as JSON'
Expand Down

0 comments on commit 08a4c64

Please sign in to comment.