my-cool-addon 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md ADDED
@@ -0,0 +1,16 @@
1
+ # [sv](https://svelte.dev/docs/cli/overview) community add-on: [@supacool/sv](https://github.com/@supacool/sv)
2
+
3
+ > [!IMPORTANT]
4
+ > Svelte maintainers have not reviewed community add-ons for malicious code. Use at your discretion
5
+
6
+ ## Usage
7
+
8
+ To install the add-on, run:
9
+
10
+ ```shell
11
+ npx sv add @supacool
12
+ ```
13
+
14
+ ## What you get [TO BE FILLED...]
15
+
16
+ - A log to the console saying "Well done! You are now supacool 🎉"
package/package.json ADDED
@@ -0,0 +1,34 @@
1
+ {
2
+ "name": "my-cool-addon",
3
+ "description": "sv add-on for my-cool-addon",
4
+ "version": "0.0.2",
5
+ "type": "module",
6
+ "license": "MIT",
7
+ "scripts": {
8
+ "demo-create": "sv create demo --types ts --template minimal --no-add-ons --no-install",
9
+ "demo-add": "sv add file:../ --cwd demo --no-git-check --no-install",
10
+ "demo-add:ci": "sv add file:../=who:you --cwd demo --no-git-check --no-download-check --no-install",
11
+ "test": "vitest run"
12
+ },
13
+ "files": [
14
+ "src",
15
+ "!src/**/*.test.*"
16
+ ],
17
+ "exports": {
18
+ "sv": {
19
+ "default": "./src/sv/index.js"
20
+ }
21
+ },
22
+ "dependencies": {
23
+ "sv": "https://pkg.pr.new/sveltejs/cli/sv@7225b5a"
24
+ },
25
+ "devDependencies": {
26
+ "@playwright/test": "^1.56.1",
27
+ "vitest": "4.0.7"
28
+ },
29
+ "keywords": [],
30
+ "publishConfig": {
31
+ "directory": "dist",
32
+ "access": "public"
33
+ }
34
+ }
@@ -0,0 +1,13 @@
1
+ import { defineAddon, color } from "sv/core";
2
+
3
+ export default defineAddon({
4
+ id: "my-cool-addon",
5
+ options: {},
6
+ run() {},
7
+ nextSteps() {
8
+ return [
9
+ "Well done! You are now " + color.addon("cool") + " 🎉",
10
+ color.optional("// Happy coding!"),
11
+ ];
12
+ },
13
+ });