Skip to content

Commit f51874e

Browse files
committed
refactor(projects): refactor projects
1 parent c53dcef commit f51874e

35 files changed

+4770
-5527
lines changed

.editorconfig

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

.eslintignore

Lines changed: 0 additions & 6 deletions
This file was deleted.

.eslintrc.js

Lines changed: 0 additions & 3 deletions
This file was deleted.

.gitattributes

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
"*.vue" eol=lf
21
"*.js" eol=lf
32
"*.ts" eol=lf
43
"*.jsx" eol=lf
@@ -7,10 +6,15 @@
76
"*.cts" eol=lf
87
"*.mjs" eol=lf
98
"*.mts" eol=lf
10-
"*.json" eol=lf
119
"*.html" eol=lf
1210
"*.css" eol=lf
11+
"*.vue" eol=lf
12+
"*.json" eol=lf
1313
"*.less" eol=lf
1414
"*.scss" eol=lf
1515
"*.sass" eol=lf
16-
"*.styl" eol=lf
16+
"*.svelte" eol=lf
17+
"*.md" eol=lf
18+
"*.yml" eol=lf
19+
"*.astro" eol=lf
20+
"*.mdx" eol=lf

.github/workflows/release.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
tags:
6+
- "v*"
7+
8+
jobs:
9+
release:
10+
permissions:
11+
id-token: write
12+
contents: write
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v3
16+
with:
17+
fetch-depth: 0
18+
19+
- name: Install pnpm
20+
uses: pnpm/action-setup@v2
21+
22+
- name: Set node
23+
uses: actions/setup-node@v3
24+
with:
25+
node-version: lts/*
26+
cache: pnpm
27+
registry-url: "https://registry.npmjs.org"
28+
29+
- run: npx githublogen
30+
env:
31+
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
32+
33+
- name: Install Dependencies
34+
run: pnpm install --no-frozen-lockfile
35+
36+
- name: PNPM build
37+
run: pnpm run build
38+
39+
- name: Publish to NPM
40+
run: pnpm -r publish --access public --no-git-checks
41+
env:
42+
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
43+
NPM_CONFIG_PROVENANCE: true
44+
45+
- name: Sync Npmmirror
46+
run: npx syncmirror

.gitignore

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ dist
1313
dist-ssr
1414
coverage
1515
*.local
16-
stats.html
1716

1817
/cypress/videos/
1918
/cypress/screenshots/
@@ -22,13 +21,10 @@ stats.html
2221
.vscode/*
2322
!.vscode/extensions.json
2423
!.vscode/settings.json
24+
!.vscode/launch.json
2525
.idea
2626
*.suo
2727
*.ntvs*
2828
*.njsproj
2929
*.sln
3030
*.sw?
31-
32-
/src/typings/components.d.ts
33-
package-lock.json
34-
yarn.lock

.npmrc

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1 @@
1-
registry=https://registry.npmmirror.com/
21
shamefully-hoist=true
3-
strict-peer-dependencies=false
4-
auto-install-peers=true

.vscode/extensions.json

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"recommendations": [
3+
"afzalsayed96.icones",
4+
"antfu.iconify",
5+
"antfu.unocss",
6+
"dbaeumer.vscode-eslint",
7+
"editorconfig.editorconfig",
8+
"esbenp.prettier-vscode",
9+
"lokalise.i18n-ally",
10+
"mhutchie.git-graph",
11+
"mikestead.dotenv",
12+
"naumovs.color-highlight",
13+
"pkief.material-icon-theme",
14+
"sdras.vue-vscode-snippets",
15+
"vue.volar",
16+
"whtouche.vscode-js-console-utils",
17+
"zhuangtongfa.material-theme"
18+
]
19+
}

.vscode/launch.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"version": "1.0.0",
3+
"configurations": [
4+
{
5+
"name": "TS Debugger tsx",
6+
"type": "node",
7+
"request": "launch",
8+
"program": "${file}",
9+
"runtimeExecutable": "tsx",
10+
"console": "integratedTerminal",
11+
"internalConsoleOptions": "neverOpen",
12+
"skipFiles": ["<node_internals>/**", "${workspaceFolder}/node_modules/**"]
13+
}
14+
]
15+
}

.vscode/settings.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"editor.codeActionsOnSave": {
3+
"source.fixAll.eslint": "explicit",
4+
"source.organizeImports": "never"
5+
},
6+
"editor.formatOnSave": false,
7+
"eslint.validate": ["javascript", "typescript", "json", "jsonc"],
8+
"prettier.enable": false
9+
}

0 commit comments

Comments
 (0)