Skip to content

Commit 8c21117

Browse files
committed
chore: clean the code
1 parent 824d696 commit 8c21117

30 files changed

+4325
-2280
lines changed

.changeset/config.json

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"$schema": "https://unpkg.com/@changesets/[email protected]/schema.json",
3+
"changelog": "@changesets/cli/changelog",
4+
"commit": false,
5+
"fixed": [],
6+
"linked": [],
7+
"access": "public",
8+
"baseBranch": "master",
9+
"updateInternalDependencies": "patch",
10+
"ignore": []
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:20-bullseye # Update to the latest stable Node.js version
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 --activate # Ensure latest pnpm version
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: Build
32+
command: |
33+
pnpm build
34+
35+
workflows:
36+
build_test:
37+
jobs:
38+
- build

.github/workflows/main.yml

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: CI
2+
on:
3+
push:
4+
branches:
5+
- "**"
6+
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v4
12+
- uses: pnpm/action-setup@v4
13+
with:
14+
version: 8
15+
- uses: actions/setup-node@v4
16+
with:
17+
node-version: 20.x
18+
cache: "pnpm"
19+
20+
- run: pnpm install
21+
- run: pnpm lint && pnpm build

.github/workflows/publish.yml

+46
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: Publish
2+
on:
3+
workflow_run:
4+
workflows: [CI]
5+
branches: [master]
6+
types: [completed]
7+
8+
concurrency: ${{ github.workflow }}-${{ github.ref }}
9+
10+
permissions:
11+
contents: write
12+
pull-requests: write
13+
14+
jobs:
15+
publish:
16+
if: ${{ github.event.workflow_run.conclusion == 'success' }}
17+
runs-on: ubuntu-latest
18+
steps:
19+
- name: Checkout Code
20+
uses: actions/checkout@v4
21+
22+
- name: Setup pnpm
23+
uses: pnpm/action-setup@v4
24+
with:
25+
version: 8
26+
27+
- name: Setup Node.js
28+
uses: actions/setup-node@v4
29+
with:
30+
node-version: 20.x
31+
cache: 'pnpm'
32+
33+
- name: Install Dependencies
34+
run: pnpm install
35+
36+
- name: Build Project
37+
run: pnpm build
38+
39+
- name: Create Release Pull Request or Publish
40+
id: changesets
41+
uses: changesets/action@v1
42+
with:
43+
publish: pnpm publish --access public --no-git-checks
44+
env:
45+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
46+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

.husky/commit-msg

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
npx --no-install commitlint --edit ""

.husky/pre-commit

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
pnpm lint-staged --no-stash

.lintstagedrc.json

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

.npmignore

+52
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
# Ignore node_modules
2+
node_modules
3+
4+
# Ignore logs
5+
*.log
6+
7+
# Ignore TypeScript source files
8+
src/**/*.ts
9+
10+
# Ignore test files
11+
test
12+
tests
13+
*.spec.ts
14+
*.test.ts
15+
16+
# Ignore configuration files
17+
*.config.js
18+
*.config.ts
19+
*.config.json
20+
21+
# Ignore environment files
22+
.env
23+
.env.*
24+
25+
# Ignore documentation
26+
docs
27+
*.md
28+
29+
# Ignore IDE specific files
30+
.vscode
31+
.idea
32+
33+
# Ignore miscellaneous files
34+
.DS_Store
35+
Thumbs.db
36+
tsconfig.json
37+
tsub.config.ts
38+
39+
# Ignore husky
40+
.husky
41+
42+
.github
43+
.changeset
44+
SECURITY.md
45+
BACKERS.md
46+
CHANGELOG.md
47+
TODO.md
48+
.prettierrc
49+
.prettierignore
50+
.editorconfig
51+
commitlint.config.mjs
52+
eslint.config.mjs

.npmrc

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
shamefully-hoist=true
2+
strict-peer-dependencies=false

.prettierrc

+16-15
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,17 @@
11
{
2-
"printWidth": 120,
3-
"tabWidth": 4,
4-
"wrapAttributes": "auto",
5-
"sortTailwindcssClasses": true,
6-
"singleQuote": true,
7-
"trailingComma": "all",
8-
"overrides": [
9-
{
10-
"files": ".prettierrc",
11-
"options": {
12-
"parser": "json"
13-
}
14-
}
15-
]
16-
}
2+
"printWidth": 120,
3+
"tabWidth": 4,
4+
"wrapAttributes": "auto",
5+
"sortTailwindcssClasses": true,
6+
"singleQuote": true,
7+
"trailingComma": "none",
8+
"semi": false,
9+
"overrides": [
10+
{
11+
"files": ".prettierrc",
12+
"options": {
13+
"parser": "json"
14+
}
15+
}
16+
]
17+
}

BACKERS.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
<h1 align="center">Sponsors &amp; Backers</h1>
22

3-
all in one is an MIT-licensed open source project with its ongoing development made possible entirely by the support of the awesome sponsors and backers listed in this file. If you'd like to join them, please consider [ sponsor All in One development](https://github.com/sponsors/ru44/).
3+
cliuno is an GNU AFFERO GENERAL PUBLIC-licensed open source project with its ongoing development made possible entirely by the support of the awesome sponsors and backers listed in this file. If you'd like to join them, please consider [sponsor All in One development](https://github.com/sponsors/ru44/).

CHANGELOG.md

+6
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Changelog
22

3+
## 2.0.0
4+
5+
### Major Changes
6+
7+
- e007a3c: breaking change - change the command from all-in-1-cli to cliuno
8+
39
All notable changes to this project will be documented in this file.
410

511
## [1.4.1] - 2022-10-02

0 commit comments

Comments
 (0)