Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rename download-runtime => runtime-fetch #683

Merged
merged 1 commit into from
Apr 3, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
148 changes: 74 additions & 74 deletions package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
"@ampproject/toolbox-cli": "file:packages/cli",
"@ampproject/toolbox-core": "file:packages/core",
"@ampproject/toolbox-cors": "file:packages/cors",
"@ampproject/toolbox-download-runtime": "file:packages/download-runtime",
"@ampproject/toolbox-runtime-fetch": "file:packages/runtime-fetch",
"@ampproject/toolbox-linter": "file:packages/linter",
"@ampproject/toolbox-optimizer": "file:packages/optimizer",
"@ampproject/toolbox-optimizer-express": "file:packages/optimizer-express",
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 Download');
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"
}