Skip to content

Commit

Permalink
docs: Expounding upon changeset
Browse files Browse the repository at this point in the history
  • Loading branch information
rschristian committed Jul 25, 2022
1 parent 7f85c2d commit 0791118
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .changeset/tiny-garlics-argue.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,12 @@
'create-preact-cli': major
---

Extracts project creation functionality from `preact-cli` into a separate package (name tbd)
Extracts project creation functionality from `preact-cli` into `create-preact-cli`

Setting up new `preact-cli` projects with `npx` is slow, as all dependencies of `preact-cli` would need to be installed, even though only a handful are used for project initialization. On the other hand, suggesting global installs is less than attractive due to NPM's poor default install location (requires `sudo`) and this can get out of sync over time.

By extracting project initialization into its own package, we can provide much, much faster project setup times.

To setup a new project, users will use `npm init preact-cli ...` or `yarn create preact-cli ...`.

Additionally, the `--yarn` flag has been removed in favour of using the yarn initializer (`yarn create`).

0 comments on commit 0791118

Please sign in to comment.