Skip to content

Commit

Permalink
fix prepack
Browse files Browse the repository at this point in the history
  • Loading branch information
Roy Razon committed Dec 14, 2023
1 parent 154dcef commit 89f0459
Show file tree
Hide file tree
Showing 29 changed files with 301 additions and 1,178 deletions.
6 changes: 4 additions & 2 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
#!/usr/bin/env bash
. "$(dirname -- "$0")/_/husky.sh"

root_dir=("$(cd "$(dirname -- "$0")/.."; pwd)")

diff=$(git diff --cached --name-only)

if echo "${diff}" | grep -E --quiet '^site/'; then
(cd site; yarn build)
(cd "${root_dir}/site"; yarn build)
fi

if echo "${diff}" | grep -E --quiet '^(packages/)|(lerna)|(package.json)|(yarn.lock)'; then
Expand All @@ -14,7 +16,7 @@ if echo "${diff}" | grep -E --quiet '^(packages/)|(lerna)|(package.json)|(yarn.l
fi

if echo "${diff}" | grep -E --quiet '^tunnel-server/'; then
(cd tunnel-server; yarn lint && yarn build)
(cd "${root_dir}/tunnel-server"; yarn lint && yarn build)
fi

if echo "${diff}" | grep -E --quiet '^README/'; then
Expand Down
1,025 changes: 15 additions & 1,010 deletions packages/cli/README.md

Large diffs are not rendered by default.

16 changes: 12 additions & 4 deletions packages/cli/docs/down.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,15 @@ USAGE
<value>] [--gce-project-id <value>] [--gce-zone <value>] [--azure-region <value>] [--azure-subscription-id <value>]
[--kube-pod-namespace <value>] [--kube-pod-kubeconfig <value>] [--kube-pod-context <value>] [--kube-pod-template
<value>] [--id <value>] [--force] [--wait] [--github-token <value>] [--github-repo <value>] [--github-pull-request
<value>] [--github-pr-comment-template-file <value>] [--github-pr-comment-enabled auto|no|always]
<value>] [--github-pr-comment-template-file <value>] [--github-add-build-cache] [--github-pr-comment-enabled
auto|no|always]
FLAGS
-d, --driver=<option> Machine driver to use
<options: lightsail|gce|azure|kube-pod>
--force Do not error if the environment is not found
--id=<value> Environment id - affects created URLs. If not specified, will try to detect automatically
--profile=<value> Run in a specific profile context
--id=<value> Environment id
--profile=<value> Run in a specific profile context (either an alias or a URL)
--wait Wait for resource deletion to complete. If false (the default), the deletion will be started
but not waited for
Expand All @@ -45,6 +46,7 @@ GCE DRIVER FLAGS
--gce-zone=<value> Google Cloud zone in which resources will be provisioned
GITHUB INTEGRATION FLAGS
--github-add-build-cache Add github cache to the build
--github-pr-comment-enabled=<option> [default: auto] Whether to enable posting to the GitHub PR
<options: auto|no|always>
--github-pr-comment-template-file=<value> Path to nunjucks template file
Expand All @@ -65,6 +67,12 @@ LIGHTSAIL DRIVER FLAGS
DESCRIPTION
Delete preview environments
FLAG DESCRIPTIONS
--id=<value> Environment id
Affects created URLs
If not specified, will detect from the current Git context
```

_See code: [src/commands/down.ts](https://github.com/livecycle/preevy/blob/v0.0.56/src/commands/down.ts)_
_See code: [src/commands/down.ts](https://github.com/livecycle/preevy/blob/v0.0.58/src/commands/down.ts)_
2 changes: 1 addition & 1 deletion packages/cli/docs/help.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@ DESCRIPTION
Display help for preevy.
```

