Skip to content

Commit

Permalink
Rename download-runtime => runtime-fetch
Browse files Browse the repository at this point in the history
NPM doesn't allow modules containing `download`.
  • Loading branch information
sebastianbenz committed Apr 2, 2020
1 parent 9315bad commit cb18b63
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@ A collection of AMP tools making it easier to publish and host AMP pages. The fo
- **[amp-cache-list](./packages/cache-list):** a javascript library for listing the known AMP Caches.
- **[amp-cli](./packages/cli):** a command line version of AMP Toolbox
- **[amp-cors](./packages/cors):** a connect/express middleware to automatically add [AMP Cors headers](https://www.ampproject.org/docs/fundamentals/amp-cors-requests).
- **[amp-download-runtime](./packages/download-runtime):** a javascript library for downloading the AMP runtime.
- **[amp-linter](./packages/linter):** a javascript library for linting AMP documents (includes CLI mode).
- **[amp-optimizer](./packages/optimizer):** a javascript library implementing server-side-rendering for AMP pages.
- **[amp-optimizer-express](./packages/optimizer-express)** an [express](http://expressjs.com/) middleware that applies AMP server-side-rendering on the fly.
- **[amp-runtime-fetch](./packages/runtime-fetch):** a javascript library for downloading the AMP runtime.
- **[amp-runtime-version](./packages/runtime-version):** a javascript library for querying the current AMP runtime version.
- **[amp-script-csp](./packages/script-csp):** a javascript library for calculating [`amp-script`](https://amp.dev/documentation/components/amp-script/) compatible CSP hashes.
- **[amp-update-cache](./packages/update-cache):** a javascript library for updating AMP documents in AMP Caches.
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/lib/cmds/downloadRuntime.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

const path = require('path');

const downloadRuntimeProvider = require('@ampproject/toolbox-download-runtime');
const downloadRuntimeProvider = require('@ampproject/toolbox-runtime-fetch');

async function downloadRuntime(args, _) {
const {host, clear, dest, rtv} = args;
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"dependencies": {
"@ampproject/toolbox-cache-list": "^2.1.0",
"@ampproject/toolbox-cache-url": "^2.1.0",
"@ampproject/toolbox-download-runtime": "^2.1.0",
"@ampproject/toolbox-runtime-fetch": "^2.1.0",
"@ampproject/toolbox-linter": "^2.1.0",
"@ampproject/toolbox-optimizer": "^2.1.0",
"@ampproject/toolbox-runtime-version": "^2.1.0",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# AMP Download Runtime

[![npm version](https://badge.fury.io/js/%40ampproject%2Ftoolbox-download-runtime.svg)](https://badge.fury.io/js/%40ampproject%2Ftoolbox-download-runtime)
[![npm version](https://badge.fury.io/js/%40ampproject%2Ftoolbox-runtime-fetch.svg)](https://badge.fury.io/js/%40ampproject%2Ftoolbox-runtime-fetch)

The AMP Download Runtime tool fetches a complete, compiled AMP runtime and saves it to disk. You can use this tool to fetch [AMP Project releases](https://github.com/ampproject/amphtml/releases) from `cdn.ampproject.org` or direct it to download an AMP runtime hosted elsewhere.

Expand All @@ -11,7 +11,7 @@ Special handling is included for amp-geo. For hosting environments that [dynamic
Install via:

```sh
npm install @ampproject/toolbox-download-runtime --save
npm install @ampproject/toolbox-runtime-fetch --save
```

## Options
Expand All @@ -28,7 +28,7 @@ Note: When downloading [AMP Project releases](https://github.com/ampproject/amph
Basic usage:

```js
const downloadRuntime = require('@ampproject/toolbox-download-runtime');
const downloadRuntime = require('@ampproject/toolbox-runtime-fetch');

let result;

Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const cacheListProvider = require('@ampproject/toolbox-cache-list');
const crossFetch = require('cross-fetch');
const fse = require('fs-extra');
const https = require('https');
const log = require('@ampproject/toolbox-core').log.tag('AMP Download Runtime');
const log = require('@ampproject/toolbox-core').log.tag('Runtime Fetch');
const os = require('os');
const path = require('path');
const runtimeVersionProvider = require('@ampproject/toolbox-runtime-version');
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@ampproject/toolbox-download-runtime",
"name": "@ampproject/toolbox-runtime-fetch",
"version": "2.1.0",
"description": "Download the AMP runtime",
"main": "index.js",
Expand All @@ -15,7 +15,7 @@
"repository": {
"type": "git",
"url": "git+https://github.com/ampproject/amp-toolbox.git",
"directory": "packages/download-runtime"
"directory": "packages/runtime-fetch"
},
"author": "AMPHTML Team",
"license": "Apache-2.0",
Expand All @@ -30,6 +30,6 @@
"bugs": {
"url": "https://github.com/ampproject/amp-toolbox/issues"
},
"homepage": "https://github.com/ampproject/amp-toolbox/tree/master/packages/download-runtime",
"homepage": "https://github.com/ampproject/amp-toolbox/tree/master/packages/runtime-fetch",
"gitHead": "a6bc962a0af397c2fc21de1e8a730257947d8fb6"
}

0 comments on commit cb18b63

Please sign in to comment.