-
#12083
9263e96
Thanks @Princesseuh! - Reworks the experience of creating a new Astro project using thecreate astro
CLI command.- Updates the list of templates to include Starlight and combines the "minimal" and "basics" templates into a new, refreshed "Basics" template to serve as the single, minimal Astro project starter.
- Removes the TypeScript question. Astro is TypeScript-only, so this question was often misleading. The "Strict" preset is now the default, but it can still be changed manually in
tsconfig.json
. astro check
is no longer automatically added to the build script.- Added a new
--add
flag to install additional integrations after creating a project. For example,pnpm create astro --add react
will create a new Astro project and install the React integration.
-
#12083
9263e96
Thanks @Princesseuh! - Reworks the experience of creating a new Astro project using thecreate astro
CLI command.- Updates the list of templates to include Starlight and combines the "minimal" and "basics" templates into a new, refreshed "Basics" template to serve as the single, minimal Astro project starter.
- Removes the TypeScript question. Astro is TypeScript-only, so this question was often misleading. The "Strict" preset is now the default, but it can still be changed manually in
tsconfig.json
. astro check
is no longer automatically added to the build script.- Added a new
--add
flag to install additional integrations after creating a project. For example,pnpm create astro --add react
will create a new Astro project and install the React integration.
-
#12154
9988dd6
Thanks @bluwy! - Improves default template download speed by downloading from a branch containing the template only -
#12186
49c4f64
Thanks @Terfno! - Ensures new line at the end of the generatedpackage.json
andtsconfig.json
files
- #12143
2385d58
Thanks @bluwy! - Uses@bluwy/giget-core
instead ofgiget
for smaller installation size when downloading the CLI
- #11924
7d70ba3
Thanks @florian-lefebvre! - Updates the default Astro config with// @ts-check
if the Typescript preset isstrict
orstrictest
-
#10689
683d51a5eecafbbfbfed3910a3f1fbf0b3531b99
Thanks @ematipico! - Deprecate support for versions of Node.js older thanv18.17.1
for Node.js 18, older thanv20.0.3
for Node.js 20, and the complete Node.js v19 release line.This change is in line with Astro's Node.js support policy.
- #10487
2330f22d6cf8cd150c19ec40359aed4d6b43ddec
Thanks @satyarohith! - Fixes a case where a promise wasn't awaited, causing an issue in Deno.
- #10255
2aec2cdc21f48f9b4f1dd82e2fd16fa3d653ccc5
Thanks @natemoo-re! - Fixes an issue where TypeScript and@astrojs/check
versions would occassionally print asundefined
.
- #10117
51b6ff7403c1223b1c399e88373075972c82c24c
Thanks @hippotastic! - Fixes an issue wherecreate astro
,astro add
and@astrojs/upgrade
would fail due to unexpected package manager CLI output.
- #9813
fecba30a1abb7ca65dfb8f506dde77117fa447d1
Thanks @florian-lefebvre! - Fixes@astrojs/check
andtypescript
addition topackage.json
dependencies when the user has decided not to auto-install dependencies
- #9476
651f45b4010ad9b8d9f61fdc748618e220fe5375
Thanks @ElianCodes! - Improves seasonal message handling by automatically detecting the local date
- #9470
607303be198931825dac9f3bc97867b4886feaf3
Thanks @onsclom! - Improves thecreate astro
CLI experience by asking all the questions upfront, then creating your new Astro project based on your responses.
- #9105
6201bbe96
Thanks @FredKSchott! - Stop clearing the console on start
- #9105
6201bbe96
Thanks @FredKSchott! - Stop clearing the console on start
- #9048
1e97708cd
Thanks @skirianov! - Fixes an issue where a successful "Dependencies installed" message is displayed even when installing dependencies fails.
- #8959
6169b6e56
Thanks @ElianCodes! - Undo the halloween theme and restorefancy
behaviour
- #8911
b236d88ad
Thanks @natemoo-re! - Ensure an existing template'spackage.json
scripts
are respected when modifyingbuild
.
- #8853
ce807a2bf
Thanks @rayriffy! - Automatically installs the required dependencies to run the astro check command when the user indicates they plan to write TypeScript.
- #8841
f2dd895d7
Thanks @Genteure! - No longer attempts to delete the directory after a template download fails if the path is.
,./
or starts with../
.
- #8846
3baab3d93
Thanks @ElianCodes! - feat: make Houston wear scary hats and say new things for spooky season
- #8634
b64dd45c0
Thanks @TheOtterlord! - Fix--yes
behaviour to prevent it overriding--template
- #8551
1d5b3f079
Thanks @jacobthesheep! - Adds--yes
anddry-run
flags to project-name and theyes
flag to template.
- #8456
ed952b4ce
Thanks @natemoo-re! - Improve startup performance by removing dependencies, lazily initializing async contextual values
-
#8427
b81ff8fce
Thanks @aswind7! - trim project name of the user input -
#8306
d2f2a11cd
Thanks @jacobthesheep! - Support detecting Bun when logging messages with package manager information.
- #8292
4e88ffd81
Thanks @Princesseuh! - Correctly remove new.codesandbox
folder when copying template
-
#8188
d0679a666
Thanks @ematipico! - Remove support for Node 16. The lowest supported version by Astro and all integrations is now v18.14.1. As a reminder, Node 16 will be deprecated on the 11th September 2023. -
#8179
6011d52d3
Thanks @matthewp! - Astro 3.0 Release Candidate
-
#7944
dff0f0f8d
Thanks @colinhacks! - Update 'dev' command for Bun users -
#8102
e6e1de4f0
Thanks @natemoo-re! - Verify internet connection and that--template
exists before continuing
1eae2e3f7
Thanks @Princesseuh! - Remove support for Node 16. The lowest supported version by Astro and all integrations is now v18.14.1. As a reminder, Node 16 will be deprecated on the 11th September 2023.
-
#7944
dff0f0f8d
Thanks @colinhacks! - Update 'dev' command for Bun users -
#8102
e6e1de4f0
Thanks @natemoo-re! - Verify internet connection and that--template
exists before continuing
- #8089
04755e846
Thanks @natemoo-re! - Fix install step to avoid uncaught errors
- #8077
44cf30a25
Thanks @natemoo-re! - Reduce dependency installation size, swapexeca
for lightnode:child_process
wrapper
- #8028
8292c4131
Thanks @natemoo-re! - Improve yarn berry support
- #7939
89cd4b877
Thanks @natemoo-re! - Handle error state for version number
- #7580
2ca5bdde2
Thanks @sankethchebbi! - Update dependency installation grammar
-
#7527
9e2426f75
Thanks @natemoo-re! - Default registry logic to fallback to NPM if registry command fails (sorry, Bun users!) -
#7539
1170877b5
Thanks @jc1144096387! - Update registry logic, improving edge cases (http support, redirects, registries ending with '/')
- #7435
3f9f5c117
Thanks @bholmesdev! - Fix registry failures using unexpected package managers when running create-astro
- #7326
1430ffb47
Thanks @calebdwilliams! - Ensure create-astro respects package manager registry configuration
- #7277
229affca4
Thanks @natemoo-re! - Addstarlight
template alias
- #7086
c5f1275e9
Thanks @MoustaphaDev! - Fix create astro regression
- #7052
8c14bffbd
Thanks @ematipico! - Don't exit if dependencies fail to install
- #6682
335602344
Thanks @andremralves! - add validation for non-printable characters
- #6677
4a3262060
Thanks @bholmesdev! - Fix: Log an error when passing a--template
that does not exist
- #6213
afbbc4d5b
Thanks @Princesseuh! - Updated compilation settings to disable downlevelling for Node 14
- #6375
754c5ca9a
Thanks @natemoo-re! - Respect originalpackage.json
indentation
- #6352
c87c16cfa
Thanks @SerekKiri! - Add missing flags to help command
-
#6314
7f61e8fe3
Thanks @MilesPernicious! - Prompt for git initialization last, so all configurations can get added to the initial commit -
#6294
d0dbee872
Thanks @liruifengv! -create-astro
help info add--typescript
flag
- #6278
0f5d122cd
Thanks @Princesseuh! - Revert to giget 1.0.0 until upstream issue is fixed
- #6266
066b4b4ef
Thanks @natemoo-re! - Improve error handling during tasks that display a spinner
- #6082
8d2187d8b
Thanks @natemoo-re! - Redesignedcreate-astro
experience
- #5953
5c64324c0
Thanks @ZermattChris! - Check for a pre-existing .git directory and if found, skip trying to create a new one.
- #5958
d0d7f6118
Thanks @natemoo-re! - Fix typescript prompt handling
- #5782
1f92d64ea
Thanks @Princesseuh! - Remove support for Node 14. Minimum supported Node version is now >=16.12.0
-
#5898
d8919b1a2
Thanks @TheOtterlord! - Support headless runs with-y
/--yes
-
#5920
f27bb3d79
Thanks @delucis! - Improve error message for third-party template 404s
See changes in 2.0.0-beta.1
See changes in 2.0.0-beta.0
- #5782
1f92d64ea
Thanks @Princesseuh! - Remove support for Node 14. Minimum supported Node version is now >=16.12.0
-
#5579
2c2c65297
Thanks @yuhang-dong! - Upgrade giget to support env proxy config -
#5616
61302ab7a
Thanks @natemoo-re! - Skip Houston on Windows until we can debug the prompt issue
- #5404
505abfd64
Thanks @liruifengv! - fix error when don't have template input
- #5319
b211eadef
Thanks @natemoo-re! - Fix bug withsetRawMode
. Respect--skip-houston
in all cases.
-
#5240
d9be7e36b
Thanks @natemoo-re! - Improve error messages whencreate-astro
fails -
#5226
641b6d7d5
Thanks @natemoo-re! - Allow Windows users to pass--fancy
to enable full unicode support
-
#5088
040837628
Thanks @natemoo-re! - Introducing your new automated assistant: Houston! 🎉╭─────╮ Houston: │ ◠ ◡ ◠ Initiating launch sequence... right... now! ╰─────╯
Updates template and TypeScript prompts for clarity and friendliness.
Migrates template copying from
degit
(unmaintained) togiget
for stability.
-
#4810
7481ffda0
Thanks @mrienstra! - Always write chosen config totsconfig.json
.- Before: Only when
strict
&strictest
was selected - After: Also when
base
is selected (via "Relaxed" or "I prefer not to use TypeScript")
- Before: Only when
- #4439
77ce6be30
Thanks @Princesseuh! - Add tsconfig templates for users to extend from
- #4439
77ce6be30
Thanks @Princesseuh! - Add tsconfig templates for users to extend from
-
04ad44563
- > Astro v1.0 is out! Read the official announcement post.No breaking changes. This package is now officially stable and compatible with
[email protected]
!
- #4183
77c018e51
Thanks @Princesseuh! - Fix relaxed and default TypeScript settings not working
- #4179
d344f9e3e
Thanks @Princesseuh! - Add a step to configure how strict TypeScript should be
- #4075
cc10a5c8e
Thanks @Princesseuh! - Added better error handling when cancelling operations, providing bad templates and when there's a degit cache issue
- #3971
e6e216061
Thanks @tony-sull! - Fixes support for using templates from any GitHub repository
- #3914
b48767985
Thanks @ran-dall! - Rollback supportednode@16
version. Minimum versions are now[email protected]
or[email protected]
.
- #3871
1cc5b7890
Thanks @natemoo-re! - Update supportednode
versions. Minimum versions are now[email protected]
or[email protected]
.
- #3831
4fb08502
Thanks @FredKSchott! - Small wording updates
- #3756
507cd5c8
Thanks @bholmesdev! - Chore: remove create-astro install step test
- #3391
cf8015ea
Thanks @natemoo-re! - Fix #3309 default logger locale behavior.
- #3313
1a5335ed
Thanks @bholmesdev! - Update "next steps" with more informative text on each CLI command. Oh, and gradients. A lot more gradients.
- #3227
c8f5fa35
Thanks @bholmesdev! - Add "initialize git repository" step to simplify our next steps suggestion. We now give you a one-liner to easily paste in your terminal and start the dev server!
- #3223
b7cd6958
Thanks @bholmesdev! - Replace the component framework selector with a new "run astro add" option. This unlocks integrations beyond components during your create-astro setup, including TailwindCSS and Partytown. This also replaces our previous "starter" template with a simplified "Just the basics" option.
- #3212
00fc1326
Thanks @bholmesdev! - Simplify logging during welcome message and directory selection
- #3190
38e5e9e9
Thanks @bholmesdev! - Feat: add option to install dependencies during setup. This respects the package manager used to run create-astro (ex. "yarn create astro" vs "pnpm create astro@latest").
- #3168
7c49194c
Thanks @bholmesdev! - Add prompt to choose a directory, now defaulting to a separate "./my-astro-site" instead of "." (current directory)
- #2843
1fdb63b5
Thanks @JuanM04! - Automatically add integrationpeerDependencies
to scaffoldedpackage.json
files
- #2843
1fdb63b5
Thanks @JuanM04! - Automatically add integrationpeerDependencies
to scaffoldedpackage.json
files
- #2429
fda857eb
Thanks @Mikkel-T! - Added an option to create-astro to use verbose logging which should help debug degit issues
- #2202
45cea6ae
Thanks @jonathantneal! - Officially drop support for Node v12. The minimum supported version is now Node v14.15+,
- #2150
d5ebd9d1
Thanks @FredKSchott! - Fix create-astro export map entry
- #2124
c0f29bcf
Thanks @leosvelperez! - Parse --renderers flag correctly when passed to the create-astro cli
- 3e1bdb1a: Add a helpful message for the "could not find commit hash for ..." error
- 6c66d483: Fix issue with v7.x+ versions of npm init, which changed default flag handling
- 6c66d483: Fix issue with v7.x+ versions of npm init, which changed default flag handling
- d5fdeefe: Changes create-astro to pull examples from the latest branch
- 025f5e3f: Fix to revert change pointing create-astro at the latest branch
- 28f00566: Updates create-astro to use the latest branch
- 0eeb2534: change rm to unlink for node 12 compatibility
- 11a6f884: Added a check to see if the renderers array is empty and only show the message about using the templates default renderers if it isn't
- 24dce41c: Adds a new template 'minimal' which does not include a framework
- cf4c97cf: forced degit template extraction in case of non empty installation directory
- 6c52c92: Add warning when encountering 'zlib: unexpected end of file' error
- a7e6666: compile javascript to target Node v12.x
- bd18e14: Add support for Solid
- d45431d: create-astro does not fail when removing subdirectories
- bd18e14: Add support for Solid
- a7e6666: compile javascript to target Node v12.x
- d45431d: create-astro does not fail when removing subdirectories
- 36e104b: Use new client: prefix for component examples
- 5d5d67c: Update
create-astro
to handle framework-specific logic based on user preference
-
d8ceff5: Allows using an external repo as a template
You can do this with the
--template
flag:npm init astro my-shopify --template cassidoo/shopify-react-astro
- b0e41ea: fix small output bugs
- f9f2da4: Add repository key to package.json for create-astro
- ab2972b: Update package.json engines for esm support
- d6a7349: fix issue with empty prompt
- 6bca7c8: Redesigned create-astro internals
- 6bca7c8: New UI