From dbd2f5076b4a7d3091deccff77dd545292ee7d76 Mon Sep 17 00:00:00 2001 From: Matthew Phillips Date: Mon, 11 Oct 2021 08:12:15 -0400 Subject: Adds the astro check command (#1410) * Adds the `astro check` command. This adds `astro check`, which runs type checking (and general error checking) on Astro projects. * print the number of errors found * Adds a changeset * Add cli docs * Upgrade the language server version * Prevent linting the console.logs --- docs/src/pages/reference/cli-reference.md | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'docs/src/pages/reference/cli-reference.md') diff --git a/docs/src/pages/reference/cli-reference.md b/docs/src/pages/reference/cli-reference.md index 3c66b2368..26b165f48 100644 --- a/docs/src/pages/reference/cli-reference.md +++ b/docs/src/pages/reference/cli-reference.md @@ -25,6 +25,12 @@ Start a local static file server to serve your built `dist/` directory. Useful f This command is meant for local testing only, and is not designed to be run in production. For help with production hosting, check out our guide on [Deploying an Astro Website](/guides/deploy). +### `astro check` + +Runs diagnostics (such as type-checking) against your project and reports errors to the console. If any errors are found the process will exit with a code of __1__. + +This command is intended to be used in CI workflows. + ## Global Flags ### `--config path` -- cgit v1.2.3