diff options
author | 2023-08-30 04:38:28 -0700 | |
---|---|---|
committer | 2023-08-30 13:38:28 +0200 | |
commit | 5598feb71864f814d0a34bb6bf9f6ecdff081497 (patch) | |
tree | 15cfefaaeb8b7f346eb96e05a5e9e086d7bd262b /.changeset/many-pears-explode.md | |
parent | e33d951af178ce0b50a41799d3ce76d107c961db (diff) | |
download | astro-d67d89773938d4954e86a825f685c0e2ba98a75b.tar.gz astro-d67d89773938d4954e86a825f685c0e2ba98a75b.tar.zst astro-d67d89773938d4954e86a825f685c0e2ba98a75b.zip |
[ci] release (#8279)create-astro@4.0.0astro@3.0.0@astrojs/vue@3.0.0@astrojs/vercel@4.0.0@astrojs/underscore-redirects@0.3.0@astrojs/telemetry@3.0.0@astrojs/tailwind@5.0.0@astrojs/svelte@4.0.0@astrojs/solid-js@3.0.0@astrojs/sitemap@3.0.0@astrojs/rss@3.0.0@astrojs/react@3.0.0@astrojs/prism@3.0.0@astrojs/prefetch@0.4.0@astrojs/preact@3.0.0@astrojs/partytown@2.0.0@astrojs/node@6.0.0@astrojs/netlify@3.0.0@astrojs/mdx@1.0.0@astrojs/markdown-remark@3.0.0@astrojs/markdoc@0.5.0@astrojs/lit@3.0.0@astrojs/internal-helpers@0.2.0@astrojs/deno@5.0.0@astrojs/cloudflare@7.0.0@astrojs/alpinejs@0.3.0
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Diffstat (limited to '.changeset/many-pears-explode.md')
-rw-r--r-- | .changeset/many-pears-explode.md | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/.changeset/many-pears-explode.md b/.changeset/many-pears-explode.md deleted file mode 100644 index 1e2a30edc..000000000 --- a/.changeset/many-pears-explode.md +++ /dev/null @@ -1,35 +0,0 @@ ---- -'astro': major ---- - -Export experimental `dev`, `build`, `preview`, and `sync` APIs from `astro`. These APIs allow you to run Astro's commands programmatically, and replaces the previous entry point that runs the Astro CLI. - -While these APIs are experimental, the inline config parameter is relatively stable without foreseeable changes. However, the returned results of these APIs are more likely to change in the future. - -```ts -import { dev, build, preview, sync, type AstroInlineConfig } from 'astro'; - -// Inline Astro config object. -// Provide a path to a configuration file to load or set options directly inline. -const inlineConfig: AstroInlineConfig = { - // Inline-specific options... - configFile: './astro.config.mjs', - logLevel: 'info', - // Standard Astro config options... - site: 'https://example.com', -}; - -// Start the Astro dev server -const devServer = await dev(inlineConfig); -await devServer.stop(); - -// Build your Astro project -await build(inlineConfig); - -// Preview your built project -const previewServer = await preview(inlineConfig); -await previewServer.stop(); - -// Generate types for your Astro project -await sync(inlineConfig); -``` |