Skip to content

Commit 288ca81

Browse files
committed
setup
1 parent 48888ec commit 288ca81

File tree

7 files changed

+101
-20
lines changed

7 files changed

+101
-20
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
node_modules

.prettierrc

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"useTabs": true,
3+
"singleQuote": true,
4+
"trailingComma": "none",
5+
"printWidth": 100,
6+
"overrides": [
7+
{
8+
"files": ["*.svelte"],
9+
"options": {
10+
"bracketSameLine": false
11+
}
12+
},
13+
{
14+
"files": ["examples/*/README.md"],
15+
"options": {
16+
"useTabs": false,
17+
"tabWidth": 2
18+
}
19+
}
20+
]
21+
}

LICENSE

Lines changed: 4 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,7 @@
1-
MIT License
1+
Copyright (c) 2020 [these people](https://github.com/sveltejs/examples/graphs/contributors)
22

3-
Copyright (c) 2023 Svelte
3+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
44

5-
Permission is hereby granted, free of charge, to any person obtaining a copy
6-
of this software and associated documentation files (the "Software"), to deal
7-
in the Software without restriction, including without limitation the rights
8-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9-
copies of the Software, and to permit persons to whom the Software is
10-
furnished to do so, subject to the following conditions:
5+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
116

12-
The above copyright notice and this permission notice shall be included in all
13-
copies or substantial portions of the Software.
14-
15-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21-
SOFTWARE.
7+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

README.md

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,13 @@
1-
# examples
2-
A collection of Svelte(Kit) examples
1+
# Svelte(Kit) examples
2+
3+
A collection of Svelte(Kit) examples showcasing various use cases, apps and integrations.
4+
5+
## Creating a new example
6+
7+
Before creating a new example, please first open an issue to discuss it. Here are a few rules to keep in mind:
8+
9+
- examples should be focused on a specific use case (TODO app) or technology (how to integrate TailwindCSS), but not both if possible
10+
- examples should be self-contained and minimal so that people can grasp them quickly
11+
- examples should be stable so that maintenance effort is low
12+
13+
Once a new example is agreed upon, a PR is welcome to implement it. The example should contain a `README.md` that describes what the example is about and some of the technical decisions that were made/packages that were used.

package.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"name": "examples",
3+
"version": "1.0.0",
4+
"private": true,
5+
"description": "A collection of Svelte(Kit) examples",
6+
"scripts": {},
7+
"keywords": [],
8+
"author": "",
9+
"license": "MIT",
10+
"devDependencies": {
11+
"prettier": "^2.8.0",
12+
"prettier-plugin-svelte": "^2.9.0",
13+
"svelte": "^3.55.1",
14+
"typescript": "^4.9.4"
15+
}
16+
}

pnpm-lock.yaml

Lines changed: 44 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pnpm-workspace.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
packages:
2+
- "examples/*"

0 commit comments

Comments
 (0)