Skip to content
This repository was archived by the owner on Mar 14, 2024. It is now read-only.

Commit 04c45fd

Browse files
committed
feat: initial commit
0 parents  commit 04c45fd

38 files changed

+6528
-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: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"$schema": "https://unpkg.com/@changesets/config@2.3.0/schema.json",
3+
"changelog": ["@changesets/changelog-github", { "repo": "goknsh/svelte-query-pocketbase" }],
4+
"commit": false,
5+
"fixed": [],
6+
"linked": [],
7+
"access": "restricted",
8+
"baseBranch": "main",
9+
"updateInternalDependencies": "patch",
10+
"ignore": []
11+
}

.changeset/pre.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"mode": "pre",
3+
"tag": "beta",
4+
"initialVersions": {
5+
"svelte-query-pocketbase": "0.0.0"
6+
},
7+
"changesets": []
8+
}

.commitlintrc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"extends": [
3+
"@commitlint/config-conventional"
4+
]
5+
}

.eslintignore

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

.eslintrc.cjs

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
module.exports = {
2+
root: true,
3+
parser: '@typescript-eslint/parser',
4+
extends: [
5+
'eslint:recommended',
6+
'plugin:@typescript-eslint/eslint-recommended',
7+
'plugin:@typescript-eslint/recommended',
8+
'plugin:@typescript-eslint/recommended-requiring-type-checking',
9+
'plugin:@typescript-eslint/strict',
10+
'prettier'
11+
],
12+
plugins: ['svelte3', '@typescript-eslint'],
13+
ignorePatterns: ['*.cjs'],
14+
overrides: [{ files: ['*.svelte'], processor: 'svelte3/svelte3' }],
15+
settings: {
16+
'svelte3/typescript': () => require('typescript')
17+
},
18+
parserOptions: {
19+
sourceType: 'module',
20+
ecmaVersion: 2020
21+
},
22+
env: {
23+
browser: true,
24+
es2017: true,
25+
node: true
26+
}
27+
};

.github/workflows/release.yml

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
concurrency: ${{ github.workflow }}-${{ github.ref }}
9+
10+
permissions: {}
11+
12+
jobs:
13+
release:
14+
name: Release
15+
runs-on: ubuntu-latest
16+
17+
# prevents this action from running on forks
18+
if: github.repository == 'goknsh/svelte-query-pocketbase'
19+
20+
permissions:
21+
contents: write # to push commits and tags (changesets/action)
22+
pull-requests: write # to create pull request (changesets/action)
23+
24+
steps:
25+
- name: Checkout Repo
26+
uses: actions/checkout@v3
27+
with:
28+
# This makes Actions fetch all Git history so that Changesets can generate changelogs with the correct commits
29+
fetch-depth: 0
30+
31+
# Global dependencies are not cached, we use pnpm cache instead
32+
- name: Setup Node.js
33+
uses: actions/setup-node@v3
34+
with:
35+
node-version: 18.x
36+
37+
- name: Install pnpm
38+
uses: pnpm/action-setup@v2.2.4
39+
with:
40+
run_install: false
41+
version: 7.26.0
42+
43+
- name: Get pnpm store directory
44+
id: pnpm-cache
45+
shell: bash
46+
run: |
47+
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
48+
49+
- name: Setup pnpm cache
50+
uses: actions/cache@v3
51+
with:
52+
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
53+
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
54+
restore-keys: |
55+
${{ runner.os }}-pnpm-store-
56+
57+
- name: Install dependencies
58+
run: pnpm install --frozen-lockfile
59+
60+
- name: Create Release Pull Request or Publish to npm
61+
id: changesets
62+
uses: changesets/action@v1
63+
with:
64+
publish: pnpm run release
65+
commit: 'chore: version package'
66+
title: 'chore: version package'
67+
env:
68+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
69+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

.gitignore

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
.DS_Store
2+
node_modules
3+
/build
4+
/dist
5+
/.svelte-kit
6+
/package
7+
.env
8+
.env.*
9+
!.env.example
10+
vite.config.js.timestamp-*
11+
vite.config.ts.timestamp-*

.husky/commit-msg

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/usr/bin/env sh
2+
. "$(dirname -- "$0")/_/husky.sh"
3+
4+
pnpm commitlint --edit ${1}

.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
engine-strict=true

0 commit comments

Comments
 (0)