Skip to content

Commit 0b0efc3

Browse files
committed
feat(projects): init projects
1 parent 50c17fc commit 0b0efc3

18 files changed

Lines changed: 3788 additions & 0 deletions

.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

.gitattributes

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
"*.js" eol=lf
2+
"*.ts" eol=lf
3+
"*.jsx" eol=lf
4+
"*.tsx" eol=lf
5+
"*.cjs" eol=lf
6+
"*.cts" eol=lf
7+
"*.mjs" eol=lf
8+
"*.mts" eol=lf
9+
"*.html" eol=lf
10+
"*.css" eol=lf
11+
"*.vue" eol=lf
12+
"*.json" eol=lf
13+
"*.less" eol=lf
14+
"*.scss" eol=lf
15+
"*.sass" eol=lf
16+
"*.styl" eol=lf
17+
"*.svelte" eol=lf
18+
"*.md" eol=lf
19+
"*.yml" eol=lf
20+
"*.astro" eol=lf
21+
"*.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: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# Logs
2+
logs
3+
*.log
4+
npm-debug.log*
5+
yarn-debug.log*
6+
yarn-error.log*
7+
pnpm-debug.log*
8+
lerna-debug.log*
9+
10+
node_modules
11+
.DS_Store
12+
dist
13+
dist-ssr
14+
coverage
15+
*.local
16+
17+
/cypress/videos/
18+
/cypress/screenshots/
19+
20+
# Editor directories and files
21+
.vscode/*
22+
!.vscode/extensions.json
23+
!.vscode/settings.json
24+
!.vscode/launch.json
25+
.idea
26+
*.suo
27+
*.ntvs*
28+
*.njsproj
29+
*.sln
30+
*.sw?

.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
shamefully-hoist=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+
}

eslint.config.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
import { defineConfig } from '@soybeanjs/eslint-config';
2+
3+
export default defineConfig();

package.json

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
{
2+
"name": "@soybeanjs/utils",
3+
"type": "module",
4+
"version": "0.0.0",
5+
"private": true,
6+
"packageManager": "pnpm@10.28.1",
7+
"description": "A collection of useful utility functions for JavaScript and TypeScript projects of SoybeanJS.",
8+
"author": {
9+
"name": "Soybean",
10+
"email": "soybeanjs@outlook.com",
11+
"url": "https://github.com/soybeanjs"
12+
},
13+
"license": "MIT",
14+
"homepage": "https://github.com/soybeanjs/utils",
15+
"repository": {
16+
"url": "https://github.com/soybeanjs/utils.git"
17+
},
18+
"bugs": {
19+
"url": "https://github.com/soybeanjs/utils/issues"
20+
},
21+
"publishConfig": {
22+
"registry": "https://registry.npmjs.org/"
23+
},
24+
"exports": {
25+
".": {
26+
"types": "./dist/index.d.ts",
27+
"import": "./dist/index.js",
28+
"require": "./dist/index.js"
29+
}
30+
},
31+
"main": "./dist/index.js",
32+
"module": "./dist/index.js",
33+
"types": "./dist/index.d.ts",
34+
"files": ["dist"],
35+
"scripts": {
36+
"build": "tsdown",
37+
"cleanup": "soy cleanup",
38+
"commit": "soy git-commit",
39+
"dev": "tsup --watch",
40+
"lint": "eslint . --fix",
41+
"prepare": "simple-git-hooks",
42+
"publish-pkg": "pnpm publish --access public",
43+
"release": "soy release",
44+
"typecheck": "tsc --noEmit --skipLibCheck",
45+
"update-pkg": "soy ncu"
46+
},
47+
"dependencies": {},
48+
"devDependencies": {
49+
"@soybeanjs/cli": "1.4.4",
50+
"@soybeanjs/eslint-config": "1.7.5",
51+
"@types/node": "25.0.10",
52+
"eslint": "9.39.2",
53+
"lint-staged": "16.2.7",
54+
"simple-git-hooks": "2.13.1",
55+
"tsdown": "0.20.0",
56+
"tsx": "4.21.0",
57+
"typescript": "5.9.3"
58+
},
59+
"simple-git-hooks": {
60+
"commit-msg": "pnpm soy git-commit-verify",
61+
"pre-commit": "pnpm typecheck && pnpm lint-staged"
62+
},
63+
"lint-staged": {
64+
"*": "eslint --fix"
65+
}
66+
}

0 commit comments

Comments
 (0)