Skip to content

Commit c77cf93

Browse files
authored
Merge branch 'main' into add-ons
2 parents 7bbac65 + 71b424c commit c77cf93

File tree

17 files changed

+145
-145
lines changed

17 files changed

+145
-145
lines changed

.changeset/dry-cougars-sneeze.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'sv': minor
3+
---
4+
5+
chore: remove routify

.changeset/wise-hotels-cry.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'sv': minor
3+
---
4+
5+
feat: rename `--check-types <typescript|checkjs|none>` to `--types <ts|js>` with a `--no-types` flag

.github/workflows/release.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,4 +44,9 @@ jobs:
4444
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4545
NPM_CONFIG_PROVENANCE: true
4646
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
47+
48+
- name: Update Template Repo
49+
if: steps.changesets.outputs.published == 'true'
50+
run: pnpm -F @sveltejs/create update-template-repo
51+
env:
4752
UPDATE_TEMPLATE_SSH_KEY: ${{ secrets.UPDATE_TEMPLATE_SSH_KEY }}
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Update Template Repo (manual)
2+
3+
on:
4+
workflow_dispatch:
5+
6+
permissions: {}
7+
jobs:
8+
release:
9+
# prevents this action from running on forks
10+
if: github.repository == 'sveltejs/cli'
11+
name: Update template
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Checkout Repo
15+
uses: actions/checkout@v4
16+
- uses: pnpm/action-setup@v4
17+
- name: Setup Node.js
18+
uses: actions/setup-node@v4
19+
with:
20+
node-version: 18.x
21+
cache: pnpm
22+
23+
- name: Install
24+
run: pnpm install --frozen-lockfile
25+
26+
- name: Build
27+
run: pnpm build
28+
29+
- name: Run template update script
30+
run: pnpm -F @sveltejs/create update-template-repo
31+
env:
32+
UPDATE_TEMPLATE_SSH_KEY: ${{ secrets.UPDATE_TEMPLATE_SSH_KEY }}

documentation/docs/20-commands/10-sv-create.md

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,6 @@ npx sv create [options] [path]
1212

1313
## Options
1414

15-
<!-- TODO this flag should probably just be '--types', and the options should be 'ts' or 'jsdoc' -->
16-
17-
### `--check-types <option>`
18-
19-
Whether and how to add typechecking to the project:
20-
21-
- `typescript` — default to `.ts` files and use `lang="ts"` for `.svelte` components
22-
- `checkjs` — use [JSDoc syntax](https://www.typescriptlang.org/docs/handbook/jsdoc-supported-types.html) for types
23-
- `none` — no typechecking. Not recommended!
24-
2515
### `--template <name>`
2616

2717
Which project template to use:
@@ -30,6 +20,17 @@ Which project template to use:
3020
- `demo` — showcase app with a word guessing game that works without JavaScript
3121
- `library` — template for a Svelte library, set up with `svelte-package`
3222

23+
### `--types <option>`
24+
25+
Whether and how to add typechecking to the project:
26+
27+
- `ts` — default to `.ts` files and use `lang="ts"` for `.svelte` components
28+
- `jsdoc` — use [JSDoc syntax](https://www.typescriptlang.org/docs/handbook/jsdoc-supported-types.html) for types
29+
30+
### `--no-types`
31+
32+
Prevent typechecking from being added. Not recommended!
33+
3334
### `--no-add-ons`
3435

3536
Run the command without the interactive add-ons prompt

documentation/docs/20-commands/20-sv-add.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ You can select multiple space-separated add-ons from [the list below](#Official-
3333
- `paraglide`
3434
- `playwright`
3535
- `prettier`
36-
- `routify`
3736
- `storybook`
3837
- `tailwindcss`
3938
- `vitest`

packages/adders/_config/official.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import mdsvex from '../mdsvex/index.ts';
77
import paraglide from '../paraglide/index.ts';
88
import playwright from '../playwright/index.ts';
99
import prettier from '../prettier/index.ts';
10-
import routify from '../routify/index.ts';
1110
import storybook from '../storybook/index.ts';
1211
import tailwindcss from '../tailwindcss/index.ts';
1312
import vitest from '../vitest/index.ts';
@@ -24,8 +23,7 @@ export const officialAdders = [
2423
lucia,
2524
mdsvex,
2625
paraglide,
27-
storybook,
28-
routify
26+
storybook
2927
];
3028

3129
export function getAdderDetails(id: string): AdderWithoutExplicitArgs {

packages/adders/routify/index.ts

Lines changed: 0 additions & 85 deletions
This file was deleted.

packages/adders/routify/logo.svg

Lines changed: 0 additions & 1 deletion
This file was deleted.

packages/adders/routify/tests.ts

Lines changed: 0 additions & 22 deletions
This file was deleted.

0 commit comments

Comments
 (0)