Skip to content

Commit 16c4b8a

Browse files
committed
feat: init
1 parent c405870 commit 16c4b8a

27 files changed

+7344
-1
lines changed

.dockerignore

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
Dockerfile
2+
.nuxt
3+
.output
4+
.dockerignore
5+
.cert
6+
node_modules
7+
npm-debug.log
8+
README.md
9+
**/.nuxt
10+
**/*.db
11+
**/.env*
12+
.git

.editorconfig

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Editor configuration, see http://editorconfig.org
2+
root = true
3+
4+
[*]
5+
charset = utf-8
6+
end_of_line = lf
7+
indent_style = space
8+
indent_size = 2
9+
insert_final_newline = true
10+
trim_trailing_whitespace = true
11+
12+
[*.md]
13+
trim_trailing_whitespace = false

.github/renovate.json

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"extends": [
3+
"config:recommended",
4+
"group:allNonMajor",
5+
":disableDependencyDashboard",
6+
":semanticCommitTypeAll(chore)"
7+
],
8+
"labels": ["dependencies"],
9+
"rangeStrategy": "bump",
10+
"npm": {
11+
"commitMessageTopic": "{{prettyDepType}} {{depName}}"
12+
},
13+
"packageRules": [
14+
{
15+
"matchUpdateTypes": ["minor", "patch", "pin", "digest"],
16+
"automerge": true,
17+
"automergeSchedule": ["after 1am and before 2am"],
18+
"schedule": ["after 2am and before 3am"]
19+
}
20+
]
21+
}

.github/workflows/ci.yml

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
paths-ignore:
6+
- "*.md"
7+
- "docker/**"
8+
- ".github/**"
9+
- "!.github/workflows/ci.yml"
10+
branches:
11+
- main
12+
pull_request:
13+
paths-ignore:
14+
- "*.md"
15+
- "docker/**"
16+
- ".github/**"
17+
- "!.github/workflows/ci.yml"
18+
branches:
19+
- main
20+
21+
jobs:
22+
build:
23+
runs-on: ubuntu-latest
24+
timeout-minutes: 10
25+
steps:
26+
- name: Checkout
27+
uses: actions/checkout@v5
28+
29+
- name: PNPM
30+
uses: pnpm/action-setup@v4
31+
with:
32+
run_install: false
33+
34+
- name: Node
35+
uses: actions/setup-node@v5
36+
with:
37+
node-version: lts/*
38+
cache: "pnpm"
39+
40+
- name: Install dependencies
41+
run: pnpm install
42+
43+
- name: ESLint
44+
run: pnpm run lint
45+
46+
- name: Typecheck
47+
run: pnpm run typecheck
48+
49+
- name: Test
50+
run: pnpm run test
51+
52+
- name: Build
53+
run: pnpm run build

.github/workflows/publish.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: Publish Package
2+
3+
permissions:
4+
id-token: write
5+
contents: write
6+
7+
on:
8+
push:
9+
tags:
10+
- v*
11+
12+
jobs:
13+
publish-npm:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- name: Checkout
17+
uses: actions/checkout@v5
18+
with:
19+
fetch-depth: 0
20+
21+
- name: Install pnpm
22+
uses: pnpm/action-setup@v4
23+
24+
- uses: actions/setup-node@v5
25+
with:
26+
node-version: lts/*
27+
registry-url: https://registry.npmjs.org/
28+
cache: pnpm
29+
30+
- run: npm i -g npm@latest
31+
32+
- run: pnpm install
33+
34+
- run: npx changelogithub
35+
continue-on-error: true
36+
env:
37+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
38+
39+
- name: Publish 🚀
40+
shell: bash
41+
run: pnpm publish -r --access public --no-git-checks
42+
env:
43+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

.gitignore

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
.DS_Store
2+
.idea
3+
.nuxt
4+
.temp
5+
*.log
6+
*.tgz
7+
components.d.ts
8+
components.d.[cm]ts
9+
dist
10+
index.json
11+
indexes.json
12+
node_modules
13+
cache
14+
packages/*/LICENSE
15+
packages/*/README.md
16+
packages/contributing.md
17+
packages/public/badge-*
18+
packages/**/*.js
19+
packages/**/*.[cm]js
20+
packages/**/*.d.ts
21+
packages/**/*.d.[cm]ts
22+
!packages/.vitepress/
23+
!packages/.vitepress/shims.d.ts
24+
playgrounds/*/pnpm-lock.yaml
25+
types
26+
coverage
27+
.eslintcache
28+
.vitepress/cache
29+
30+
packages/**/__screenshots__

.husky/commit-msg

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
commitlint --edit ${1}

.husky/pre-commit

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

.vscode/settings.json

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
{
2+
"files.associations": {
3+
"*.css": "tailwindcss"
4+
},
5+
6+
"editor.quickSuggestions": {
7+
"strings": "on"
8+
},
9+
10+
"prettier.enable": false,
11+
"editor.formatOnSave": false,
12+
13+
"editor.codeActionsOnSave": {
14+
"source.fixAll.eslint": "explicit",
15+
"source.organizeImports": "never"
16+
},
17+
18+
"eslint.rules.customizations": [
19+
{ "rule": "style/*", "severity": "off", "fixable": true },
20+
{ "rule": "format/*", "severity": "off", "fixable": true },
21+
{ "rule": "*-indent", "severity": "off", "fixable": true },
22+
{ "rule": "*-spacing", "severity": "off", "fixable": true },
23+
{ "rule": "*-spaces", "severity": "off", "fixable": true },
24+
{ "rule": "*-order", "severity": "off", "fixable": true },
25+
{ "rule": "*-dangle", "severity": "off", "fixable": true },
26+
{ "rule": "*-newline", "severity": "off", "fixable": true },
27+
{ "rule": "*quotes", "severity": "off", "fixable": true },
28+
{ "rule": "*semi", "severity": "off", "fixable": true }
29+
],
30+
31+
"eslint.validate": [
32+
"javascript",
33+
"javascriptreact",
34+
"typescript",
35+
"typescriptreact",
36+
"vue",
37+
"html",
38+
"markdown",
39+
"json",
40+
"jsonc",
41+
"yaml",
42+
"toml",
43+
"xml",
44+
"gql",
45+
"graphql",
46+
"astro",
47+
"svelte",
48+
"css",
49+
"less",
50+
"scss",
51+
"pcss",
52+
"postcss"
53+
],
54+
55+
"cSpell.language": "en,ru"
56+
}

.vscode/tasks.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"version": "2.0.0",
3+
"tasks": [
4+
{
5+
"type": "npm",
6+
"script": "check:full",
7+
"problemMatcher": [],
8+
"label": "Full check",
9+
"group": {
10+
"kind": "test",
11+
"isDefault": true
12+
}
13+
}
14+
]
15+
}

0 commit comments

Comments
 (0)