Skip to content

Commit 6662269

Browse files
committed
move to template
1 parent 0b25394 commit 6662269

File tree

31 files changed

+323
-362
lines changed

31 files changed

+323
-362
lines changed

.changeset/config.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,5 @@
66
"linked": [],
77
"access": "public",
88
"baseBranch": "main",
9-
"updateInternalDependencies": "patch",
10-
"ignore": ["community-addon-template"]
9+
"updateInternalDependencies": "patch"
1110
}

community-addon-template/.gitignore

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

community-addon-template/README.md

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

community-addon-template/package.json

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

community-addon-template/src/index.js

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

community-addon-template/tests/custom-addon.test.ts

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

community-addon-template/tests/setup/suite.ts

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

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ Which project template to use:
2929
- `minimal` — barebones scaffolding for your new app
3030
- `demo` — showcase app with a word guessing game that works without JavaScript
3131
- `library` — template for a Svelte library, set up with `svelte-package`
32+
- `addon` — template for a community add-on, ready to be tested & published
3233

3334
### `--types <option>`
3435

eslint.config.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,7 @@ export default [
3131
'packages/sv/lib/create/scripts/**/*',
3232
'packages/sv/lib/create/templates/**/*',
3333
'packages/sv/lib/cli/tests/snapshots/*',
34-
'packages/sv/lib/**/tests/**/{output,input}.ts',
35-
'community-addon-template/tests/*'
34+
'packages/sv/lib/**/tests/**/{output,input}.ts'
3635
]
3736
}
3837
];

packages/sv/lib/cli/add/index.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,8 @@ export const add = new Command('add')
6262
.option('--no-git-check', 'even if some files are dirty, no prompt will be shown')
6363
.option('--no-install', 'skip installing dependencies')
6464
.addOption(installOption)
65-
//.option('--community [add-on...]', 'community addons to install')
65+
// TODO JYC: remove the flag
66+
.option('--community [add-on...]', 'community addons to install')
6667
.configureHelp({
6768
...common.helpConfig,
6869
formatHelp(cmd, helper) {
@@ -580,7 +581,7 @@ export async function runAddonsApply({
580581
workspace,
581582
addonSetupResults,
582583
addons: addonMap,
583-
options: answersOfficial
584+
options: { ...answersOfficial, ...answersCommunity }
584585
});
585586

586587
const addonSuccess: string[] = [];

0 commit comments

Comments
 (0)