Skip to content

Commit b971e5c

Browse files
authored
docs: add README and env setup tool (#23)
1 parent c1c0339 commit b971e5c

3 files changed

Lines changed: 21 additions & 10 deletions

File tree

.github/CONTRIBUTING.md

Lines changed: 0 additions & 10 deletions
This file was deleted.

README.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# deploy-cli
2+
3+
The implementation of `deno deploy` subcommand.
4+
5+
## How this works
6+
7+
The source code of this repository is published to https://jsr.io/@deno/deploy
8+
9+
`deno deploy` subcommand executes the main entrypoint of `jsr:@deno/deploy`
10+
[ref](https://github.com/denoland/deno/blob/efa4da8643c1ada18102bd3eeadb28171f7cdad6/cli/tools/deploy.rs#L47-L72).
11+
12+
## How to develop
13+
14+
Set the file url of main.ts of your local copy of this repository to
15+
`DENO_DEPLOY_CLI_SPECIFIER` env var. e.g.
16+
`DENO_DEPLOY_CLI_SPECIFIER=file:///path/to/deploy-cli/main.ts`, or run
17+
`source dev_env.sh` at the root of this repo (This sets
18+
`DENO_DEPLOY_CLI_SPECIFIER`)
19+
20+
Then `deno deploy` subcommand uses your local copy as its implementation.

dev_env.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export DENO_DEPLOY_CLI_SPECIFIER="file://$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)/main.ts"

0 commit comments

Comments
 (0)