_See code: [src/commands/help.ts](https://github.com/livecycle/preevy/blob/v0.0.56/src/commands/help.ts)_
_See code: [src/commands/help.ts](https://github.com/livecycle/preevy/blob/v0.0.58/src/commands/help.ts)_
8 changes: 4 additions & 4 deletions packages/cli/docs/init.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@ Initialize or import a new profile
```
USAGE
$ preevy init [PROFILE-ALIAS] [-D] [-f <value>] [--system-compose-file <value>] [-p <value>]
[--enable-plugin <value>] [--disable-plugin <value>] [-f <value>]
[--enable-plugin <value>] [--disable-plugin <value>] [--from <value>]
ARGUMENTS
PROFILE-ALIAS [default: default] Alias of the profile
PROFILE-ALIAS Name of the profile
FLAGS
-f, --from=<value> Import profile from existing path
--from=<value> Import profile from existing path
GLOBAL FLAGS
-D, --debug Enable debug logging
Expand All @@ -32,4 +32,4 @@ DESCRIPTION
Initialize or import a new profile
```

_See code: [src/commands/init.ts](https://github.com/livecycle/preevy/blob/v0.0.56/src/commands/init.ts)_
_See code: [src/commands/init.ts](https://github.com/livecycle/preevy/blob/v0.0.58/src/commands/init.ts)_
2 changes: 1 addition & 1 deletion packages/cli/docs/login.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,4 @@ DESCRIPTION
Login to the Livecycle SaaS
```

_See code: [src/commands/login.ts](https://github.com/livecycle/preevy/blob/v0.0.56/src/commands/login.ts)_
_See code: [src/commands/login.ts](https://github.com/livecycle/preevy/blob/v0.0.58/src/commands/login.ts)_
12 changes: 9 additions & 3 deletions packages/cli/docs/logs.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ FLAGS
-d, --driver=<option> Machine driver to use
<options: lightsail|gce|azure|kube-pod>
--follow Follow log output
--id=<value> Environment id - affects created URLs. If not specified, will try to detect automatically
--id=<value> Environment id
--no-log-prefix Don't print log prefix in logs
--profile=<value> Run in a specific profile context
--profile=<value> Run in a specific profile context (either an alias or a URL)
--since=<value> Show logs since timestamp
--tail=<value> Number of lines to show from the end of the logs for each container (default: all)
--timestamps Show timestamps
Expand Down Expand Up @@ -61,6 +61,12 @@ LIGHTSAIL DRIVER FLAGS
DESCRIPTION
Show logs for an existing environment
FLAG DESCRIPTIONS
--id=<value> Environment id
Affects created URLs
If not specified, will detect from the current Git context
```

_See code: [src/commands/logs.ts](https://github.com/livecycle/preevy/blob/v0.0.56/src/commands/logs.ts)_
_See code: [src/commands/logs.ts](https://github.com/livecycle/preevy/blob/v0.0.58/src/commands/logs.ts)_
24 changes: 13 additions & 11 deletions packages/cli/docs/ls.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,7 @@ USAGE
FLAGS
-d, --driver=<option> Machine driver to use
<options: lightsail|gce|azure|kube-pod>
-x, --extended show extra columns
--columns=<value> only show provided columns (comma-separated)
--csv output is csv format [alias: --output=csv]
--filter=<value> filter property by partial string matching, ex: name=foo
--no-header hide table header from output
--no-truncate do not truncate output to fit screen
--output=<option> output in a more machine friendly format
<options: csv|json|yaml>
--profile=<value> Run in a specific profile context
--sort=<value> property to sort by (prepend '-' for descending)
--profile=<value> Run in a specific profile context (either an alias or a URL)
GLOBAL FLAGS
-D, --debug Enable debug logging
Expand All @@ -41,6 +32,17 @@ GLOBAL FLAGS
--json Format output as json.
--system-compose-file=<value>... [default: ] Add extra Compose configuration file without overriding the defaults
OUTPUT FLAGS
-x, --extended show extra columns
--columns=<value> only show provided columns (comma-separated)
--csv output is csv format [alias: --output=csv]
--filter=<value> filter property by partial string matching, ex: name=foo
--no-header hide table header from output
--no-truncate do not truncate output to fit screen
--output=<option> output in a more machine friendly format
<options: csv|json|yaml>
--sort=<value> property to sort by (prepend '-' for descending)
AZURE DRIVER FLAGS
--azure-region=<value> Microsoft Azure region in which resources will be provisioned
--azure-subscription-id=<value> Microsoft Azure subscription id
Expand All @@ -63,4 +65,4 @@ DESCRIPTION
List preview environments
```

_See code: [src/commands/ls.ts](https://github.com/livecycle/preevy/blob/v0.0.56/src/commands/ls.ts)_
_See code: [src/commands/ls.ts](https://github.com/livecycle/preevy/blob/v0.0.58/src/commands/ls.ts)_
57 changes: 35 additions & 22 deletions packages/cli/docs/profile.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ USAGE
FLAGS
-d, --driver=<option> Machine driver to use
<options: lightsail|gce|azure|kube-pod>
--profile=<value> Run in a specific profile context
--profile=<value> Run in a specific profile context (either an alias or a URL)
--unset=<option>... [default: ] Unset a configuration option
<options: lightsail-region|gce-project-id|gce-zone|azure-region|azure-subscription-id|kube-po
d-namespace|kube-pod-kubeconfig|kube-pod-context|kube-pod-template|lightsail-availability-zon
Expand Down Expand Up @@ -78,7 +78,7 @@ DESCRIPTION
View and update profile configuration
```

_See code: [src/commands/profile/config/update.ts](https://github.com/livecycle/preevy/blob/v0.0.56/src/commands/profile/config/update.ts)_
_See code: [src/commands/profile/config/update.ts](https://github.com/livecycle/preevy/blob/v0.0.58/src/commands/profile/config/update.ts)_

## `preevy profile config view`

Expand All @@ -90,7 +90,7 @@ USAGE
<value>] [--disable-plugin <value>] [--profile <value>]
FLAGS
--profile=<value> Run in a specific profile context
--profile=<value> Run in a specific profile context (either an alias or a URL)
GLOBAL FLAGS
-D, --debug Enable debug logging
Expand All @@ -105,7 +105,7 @@ DESCRIPTION
View profile configuration
```

_See code: [src/commands/profile/config/view.ts](https://github.com/livecycle/preevy/blob/v0.0.56/src/commands/profile/config/view.ts)_
_See code: [src/commands/profile/config/view.ts](https://github.com/livecycle/preevy/blob/v0.0.58/src/commands/profile/config/view.ts)_

## `preevy profile cp`

Expand Down Expand Up @@ -138,7 +138,7 @@ DESCRIPTION
Copy a profile
```

_See code: [src/commands/profile/cp.ts](https://github.com/livecycle/preevy/blob/v0.0.56/src/commands/profile/cp.ts)_
_See code: [src/commands/profile/cp.ts](https://github.com/livecycle/preevy/blob/v0.0.58/src/commands/profile/cp.ts)_

## `preevy profile create NAME URL`

Expand All @@ -161,7 +161,7 @@ ARGUMENTS
FLAGS
-d, --driver=<option> Machine driver to use
<options: lightsail|gce|azure|kube-pod>
--profile=<value> Run in a specific profile context
--profile=<value> Run in a specific profile context (either an alias or a URL)
--use Mark the new profile as the current profile
GLOBAL FLAGS
Expand Down Expand Up @@ -202,7 +202,7 @@ DESCRIPTION
Create a new profile
```

_See code: [src/commands/profile/create.ts](https://github.com/livecycle/preevy/blob/v0.0.56/src/commands/profile/create.ts)_
_See code: [src/commands/profile/create.ts](https://github.com/livecycle/preevy/blob/v0.0.58/src/commands/profile/create.ts)_

## `preevy profile current`

Expand All @@ -214,7 +214,7 @@ USAGE
<value>] [--disable-plugin <value>] [--profile <value>]
FLAGS
--profile=<value> Run in a specific profile context
--profile=<value> Run in a specific profile context (either an alias or a URL)
GLOBAL FLAGS
-D, --debug Enable debug logging
Expand All @@ -229,7 +229,7 @@ DESCRIPTION
Display current profile in use
```

_See code: [src/commands/profile/current.ts](https://github.com/livecycle/preevy/blob/v0.0.56/src/commands/profile/current.ts)_
_See code: [src/commands/profile/current.ts](https://github.com/livecycle/preevy/blob/v0.0.58/src/commands/profile/current.ts)_

## `preevy profile import LOCATION`

Expand Down Expand Up @@ -259,7 +259,7 @@ DESCRIPTION
Import an existing profile
```

_See code: [src/commands/profile/import.ts](https://github.com/livecycle/preevy/blob/v0.0.56/src/commands/profile/import.ts)_
_See code: [src/commands/profile/import.ts](https://github.com/livecycle/preevy/blob/v0.0.58/src/commands/profile/import.ts)_

## `preevy profile key [TYPE]`

Expand All @@ -274,7 +274,7 @@ ARGUMENTS
TYPE (private|public-pem|public-ssh|thumbprint|thumbprint-uri) [default: thumbprint-uri] type of the key to show
FLAGS
--profile=<value> Run in a specific profile context
--profile=<value> Run in a specific profile context (either an alias or a URL)
GLOBAL FLAGS
-D, --debug Enable debug logging
Expand All @@ -289,7 +289,7 @@ DESCRIPTION
Show profile key
```

_See code: [src/commands/profile/key.ts](https://github.com/livecycle/preevy/blob/v0.0.56/src/commands/profile/key.ts)_
_See code: [src/commands/profile/key.ts](https://github.com/livecycle/preevy/blob/v0.0.58/src/commands/profile/key.ts)_

## `preevy profile link`

Expand All @@ -304,7 +304,7 @@ FLAGS
--access-token=<value> Livecycle's Access Token
--lc-api-url=<value> [default: https://app.livecycle.run] The Livecycle API URL'
--org=<value> Target organization slug for linking the profile
--profile=<value> Run in a specific profile context
--profile=<value> Run in a specific profile context (either an alias or a URL)
GLOBAL FLAGS
-D, --debug Enable debug logging
Expand All @@ -318,7 +318,7 @@ DESCRIPTION
Link the profile to the logged in user's organization
```

_See code: [src/commands/profile/link.ts](https://github.com/livecycle/preevy/blob/v0.0.56/src/commands/profile/link.ts)_
_See code: [src/commands/profile/link.ts](https://github.com/livecycle/preevy/blob/v0.0.58/src/commands/profile/link.ts)_

## `preevy profile ls`

Expand All @@ -327,25 +327,37 @@ Lists profiles
```
USAGE
$ preevy profile ls [--json] [-D] [-f <value>] [--system-compose-file <value>] [-p <value>] [--enable-plugin
<value>] [--disable-plugin <value>] [--profile <value>]
<value>] [--disable-plugin <value>] [--profile <value>] [--columns <value> | -x] [--filter <value>] [--no-header |
[--csv | --no-truncate]] [--output csv|json|yaml | | ] [--sort <value>]
FLAGS
--profile=<value> Run in a specific profile context
--json
--profile=<value> Run in a specific profile context (either an alias or a URL)
GLOBAL FLAGS
-D, --debug Enable debug logging
-f, --file=<value>... [default: ] Compose configuration file
-p, --project=<value> Project name. Defaults to the Compose project name
--disable-plugin=<value>... Disable plugin with specified package name
--enable-plugin=<value>... [default: @preevy/plugin-github] Enable plugin with specified package name
--json Format output as json.
--system-compose-file=<value>... [default: ] Add extra Compose configuration file without overriding the defaults
OUTPUT FLAGS
-x, --extended show extra columns
--columns=<value> only show provided columns (comma-separated)
--csv output is csv format [alias: --output=csv]
--filter=<value> filter property by partial string matching, ex: name=foo
--no-header hide table header from output
--no-truncate do not truncate output to fit screen
--output=<option> output in a more machine friendly format
<options: csv|json|yaml>
--sort=<value> property to sort by (prepend '-' for descending)
DESCRIPTION
Lists profiles
```

_See code: [src/commands/profile/ls.ts](https://github.com/livecycle/preevy/blob/v0.0.56/src/commands/profile/ls.ts)_
_See code: [src/commands/profile/ls.ts](https://github.com/livecycle/preevy/blob/v0.0.58/src/commands/profile/ls.ts)_

## `preevy profile rm NAME`

Expand All @@ -354,13 +366,14 @@ Remove a profile
```
USAGE
$ preevy profile rm NAME [--json] [-D] [-f <value>] [--system-compose-file <value>] [-p <value>]
[--enable-plugin <value>] [--disable-plugin <value>] [--profile <value>]
[--enable-plugin <value>] [--disable-plugin <value>] [--profile <value>] [--force]
ARGUMENTS
NAME name of the profile to remove
FLAGS
--profile=<value> Run in a specific profile context
--force Do not error if the profile is not found
--profile=<value> Run in a specific profile context (either an alias or a URL)
GLOBAL FLAGS
-D, --debug Enable debug logging
Expand All @@ -375,7 +388,7 @@ DESCRIPTION
Remove a profile
```

_See code: [src/commands/profile/rm.ts](https://github.com/livecycle/preevy/blob/v0.0.56/src/commands/profile/rm.ts)_
_See code: [src/commands/profile/rm.ts](https://github.com/livecycle/preevy/blob/v0.0.58/src/commands/profile/rm.ts)_

## `preevy profile use NAME`

Expand All @@ -401,4 +414,4 @@ DESCRIPTION
Set current profile
```

_See code: [src/commands/profile/use.ts](https://github.com/livecycle/preevy/blob/v0.0.56/src/commands/profile/use.ts)_
_See code: [src/commands/profile/use.ts](https://github.com/livecycle/preevy/blob/v0.0.58/src/commands/profile/use.ts)_
4 changes: 2 additions & 2 deletions packages/cli/docs/purge.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ FLAGS
<options: lightsail|gce|azure|kube-pod>
--all Remove all resources types (snapshots, keypairs, and other resource types)
--force Do not ask for confirmation
--profile=<value> Run in a specific profile context
--profile=<value> Run in a specific profile context (either an alias or a URL)
--type=<value>... [default: machine] Resource type(s) to delete
--wait Wait for resource deletion to complete. If false (the default), the deletion will be started
but not waited for
Expand Down Expand Up @@ -58,4 +58,4 @@ DESCRIPTION
Delete all cloud provider machines, and potentially other resources
```

_See code: [src/commands/purge.ts](https://github.com/livecycle/preevy/blob/v0.0.56/src/commands/purge.ts)_
_See code: [src/commands/purge.ts](https://github.com/livecycle/preevy/blob/v0.0.58/src/commands/purge.ts)_
2 changes: 1 addition & 1 deletion packages/cli/docs/ssh.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ ARGUMENTS
FLAGS
-d, --driver=<option> Machine driver to use
<options: lightsail|gce|azure|kube-pod>
--profile=<value> Run in a specific profile context
--profile=<value> Run in a specific profile context (either an alias or a URL)
GLOBAL FLAGS
-D, --debug Enable debug logging
Expand Down
Loading

0 comments on commit 89f0459

Please sign in to comment.