Skip to content

Commit ae195c1

Browse files
committed
feat: 🎉 init
0 parents  commit ae195c1

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+1831
-0
lines changed

Diff for: .changeset/README.md

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Changesets
2+
3+
Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works
4+
with multi-package repos, or single-package repos to help you version and publish your code. You can
5+
find the full documentation for it [in our repository](https://github.com/changesets/changesets)
6+
7+
We have a quick list of common questions to get you started engaging with this project in
8+
[our documentation](https://github.com/changesets/changesets/blob/main/docs/common-questions.md)

Diff for: .changeset/config.json

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"$schema": "https://unpkg.com/@changesets/[email protected]/schema.json",
3+
"changelog": ["@changesets/changelog-github", { "repo": "willin/svelte-turbo" }],
4+
"commit": false,
5+
"fixed": [],
6+
"linked": [],
7+
"access": "public",
8+
"baseBranch": "main",
9+
"updateInternalDependencies": "patch",
10+
"___experimentalUnsafeOptions_WILL_CHANGE_IN_PATCH": {
11+
"onlyUpdatePeerDependentsWhenOutOfRange": true
12+
},
13+
"ignore": []
14+
}

Diff for: .commitlintrc.cjs

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
const configConventional = require('@commitlint/config-conventional');
2+
3+
module.exports = {
4+
extends: ['@commitlint/config-conventional'],
5+
6+
rules: {
7+
'type-enum': [
8+
configConventional.rules['type-enum'][0],
9+
configConventional.rules['type-enum'][1],
10+
['release', ...configConventional.rules['type-enum'][2]]
11+
]
12+
}
13+
};

Diff for: .editorconfig

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# See http://editorconfig.org/
2+
root = true
3+
4+
[*]
5+
indent_style = space
6+
indent_size = 2
7+
end_of_line = lf
8+
charset = utf-8
9+
trim_trailing_whitespace = true
10+
insert_final_newline = true
11+
12+
[Makefile]
13+
indent_style = tab

Diff for: .eslintignore

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
.DS_Store
2+
node_modules
3+
/build
4+
/.svelte-kit
5+
/dist
6+
/static
7+
/package
8+
.env
9+
.env.*
10+
!.env.example
11+
12+
/static
13+
# Ignore files for PNPM, NPM and YARN
14+
pnpm-lock.yaml
15+
package-lock.json
16+
yarn.lock

Diff for: .eslintrc.cjs

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
module.exports = {
2+
root: true,
3+
extends: ['@svelte-dev/eslint-config']
4+
};

Diff for: .githooks/pre-commit

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/bin/sh
2+
3+
set -e
4+
5+
bunx lint-staged

Diff for: .github/workflows/release.yml

+39
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
workflow_dispatch:
8+
permissions: {}
9+
jobs:
10+
release:
11+
# prevents this action from running on forks
12+
if: github.repository == 'willin/svelte-pretty-code'
13+
permissions:
14+
contents: write # to create release (changesets/action)
15+
pull-requests: write # to create pull request (changesets/action)
16+
name: Release
17+
runs-on: ubuntu-latest
18+
steps:
19+
- name: Checkout Repo
20+
uses: actions/checkout@v4
21+
with:
22+
# This makes Actions fetch all Git history so that Changesets can generate changelogs with the correct commits
23+
fetch-depth: 0
24+
- uses: oven-sh/setup-bun@v1
25+
with:
26+
bun-version: latest
27+
- run: bun install
28+
- run: bun run build
29+
30+
- name: Create Release Pull Request or Publish to npm
31+
id: changesets
32+
uses: changesets/action@v1
33+
with:
34+
# This expects you to have a script called release which does a build for your packages and calls changeset publish
35+
publish: bun run changeset:release
36+
version: bun run changeset:version
37+
env:
38+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
39+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

Diff for: .gitignore

+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2+
3+
demo/
4+
dist/
5+
apps/**/static/docs/
6+
package-lock.json
7+
yarn.lock
8+
pnpm-lock.yaml
9+
10+
# dependencies
11+
node_modules
12+
.pnp
13+
.pnp.js
14+
15+
# testing
16+
coverage
17+
18+
# svelte
19+
.svelte-kit
20+
21+
# misc
22+
.DS_Store
23+
*.pem
24+
25+
# debug
26+
npm-debug.log*
27+
yarn-debug.log*
28+
yarn-error.log*
29+
30+
# local env files
31+
.env.local
32+
.env.development.local
33+
.env.test.local
34+
.env.production.local
35+
36+
# turbo
37+
.turbo
38+
vite.config.ts.*.mjs

Diff for: .npmrc

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
auto-install-peers = true

Diff for: .prettierignore

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
.DS_Store
2+
.svelte-kit
3+
node_modules
4+
/build
5+
/package
6+
.env
7+
.env.*
8+
!.env.example
9+
vite.config.js*
10+
11+
# Ignore files for PNPM, NPM and YARN
12+
pnpm-lock.yaml
13+
pnpm-workspace.yaml
14+
package-lock.json
15+
yarn.lock

Diff for: .prettierrc

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"useTabs": false,
3+
"tabWidth": 2,
4+
"singleQuote": true,
5+
"semi": true,
6+
"bracketSameLine": true,
7+
"trailingComma": "none",
8+
"printWidth": 100,
9+
"plugins": ["prettier-plugin-svelte"],
10+
"overrides": [{ "files": "*.svelte", "options": { "parser": "svelte" } }]
11+
}

Diff for: .vscode/extensions.json

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"recommendations": [
3+
"streetsidesoftware.code-spell-checker",
4+
"vivaxy.vscode-conventional-commits",
5+
"aaron-bond.better-comments",
6+
"editorconfig.editorconfig",
7+
"dbaeumer.vscode-eslint",
8+
"eamodio.gitlens",
9+
"github.copilot",
10+
"esbenp.prettier-vscode",
11+
"svelte.svelte-vscode"
12+
]
13+
}

Diff for: .vscode/settings.json

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"cSpell.words": ["willin"]
3+
}

0 commit comments

Comments
 (0)