sk-clib 1.18.3 → 1.18.9
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 +14 -30
- package/package.json +41 -45
- package/dist/index.d.ts +0 -2
- package/dist/index.js +0 -2
- package/dist/styles.css +0 -1143
- package/dist/theme/index.d.ts +0 -4
- package/dist/theme/index.js +0 -6
- package/dist/theme/logic.d.ts +0 -4
- package/dist/theme/logic.js +0 -93
- package/dist/theme/stores.svelte.d.ts +0 -24
- package/dist/theme/stores.svelte.js +0 -33
- package/dist/theme/theme-init/components/theme-init.svelte +0 -103
- package/dist/theme/theme-init/components/theme-init.svelte.d.ts +0 -13
- package/dist/theme/theme-init/index.d.ts +0 -2
- package/dist/theme/theme-init/index.js +0 -1
- package/dist/theme/theme-init/types.d.ts +0 -15
- package/dist/theme/theme-init/types.js +0 -1
- package/dist/theme/types.d.ts +0 -2
- package/dist/theme/types.js +0 -1
- package/dist/ui/button/components/button.svelte +0 -33
- package/dist/ui/button/components/button.svelte.d.ts +0 -11
- package/dist/ui/button/index.d.ts +0 -2
- package/dist/ui/button/index.js +0 -1
- package/dist/ui/button/types.d.ts +0 -5
- package/dist/ui/button/types.js +0 -1
- package/dist/ui/flex/components/flex.svelte +0 -28
- package/dist/ui/flex/components/flex.svelte.d.ts +0 -10
- package/dist/ui/flex/index.d.ts +0 -2
- package/dist/ui/flex/index.js +0 -1
- package/dist/ui/flex/types.d.ts +0 -2
- package/dist/ui/flex/types.js +0 -1
- package/dist/ui/frame/components/frame.svelte +0 -133
- package/dist/ui/frame/components/frame.svelte.d.ts +0 -22
- package/dist/ui/frame/index.d.ts +0 -2
- package/dist/ui/frame/index.js +0 -1
- package/dist/ui/frame/types.d.ts +0 -33
- package/dist/ui/frame/types.js +0 -1
- package/dist/ui/header/components/header.svelte +0 -147
- package/dist/ui/header/components/header.svelte.d.ts +0 -42
- package/dist/ui/header/index.d.ts +0 -2
- package/dist/ui/header/index.js +0 -1
- package/dist/ui/header/types.d.ts +0 -31
- package/dist/ui/header/types.js +0 -1
- package/dist/ui/index.d.ts +0 -14
- package/dist/ui/index.js +0 -10
- package/dist/ui/input/components/input.svelte +0 -74
- package/dist/ui/input/components/input.svelte.d.ts +0 -10
- package/dist/ui/input/index.d.ts +0 -2
- package/dist/ui/input/index.js +0 -1
- package/dist/ui/input/types.d.ts +0 -6
- package/dist/ui/input/types.js +0 -1
- package/dist/ui/spacer/components/spacer.svelte +0 -50
- package/dist/ui/spacer/components/spacer.svelte.d.ts +0 -17
- package/dist/ui/spacer/index.d.ts +0 -2
- package/dist/ui/spacer/index.js +0 -1
- package/dist/ui/spacer/types.d.ts +0 -7
- package/dist/ui/spacer/types.js +0 -1
- package/dist/ui/text/components/text.svelte +0 -90
- package/dist/ui/text/components/text.svelte.d.ts +0 -5
- package/dist/ui/text/index.d.ts +0 -2
- package/dist/ui/text/index.js +0 -1
- package/dist/ui/text/types.d.ts +0 -34
- package/dist/ui/text/types.js +0 -25
- package/dist/utils.d.ts +0 -81
- package/dist/utils.js +0 -141
package/README.md
CHANGED
|
@@ -1,58 +1,42 @@
|
|
|
1
|
-
#
|
|
1
|
+
# sv
|
|
2
2
|
|
|
3
|
-
Everything you need to build a Svelte
|
|
4
|
-
|
|
5
|
-
Read more about creating a library [in the docs](https://svelte.dev/docs/kit/packaging).
|
|
3
|
+
Everything you need to build a Svelte project, powered by [`sv`](https://github.com/sveltejs/cli).
|
|
6
4
|
|
|
7
5
|
## Creating a project
|
|
8
6
|
|
|
9
7
|
If you're seeing this, you've probably already done this step. Congrats!
|
|
10
8
|
|
|
11
|
-
```
|
|
12
|
-
# create a new project
|
|
13
|
-
npx sv create
|
|
14
|
-
|
|
15
|
-
# create a new project in my-app
|
|
9
|
+
```sh
|
|
10
|
+
# create a new project
|
|
16
11
|
npx sv create my-app
|
|
17
12
|
```
|
|
18
13
|
|
|
14
|
+
To recreate this project with the same configuration:
|
|
15
|
+
|
|
16
|
+
```sh
|
|
17
|
+
# recreate this project
|
|
18
|
+
npx sv@0.15.1 create --template minimal --types ts --add prettier eslint tailwindcss="plugins:none" --no-download-check --install npm .
|
|
19
|
+
```
|
|
20
|
+
|
|
19
21
|
## Developing
|
|
20
22
|
|
|
21
23
|
Once you've created a project and installed dependencies with `npm install` (or `pnpm install` or `yarn`), start a development server:
|
|
22
24
|
|
|
23
|
-
```
|
|
25
|
+
```sh
|
|
24
26
|
npm run dev
|
|
25
27
|
|
|
26
28
|
# or start the server and open the app in a new browser tab
|
|
27
29
|
npm run dev -- --open
|
|
28
30
|
```
|
|
29
31
|
|
|
30
|
-
Everything inside `src/lib` is part of your library, everything inside `src/routes` can be used as a showcase or preview app.
|
|
31
|
-
|
|
32
32
|
## Building
|
|
33
33
|
|
|
34
|
-
To
|
|
35
|
-
|
|
36
|
-
```bash
|
|
37
|
-
npm run package
|
|
38
|
-
```
|
|
39
|
-
|
|
40
|
-
To create a production version of your showcase app:
|
|
34
|
+
To create a production version of your app:
|
|
41
35
|
|
|
42
|
-
```
|
|
36
|
+
```sh
|
|
43
37
|
npm run build
|
|
44
38
|
```
|
|
45
39
|
|
|
46
40
|
You can preview the production build with `npm run preview`.
|
|
47
41
|
|
|
48
42
|
> To deploy your app, you may need to install an [adapter](https://svelte.dev/docs/kit/adapters) for your target environment.
|
|
49
|
-
|
|
50
|
-
## Publishing
|
|
51
|
-
|
|
52
|
-
Go into the `package.json` and give your package the desired name through the `"name"` option. Also consider adding a `"license"` field and point it to a `LICENSE` file which you can create from a template (one popular option is the [MIT license](https://opensource.org/license/mit/)).
|
|
53
|
-
|
|
54
|
-
To publish your library to [npm](https://www.npmjs.com):
|
|
55
|
-
|
|
56
|
-
```bash
|
|
57
|
-
npm publish
|
|
58
|
-
```
|
package/package.json
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sk-clib",
|
|
3
|
-
"version": "1.18.
|
|
3
|
+
"version": "1.18.9",
|
|
4
|
+
"repository": {
|
|
5
|
+
"type": "git",
|
|
6
|
+
"url": "https://github.com/TreltaSev/sk-clib"
|
|
7
|
+
},
|
|
4
8
|
"type": "module",
|
|
5
9
|
"files": [
|
|
6
10
|
"dist",
|
|
@@ -31,56 +35,48 @@
|
|
|
31
35
|
"sideEffects": [
|
|
32
36
|
"**/*.css"
|
|
33
37
|
],
|
|
34
|
-
"scripts": {
|
|
35
|
-
"build": "svelte-package && npm run css_build",
|
|
36
|
-
"webbuild": "vite build",
|
|
37
|
-
"prepublishOnly": "npm run build && publint --skip-pack",
|
|
38
|
-
"check": "svelte-check --tsconfig ./tsconfig.json",
|
|
39
|
-
"check:watch": "svelte-check --tsconfig ./tsconfig.json --watch",
|
|
40
|
-
"format": "prettier --write .",
|
|
41
|
-
"lint": "prettier --check . && eslint .",
|
|
42
|
-
"css_build": "npx tailwindcss -i ./src/library.css -o ./dist/styles.css"
|
|
43
|
-
},
|
|
44
|
-
"peerDependencies": {
|
|
45
|
-
"@sveltejs/kit": "^2.0.0",
|
|
46
|
-
"svelte": "^5.0.0",
|
|
47
|
-
"@material/material-color-utilities": "^0.3.0"
|
|
48
|
-
},
|
|
49
|
-
"devDependencies": {
|
|
50
|
-
"@iconify-json/mdi": "^1.2.3",
|
|
51
|
-
"@sveltejs/kit": "^2.0.0",
|
|
52
|
-
"@sveltejs/package": "^2.0.0",
|
|
53
|
-
"@sveltejs/vite-plugin-svelte": "^5.0.0",
|
|
54
|
-
"eslint": "^9.18.0",
|
|
55
|
-
"eslint-config-prettier": "^10.0.1",
|
|
56
|
-
"eslint-plugin-svelte": "^3.0.0",
|
|
57
|
-
"prettier": "^3.4.2",
|
|
58
|
-
"prettier-plugin-svelte": "^3.3.3",
|
|
59
|
-
"prettier-plugin-tailwindcss": "^0.6.11",
|
|
60
|
-
"publint": "^0.3.12",
|
|
61
|
-
"svelte": "^5.0.0",
|
|
62
|
-
"svelte-check": "^4.0.0",
|
|
63
|
-
"typescript": "^5.0.0",
|
|
64
|
-
"unplugin-icons": "^22.1.0",
|
|
65
|
-
"vite": "^6.2.6"
|
|
66
|
-
},
|
|
67
38
|
"keywords": [
|
|
68
39
|
"svelte",
|
|
69
40
|
"component",
|
|
70
41
|
"library"
|
|
71
42
|
],
|
|
43
|
+
"scripts": {
|
|
44
|
+
"dev": "vite dev",
|
|
45
|
+
"build": "vite build",
|
|
46
|
+
"preview": "vite preview",
|
|
47
|
+
"prepare": "svelte-kit sync || echo ''",
|
|
48
|
+
"check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
|
|
49
|
+
"check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch",
|
|
50
|
+
"lint": "prettier --check . && eslint .",
|
|
51
|
+
"format": "prettier --write ."
|
|
52
|
+
},
|
|
53
|
+
"devDependencies": {
|
|
54
|
+
"@eslint/compat": "^2.0.4",
|
|
55
|
+
"@eslint/js": "^10.0.1",
|
|
56
|
+
"@iconify/json": "^2.2.480",
|
|
57
|
+
"@sveltejs/adapter-auto": "^7.0.1",
|
|
58
|
+
"@sveltejs/kit": "^2.57.0",
|
|
59
|
+
"@sveltejs/vite-plugin-svelte": "^7.0.0",
|
|
60
|
+
"@tailwindcss/vite": "^4.2.2",
|
|
61
|
+
"@types/node": "^22",
|
|
62
|
+
"eslint": "^10.2.0",
|
|
63
|
+
"eslint-config-prettier": "^10.1.8",
|
|
64
|
+
"eslint-plugin-svelte": "^3.17.0",
|
|
65
|
+
"globals": "^17.4.0",
|
|
66
|
+
"prettier": "^3.8.1",
|
|
67
|
+
"prettier-plugin-svelte": "^3.5.1",
|
|
68
|
+
"prettier-plugin-tailwindcss": "^0.7.2",
|
|
69
|
+
"svelte": "^5.55.2",
|
|
70
|
+
"svelte-check": "^4.4.6",
|
|
71
|
+
"tailwindcss": "^4.2.2",
|
|
72
|
+
"typescript": "^6.0.2",
|
|
73
|
+
"typescript-eslint": "^8.58.1",
|
|
74
|
+
"unplugin-icons": "^23.0.1",
|
|
75
|
+
"vite": "^8.0.7"
|
|
76
|
+
},
|
|
72
77
|
"dependencies": {
|
|
73
78
|
"@material/material-color-utilities": "^0.3.0",
|
|
74
|
-
"
|
|
75
|
-
"
|
|
76
|
-
"@semantic-release/npm": "^12.0.1",
|
|
77
|
-
"@sveltejs/adapter-auto": "^6.0.1",
|
|
78
|
-
"@sveltejs/adapter-static": "^3.0.8",
|
|
79
|
-
"@tailwindcss/cli": "^4.1.5",
|
|
80
|
-
"@tailwindcss/vite": "^4.1.7",
|
|
81
|
-
"js-cookie": "^3.0.5",
|
|
82
|
-
"mdsvex": "^0.12.6",
|
|
83
|
-
"semantic-release": "^24.2.4",
|
|
84
|
-
"tailwind-merge": "^3.2.0"
|
|
79
|
+
"tailwind-merge": "^3.2.0",
|
|
80
|
+
"js-cookie": "^3.0.5"
|
|
85
81
|
}
|
|
86
82
|
}
|
package/dist/index.d.ts
DELETED
package/dist/index.js
DELETED