Prettier over the repository (Closes #165)
npm run format -- . with .prettierrc.json, and nothing else. Test fixtures (fixtures/, *.fixtures.json, *_fixtures.json) stay byte for byte as captured, and guides/self-hosted-runners.mdx is left out because Prettier's MDX printer rewrites it on every run; both are now in .prettierignore, so npm run format:check -- . passes.
- G1t-Session:
- ses_01m57b7r6jew3aqgyfmhw6yah6
1 file+15−150/1 viewed
| 35 | 35 | ||
| 36 | 36 | ## Inputs | |
| 37 | 37 | ||
| 38 | − | | Input | Default | | | |
| 39 | − | | --- | --- | --- | | |
| 40 | − | | `project` | The repository's one project with Deployments on | The project's slug. Needed when the repository has several. | | |
| 41 | − | | `root-dir` | The project's setting | Where the project is in the checkout. | | |
| 42 | − | | `build-command` | The project's setting, else what the build finds | What builds it. | | |
| 43 | − | | `output-dir` | The project's setting, else the folder the framework writes, else the first of `dist`, `build`, `out`, `public`, `_site`, `.output/public` | The folder a static build writes. | | |
| 44 | − | | `build-as` | The project's setting, else `auto` | What it is built as: `auto`, `static`, `workers` or `docker`. A container is built with the `docker` on the job's `PATH`. | | |
| 45 | − | | `dockerfile` | The project's setting, else `Dockerfile` or `Containerfile` | The Dockerfile a container is built from, relative to the project. | | |
| 46 | − | | `sha` | The run's commit | The commit this is a build of, for its `g1t / deploy` check. | | |
| 47 | − | | `token` | `${{ github.token }}` | The job's own token. It needs `deployments: write`; any other token is refused. | | |
| 38 | + | | Input | Default | | | |
| 39 | + | | --------------- | ------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------- | | |
| 40 | + | | `project` | The repository's one project with Deployments on | The project's slug. Needed when the repository has several. | | |
| 41 | + | | `root-dir` | The project's setting | Where the project is in the checkout. | | |
| 42 | + | | `build-command` | The project's setting, else what the build finds | What builds it. | | |
| 43 | + | | `output-dir` | The project's setting, else the folder the framework writes, else the first of `dist`, `build`, `out`, `public`, `_site`, `.output/public` | The folder a static build writes. | | |
| 44 | + | | `build-as` | The project's setting, else `auto` | What it is built as: `auto`, `static`, `workers` or `docker`. A container is built with the `docker` on the job's `PATH`. | | |
| 45 | + | | `dockerfile` | The project's setting, else `Dockerfile` or `Containerfile` | The Dockerfile a container is built from, relative to the project. | | |
| 46 | + | | `sha` | The run's commit | The commit this is a build of, for its `g1t / deploy` check. | | |
| 47 | + | | `token` | `${{ github.token }}` | The job's own token. It needs `deployments: write`; any other token is refused. | | |
| 48 | 48 | ||
| 49 | 49 | ## Outputs | |
| 50 | 50 | ||
| 51 | − | | Output | | | |
| 52 | − | | --- | --- | | |
| 53 | − | | `url` | Where the app is served. | | |
| 54 | − | | `deployment-id` | The build's id, `dpl_…`. | | |
| 55 | − | | `kind` | `production` or `preview`. | | |
| 51 | + | | Output | | | |
| 52 | + | | --------------- | -------------------------- | | |
| 53 | + | | `url` | Where the app is served. | | |
| 54 | + | | `deployment-id` | The build's id, `dpl_…`. | | |
| 55 | + | | `kind` | `production` or `preview`. | | |
| 56 | 56 | ||
| 57 | 57 | ## How it works | |
| 58 | 58 |
Comments
Sign in to comment.