Skip to content

Commit 220ce44

Browse files
committed
feat: 🎉 init
0 parents  commit 220ce44

30 files changed

+1067
-0
lines changed

.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

.eslintignore

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

.eslintrc.cjs

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
/** @type { import("eslint").Linter.FlatConfig } */
2+
module.exports = {
3+
root: true,
4+
extends: [
5+
'eslint:recommended',
6+
'plugin:@typescript-eslint/recommended',
7+
'plugin:svelte/recommended',
8+
'prettier'
9+
],
10+
parser: '@typescript-eslint/parser',
11+
plugins: ['@typescript-eslint'],
12+
parserOptions: {
13+
sourceType: 'module',
14+
ecmaVersion: 2020,
15+
extraFileExtensions: ['.svelte']
16+
},
17+
rules: {
18+
'@typescript-eslint/no-explicit-any': 1
19+
},
20+
env: {
21+
browser: true,
22+
es2017: true,
23+
node: true
24+
},
25+
overrides: [
26+
{
27+
files: ['*.svelte'],
28+
parser: 'svelte-eslint-parser',
29+
parserOptions: {
30+
parser: '@typescript-eslint/parser'
31+
}
32+
}
33+
]
34+
};

.github/release.yml

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
changelog:
2+
categories:
3+
- title: Documentation Changes
4+
labels:
5+
- documentation
6+
- title: New Strategy
7+
labels:
8+
- strategy
9+
- title: New Features
10+
labels:
11+
- enhancement
12+
- title: Bug Fixes
13+
labels:
14+
- bug
15+
- title: Other Changes
16+
labels:
17+
- '*'

.github/workflows/bump.yml

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Bump version
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
version:
7+
description: 'Semver type of new version (major / minor / patch)'
8+
required: true
9+
type: choice
10+
options:
11+
- major
12+
- minor
13+
- patch
14+
15+
jobs:
16+
bump-version:
17+
name: Bump version
18+
runs-on: ubuntu-latest
19+
steps:
20+
- name: Check out source
21+
uses: actions/checkout@v4
22+
- name: Setup Node.js
23+
uses: actions/setup-node@v2
24+
with:
25+
node-version: '18'
26+
- name: Setup Git
27+
run: |
28+
git config user.name 'Willin Wang'
29+
git config user.email '[email protected]'
30+
- run: npm install --force
31+
- name: bump version
32+
run: npm version ${{ github.event.inputs.version }}
33+
- name: Push latest version
34+
run: git push origin main --follow-tags

.github/workflows/publish.yml

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Publish
2+
3+
on:
4+
workflow_dispatch:
5+
release:
6+
types: [published]
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v4
13+
- uses: actions/setup-node@v2
14+
with:
15+
node-version: 18
16+
registry-url: https://registry.npmjs.org/
17+
- run: npm install --force
18+
- run: npm run build
19+
- run: npm publish --access public
20+
env:
21+
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}

.github/workflows/test.yml

+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Test Suites
2+
3+
on:
4+
# push:
5+
# branches:
6+
# - main
7+
# tags:
8+
# - '!*' # Do not execute on tags
9+
# paths:
10+
# - src/*
11+
# - test/*
12+
# - '*.json'
13+
# pull_request:
14+
# paths:
15+
# - '!*.MD'
16+
workflow_dispatch:
17+
18+
jobs:
19+
test:
20+
strategy:
21+
matrix:
22+
os: [ubuntu-latest]
23+
bun-version: ['1.x']
24+
runs-on: ${{ matrix.os }}
25+
steps:
26+
- uses: actions/checkout@v4
27+
- uses: oven-sh/setup-bun@v1
28+
with:
29+
bun-version: ${{ matrix.bun-version }}
30+
- run: bun install
31+
- run: bun run build
32+
- name: Test & publish code coverage
33+
uses: paambaati/codeclimate-action@v5
34+
env:
35+
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
36+
with:
37+
coverageCommand: bun run coverage
38+
coverageLocations: ./.coverage/lcov.info:lcov

.gitignore

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
.DS_Store
2+
node_modules
3+
bakup/
4+
/static/docs
5+
/.coverage
6+
/build
7+
/dist
8+
/.svelte-kit
9+
/package
10+
.env
11+
.env.*
12+
!.env.example
13+
vite.config.js.timestamp-*
14+
vite.config.ts.timestamp-*
15+
package-lock.json
16+
yarn.lock

.npmrc

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
engine-strict=true

.prettierignore

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

.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+
}

0 commit comments

Comments
 (0)