Browse Source

Replaced all name occurences

master
Leo Lamprecht 7 years ago
parent
commit
8435180f13
  1. 2
      download/src/index.js
  2. 2
      link/package.json
  3. 2
      package.json
  4. 6
      readme.md
  5. 2
      src/config/help.js
  6. 2
      src/get-help.js
  7. 2
      src/get-welcome.js
  8. 4
      src/resolvers/github.js

2
download/src/index.js

@ -91,7 +91,7 @@ async function download() {
try { try {
const name = platformToName[platform] const name = platformToName[platform]
const url = `https://cdn.zeit.co/releases/now/${packageJSON.version}/${name}` const url = `https://cdn.zeit.co/releases/now-cli/${packageJSON.version}/${name}`
const resp = await fetch(url, { compress: false }) const resp = await fetch(url, { compress: false })
if (resp.status !== 200) { if (resp.status !== 200) {

2
link/package.json

@ -2,7 +2,7 @@
"name": "now", "name": "now",
"license": "Apache-2.0", "license": "Apache-2.0",
"description": "The command line interface for Now", "description": "The command line interface for Now",
"repository": "zeit/now", "repository": "zeit/now-cli",
"bin": { "bin": {
"now": "link.js" "now": "link.js"
} }

2
package.json

@ -3,7 +3,7 @@
"version": "8.0.0-beta.8", "version": "8.0.0-beta.8",
"license": "Apache-2.0", "license": "Apache-2.0",
"description": "The command line interface for Now", "description": "The command line interface for Now",
"repository": "zeit/now", "repository": "zeit/now-cli",
"scripts": { "scripts": {
"test": "eslint .", "test": "eslint .",
"prepublishOnly": "npm run build-download && cp /dev/null download/dist/now", "prepublishOnly": "npm run build-download && cp /dev/null download/dist/now",

6
readme.md

@ -1,6 +1,6 @@
![now](https://github.com/zeit/art/blob/master/now-hosted/now-header.png?raw=true) ![now](https://github.com/zeit/art/blob/master/now-hosted/now-header.png?raw=true)
[![Build Status](https://travis-ci.org/zeit/now.svg?branch=master)](https://travis-ci.org/zeit/now) [![Build Status](https://travis-ci.org/zeit/now-cli.svg?branch=master)](https://travis-ci.org/zeit/now-cli)
[![Slack Channel](http://zeit-slackin.now.sh/badge.svg)](https://zeit.chat/) [![Slack Channel](http://zeit-slackin.now.sh/badge.svg)](https://zeit.chat/)
## Usage ## Usage
@ -40,7 +40,7 @@ The output of the `now` command will be a unique url to the deployment. No need
- **Single command setup**: `now [provider] login` - **Single command setup**: `now [provider] login`
- **Secure**. All deployments are served over SSL - **Secure**. All deployments are served over SSL
- **Dynamic and Static**. Deploy popular runtimes or static websites - **Dynamic and Static**. Deploy popular runtimes or static websites
- **Remote fs support**. Deploy any github project with `now project/repo`, gitlab with `gitlab://`. [PRs welcome](https://github.com/zeit/now/pulls)! - **Remote fs support**. Deploy any github project with `now project/repo`, gitlab with `gitlab://`. [PRs welcome](https://github.com/zeit/now-cli/pulls)!
## Installation ## Installation
@ -260,7 +260,7 @@ all interactions in our community.
To get started contributing, make sure you're running `node` `8.x.x`. Clone this repository: To get started contributing, make sure you're running `node` `8.x.x`. Clone this repository:
``` ```
git clone https://github.com/zeit/now git clone https://github.com/zeit/now-cli
``` ```
To test the [`pkg`](https://github.com/zeit/pkg) binary distribution, run: To test the [`pkg`](https://github.com/zeit/pkg) binary distribution, run:

2
src/config/help.js

@ -18,7 +18,7 @@ const help = () =>
${cmd('now config set defaultProvider aws')} ${cmd('now config set defaultProvider aws')}
For more information: ${link('https://github.com/zeit/now')}. For more information: ${link('https://github.com/zeit/now-cli')}.
` `
) )

2
src/get-help.js

@ -40,7 +40,7 @@ const getHelp = (currentProvider, providers) =>
${cmd('now [provider] [subcommand] help')} ${cmd('now [provider] [subcommand] help')}
For more information: ${link('https://github.com/zeit/now')}. For more information: ${link('https://github.com/zeit/now-cli')}.
` `
module.exports = getHelp module.exports = getHelp

2
src/get-welcome.js

@ -34,7 +34,7 @@ const getWelcome = (currentProvider, providers) =>
Hope you enjoy Now! Check out these other resources: Hope you enjoy Now! Check out these other resources:
${li(`Run ${cmd('now help')} for more info and examples`)} ${li(`Run ${cmd('now help')} for more info and examples`)}
${li(link('https://github.com/zeit/now'))} ${li(link('https://github.com/zeit/now-cli'))}
` `
module.exports = getWelcome module.exports = getWelcome

4
src/resolvers/github.js

@ -10,13 +10,13 @@ const { createGunzip } = require('zlib')
const { join } = require('path') const { join } = require('path')
const debug = require('debug')('now:resolvers:github') const debug = require('debug')('now:resolvers:github')
// matches a parameter that can be `now`d like zeit/now#master // matches a parameter that can be `now`d like zeit/now-cli#master
const DEPLOY_PARAM_REGEX = /^([\w-]+)\/([\w-]+)(#\w+)?$/ const DEPLOY_PARAM_REGEX = /^([\w-]+)\/([\w-]+)(#\w+)?$/
// matches whether the parameter could be a github url // matches whether the parameter could be a github url
const GITHUB_TEST_REGEX = /^(https?:\/\/)(www\.)?github\.com/ const GITHUB_TEST_REGEX = /^(https?:\/\/)(www\.)?github\.com/
// matches a github url pathname like: zeit/now/tree/master // matches a github url pathname like: zeit/now-cli/tree/master
const URL_PATHNAME_REGEX = /^\/([\w-]+)\/([\w-]+)(\/tree\/(\w+))?$/ const URL_PATHNAME_REGEX = /^\/([\w-]+)\/([\w-]+)(\/tree\/(\w+))?$/
const resolveGitHub = (param: string) => { const resolveGitHub = (param: string) => {

Loading…
Cancel
Save