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

.changeset/README.md

Lines changed: 8 additions & 0 deletions
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)

.changeset/config.json

Lines changed: 14 additions & 0 deletions
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+
}

.commitlintrc.cjs

Lines changed: 13 additions & 0 deletions
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+
};

.editorconfig

Lines changed: 13 additions & 0 deletions
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

.eslintignore

Lines changed: 16 additions & 0 deletions
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

.eslintrc.cjs

Lines changed: 4 additions & 0 deletions
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+
};

.githooks/pre-commit

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

.github/workflows/release.yml

Lines changed: 39 additions & 0 deletions
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 }}

.gitignore

Lines changed: 38 additions & 0 deletions
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

.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
auto-install-peers = true

0 commit comments

Comments
 (0)