Skip to content

Commit 11ea4e8

Browse files
committed
feat: setup the project
1 parent ac00779 commit 11ea4e8

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

90 files changed

+11593
-12850
lines changed

.browserslistrc

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
> 1%
2+
last 2 versions
3+
not dead
4+
not ie 11

.circleci/config.yml

+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
version: 2.1
2+
3+
jobs:
4+
build: # this can be any name you choose
5+
docker:
6+
- image: node:18.17.1
7+
resource_class: large
8+
parallelism: 10
9+
10+
steps:
11+
- checkout
12+
- restore_cache:
13+
name: Restore pnpm Package Cache
14+
keys:
15+
- pnpm-packages-{{ checksum "pnpm-lock.yaml" }}
16+
- run:
17+
name: Install pnpm package manager
18+
command: |
19+
corepack enable
20+
corepack prepare pnpm@latest-8 --activate
21+
- run:
22+
name: Install Dependencies
23+
command: |
24+
pnpm install
25+
- save_cache:
26+
name: Save pnpm Package Cache
27+
key: pnpm-packages-{{ checksum "pnpm-lock.yaml" }}
28+
paths:
29+
- node_modules
30+
- run:
31+
name: Run Tests
32+
command: |
33+
pnpm run test:unit
34+
35+
workflows:
36+
build_test:
37+
jobs:
38+
- build

.env.example

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
VITE_API_URL=http://localhost:3000

.eslintrc.cjs

-25
This file was deleted.

.github/FUNDING.yml

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# These are supported funding model platforms
2+
3+
github: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
4+
patreon: # Replace with a single Patreon username
5+
open_collective: # Replace with a single Open Collective username
6+
ko_fi: # ru44y
7+
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
8+
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
9+
liberapay: # Replace with a single Liberapay username
10+
issuehunt: # Replace with a single IssueHunt username
11+
otechie: # Replace with a single Otechie username
12+
lfx_crowdfunding: # Replace with a single LFX Crowdfunding project-name e.g., cloud-foundry
13+
custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']

.github/workflows/node.js.yml

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: cliuno vue template ci
2+
3+
on:
4+
push:
5+
branches: ['master']
6+
pull_request:
7+
branches: ['master']
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
13+
strategy:
14+
matrix:
15+
node-version: [22.x]
16+
17+
steps:
18+
- uses: pnpm/action-setup@v4
19+
with:
20+
version: 8
21+
- uses: actions/checkout@v4
22+
- name: Use Node.js ${{ matrix.node-version }}
23+
uses: actions/setup-node@v4
24+
with:
25+
node-version: ${{ matrix.node-version }}
26+
cache: 'pnpm'
27+
- run: pnpm install
28+
- run: pnpm build
29+
- run: pnpm test:unit

.gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,6 @@ coverage
2626
*.njsproj
2727
*.sln
2828
*.sw?
29+
30+
*.tsbuildinfo
31+
.env

.husky/commit-msg

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Run commitlint with the commit message passed as an argument
2+
npx commitlint --edit $1

.husky/pre-commit

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
pnpm type-check
2+
3+
pnpm lint
4+
5+
npx lint-staged

.lintstagedrc.json

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"*.ts": ["prettier --write", "eslint . --fix"],
3+
"*.js": ["prettier --write"],
4+
"*.vue": ["prettier --write"],
5+
"*.scss": "prettier --write",
6+
"*.css": "prettier --write",
7+
"*.json": "prettier --write",
8+
"*.md": "prettier --write",
9+
"*.html": "prettier --write"
10+
}

.prettierrc.json

+8-1
Original file line numberDiff line numberDiff line change
@@ -1 +1,8 @@
1-
{}
1+
{
2+
"$schema": "https://json.schemastore.org/prettierrc",
3+
"semi": false,
4+
"tabWidth": 2,
5+
"singleQuote": true,
6+
"printWidth": 120,
7+
"trailingComma": "none"
8+
}

.stylelintrc.json

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"extends": ["stylelint-config-standard"]
3+
}

.vscode/extensions.json

+7-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
11
{
2-
"recommendations": ["Vue.volar", "Vue.vscode-typescript-vue-plugin"]
2+
"recommendations": [
3+
"Vue.volar",
4+
"vitest.explorer",
5+
"dbaeumer.vscode-eslint",
6+
"EditorConfig.EditorConfig",
7+
"esbenp.prettier-vscode"
8+
]
39
}

0 commit comments

Comments
 (0)