Skip to content

Commit e51fa3e

Browse files
committed
refactor(projects): refactor projects
1 parent 41da31b commit e51fa3e

26 files changed

+3919
-4549
lines changed

.editorconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ root = true
44

55
[*]
66
charset = utf-8
7-
indent_style = space
7+
indent_style = tab
88
indent_size = 2
99
end_of_line = lf
1010
trim_trailing_whitespace = true

.gitattributes

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

.npmrc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
registry=https://registry.npmmirror.com/
2+
shamefully-hoist=true

.prettierrc

Whitespace-only changes.

.vscode/extensions.json

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

.vscode/launch.json

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
{
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-
]
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+
]
1515
}

.vscode/settings.json

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
{
2-
"editor.codeActionsOnSave": {
3-
"source.fixAll.eslint": "explicit",
4-
"source.organizeImports": "never"
5-
},
6-
"eslint.experimental.useFlatConfig": true,
7-
"editor.formatOnSave": false,
8-
"eslint.validate": ["json", "jsonc"],
9-
"prettier.enable": false
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
109
}

CHANGELOG.md

Lines changed: 0 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -1,47 +0,0 @@
1-
# Changelog
2-
3-
4-
## [v0.1.1](https://github.com/soybeanjs/color-palette/compare/v0.1.0...v0.1.1) (2024-06-04)
5-
6-
### &nbsp;&nbsp;&nbsp;🚀 Features
7-
8-
- **projects**: add export `getColorName` &nbsp;-&nbsp; by @soybeanjs [<samp>(de526)</samp>](https://github.com/soybeanjs/color-palette/commit/de52646)
9-
10-
### &nbsp;&nbsp;&nbsp;🐞 Bug Fixes
11-
12-
- **projects**: fix export colord &nbsp;-&nbsp; by @soybeanjs [<samp>(9febe)</samp>](https://github.com/soybeanjs/color-palette/commit/9febecd)
13-
14-
### &nbsp;&nbsp;&nbsp;📖 Documentation
15-
16-
- **projects**: add CHANGELOG &nbsp;-&nbsp; by @soybeanjs [<samp>(dbd2b)</samp>](https://github.com/soybeanjs/color-palette/commit/dbd2b56)
17-
18-
### &nbsp;&nbsp;&nbsp;🏡 Chore
19-
20-
- **projects**: fix project package.json &nbsp;-&nbsp; by @soybeanjs [<samp>(39ea5)</samp>](https://github.com/soybeanjs/color-palette/commit/39ea5d0)
21-
22-
### &nbsp;&nbsp;&nbsp;❤️ Contributors
23-
24-
[![soybeanjs](https://github.com/soybeanjs.png?size=48)](https://github.com/soybeanjs)&nbsp;&nbsp;
25-
26-
## [v0.1.0](https://github.com/soybeanjs/color-palette/compare/v0.0.2...v0.1.0) (2024-06-03)
27-
28-
### &nbsp;&nbsp;&nbsp;💅 Refactors
29-
30-
- **projects**: !refactor project &nbsp;-&nbsp; by @soybeanjs [<samp>(262ee)</samp>](https://github.com/soybeanjs/color-palette/commit/262ee2c)
31-
32-
### &nbsp;&nbsp;&nbsp;❤️ Contributors
33-
34-
[![soybeanjs](https://github.com/soybeanjs.png?size=48)](https://github.com/soybeanjs)&nbsp;&nbsp;
35-
36-
## [v0.0.2](https://github.com/soybeanjs/color-palette/compare/v0.0.1...v0.0.2) (2023-11-21)
37-
38-
### &nbsp;&nbsp;&nbsp;🏡 Chore
39-
40-
- **projects**: add lock file &nbsp;-&nbsp; by @soybeanjs [<samp>(e73e7)</samp>](https://github.com/soybeanjs/color-palette/commit/e73e77b)
41-
42-
### &nbsp;&nbsp;&nbsp;❤️ Contributors
43-
44-
[![soybeanjs](https://github.com/soybeanjs.png?size=48)](https://github.com/soybeanjs)&nbsp;&nbsp;
45-
46-
47-

README.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# color-palette
2+
3+
a color palette algorithm of the site [uicolors](https://uicolors.app/create)
4+
5+
## Usage
6+
7+
### install
8+
9+
```bash
10+
pnpm i @soybeanjs/color-palette
11+
```
12+
13+
### use
14+
15+
```ts
16+
import {
17+
colorPalettes,
18+
getColorPalette,
19+
getColorByColorPaletteNumber,
20+
getColorName,
21+
} from "@soybeanjs/color-palette";
22+
```

package.json

Lines changed: 65 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -1,58 +1,67 @@
11
{
2-
"name": "@soybeanjs/color-palette",
3-
"type": "module",
4-
"version": "0.1.1",
5-
"packageManager": "pnpm@9.1.4",
6-
"repository": {
7-
"url": "https://github.com/soybeanjs/color-palette"
8-
},
9-
"publishConfig": {
10-
"registry": "https://registry.npmjs.org/"
11-
},
12-
"sideEffects": false,
13-
"exports": {
14-
".": {
15-
"types": "./dist/index.d.ts",
16-
"import": "./dist/index.js",
17-
"require": "./dist/index.cjs"
18-
}
19-
},
20-
"main": "dist/index.cjs",
21-
"module": "dist/index.js",
22-
"types": "dist/index.d.ts",
23-
"files": ["dist"],
24-
"scripts": {
25-
"build": "tsup",
26-
"cleanup": "soy cleanup",
27-
"commit": "soy git-commit",
28-
"dev": "tsup --watch",
29-
"lint": "eslint . --fix",
30-
"prepare": "simple-git-hooks",
31-
"publish-pkg": "pnpm publish --access public",
32-
"release": "soy release",
33-
"typecheck": "tsc --noEmit --skipLibCheck",
34-
"update-pkg": "soy ncu"
35-
},
36-
"dependencies": {
37-
"colord": "2.9.3"
38-
},
39-
"devDependencies": {
40-
"@soybeanjs/cli": "1.1.1",
41-
"@soybeanjs/eslint-config": "1.4.3",
42-
"@types/cli-progress": "3.11.6",
43-
"@types/node": "22.10.2",
44-
"eslint": "9.16.0",
45-
"lint-staged": "15.2.11",
46-
"simple-git-hooks": "2.11.1",
47-
"tsup": "8.3.5",
48-
"tsx": "4.19.2",
49-
"typescript": "5.7.2"
50-
},
51-
"simple-git-hooks": {
52-
"commit-msg": "pnpm soy git-commit-verify",
53-
"pre-commit": "pnpm typecheck && pnpm lint-staged"
54-
},
55-
"lint-staged": {
56-
"*": "eslint --fix"
57-
}
2+
"name": "@soybeanjs/color-palette",
3+
"type": "module",
4+
"version": "0.1.1",
5+
"packageManager": "pnpm@10.14.0",
6+
"description": "generate color palette for tailwindcss, antd, nearest color palette",
7+
"author": {
8+
"name": "Soybean",
9+
"email": "soybeanjs@outlook.com",
10+
"url": "https://github.com/soybeanjs"
11+
},
12+
"license": "MIT",
13+
"homepage": "https://github.com/soybeanjs/color-palette",
14+
"repository": {
15+
"url": "https://github.com/soybeanjs/color-palette.git"
16+
},
17+
"bugs": {
18+
"url": "https://github.com/soybeanjs/color-palette/issues"
19+
},
20+
"publishConfig": {
21+
"registry": "https://registry.npmjs.org/"
22+
},
23+
"exports": {
24+
".": {
25+
"types": "./dist/index.d.ts",
26+
"import": "./dist/index.js",
27+
"require": "./dist/index.js"
28+
}
29+
},
30+
"main": "dist/index.js",
31+
"module": "dist/index.js",
32+
"types": "dist/index.d.ts",
33+
"files": ["dist"],
34+
"scripts": {
35+
"build": "tsdown",
36+
"cleanup": "soy cleanup",
37+
"commit": "soy git-commit",
38+
"dev": "tsdown",
39+
"lint": "eslint . --fix",
40+
"prepare": "simple-git-hooks",
41+
"publish-pkg": "pnpm publish --access public",
42+
"release": "soy release",
43+
"typecheck": "tsc --noEmit --skipLibCheck",
44+
"update-pkg": "soy ncu"
45+
},
46+
"dependencies": {
47+
"colord": "2.9.3"
48+
},
49+
"devDependencies": {
50+
"@soybeanjs/cli": "1.3.1",
51+
"@soybeanjs/eslint-config": "1.7.1",
52+
"@types/node": "24.2.1",
53+
"eslint": "9.33.0",
54+
"lint-staged": "16.1.5",
55+
"simple-git-hooks": "2.13.1",
56+
"tsdown": "0.13.4",
57+
"tsx": "4.20.3",
58+
"typescript": "5.9.2"
59+
},
60+
"simple-git-hooks": {
61+
"commit-msg": "pnpm soy git-commit-verify",
62+
"pre-commit": "pnpm typecheck && pnpm lint-staged"
63+
},
64+
"lint-staged": {
65+
"*": "eslint --fix"
66+
}
5867
}

0 commit comments

Comments
 (0)