Skip to content

Commit

Permalink
feat: create color package
Browse files Browse the repository at this point in the history
  • Loading branch information
vtrbo committed Oct 26, 2023
1 parent 93f5c37 commit d8e0ee3
Show file tree
Hide file tree
Showing 8 changed files with 82 additions and 0 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@
},
"dependencies": {
"@vtrbo/utils-arr": "workspace:*",
"@vtrbo/utils-color": "workspace:*",
"@vtrbo/utils-is": "workspace:*",
"@vtrbo/utils-log": "workspace:*",
"@vtrbo/utils-obj": "workspace:*",
Expand Down
2 changes: 2 additions & 0 deletions packages/color/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
export * from './types'
export * from './src/color'
56 changes: 56 additions & 0 deletions packages/color/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
{
"name": "@vtrbo/utils-color",
"type": "module",
"version": "0.4.0-beta.4",
"description": "Collection of common JavaScript or TypeScript utils.",
"author": {
"name": "Victor Bo",
"email": "hi@vtrbo.cn"
},
"license": "MIT",
"homepage": "https://github.com/vtrbo",
"bugs": "https://github.com/vtrbo/utils/issues",
"keywords": [
"typescript",
"javascript",
"utils",
"vue",
"react",
"svelte",
"vite"
],
"exports": {
".": {
"types": "./index.d.ts",
"import": "./index.js",
"require": "./index.cjs"
}
},
"main": "./index.js",
"module": "./index.js",
"types": "./index.d.ts",
"typesVersions": {
"*": {
"*": [
"./*",
"./index.d.ts"
]
}
},
"files": [
"README.md",
"index.cjs",
"index.d.cts",
"index.d.ts",
"index.js"
],
"scripts": {
"build": "tsup",
"clean": "pnpm clean:dist && pnpm clean:deps",
"clean:dist": "rimraf dist",
"clean:deps": "rimraf node_modules"
},
"dependencies": {
"@vtrbo/utils-tool": "workspace:*"
}
}
3 changes: 3 additions & 0 deletions packages/color/src/color.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export function fn() {
return ''
}
9 changes: 9 additions & 0 deletions packages/color/tsup.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import { defineConfig } from 'tsup'

export default defineConfig({
entry: ['index.ts'],
format: ['cjs', 'esm'],
dts: true,
clean: true,
splitting: true,
})
1 change: 1 addition & 0 deletions packages/color/types/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export type Test = string
1 change: 1 addition & 0 deletions packages/core/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ export * from '@vtrbo/utils-log'
export * from '@vtrbo/utils-obj'
export * from '@vtrbo/utils-arr'
export * from '@vtrbo/utils-str'
export * from '@vtrbo/utils-color'
9 changes: 9 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit d8e0ee3

Please sign in to comment.