Skip to content

Commit

Permalink
fix(lib): add library parameters to setup things
Browse files Browse the repository at this point in the history
  • Loading branch information
bearkfear committed Aug 6, 2024
1 parent ef4a558 commit 6ec92be
Show file tree
Hide file tree
Showing 11 changed files with 1,682 additions and 1,058 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,5 @@ yarn-error.log*
next-env.d.ts

*storybook.log
storybook-static
storybook-static
dist
34 changes: 34 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# Ignore node_modules since they are not needed in the package
node_modules

# Ignore build scripts and configs
dist/
.next/
.github/
.storybook/
.vscode/

storybook-static/

biome.json
components.json
pnpm-lock.yaml
postcss.config.mjs
tailwind.config.ts
tailwind.config.ts
tsconfig.json
tsup.config.ts

# Ignore test directories and files
test/
tests/
*.test.js
*.spec.js

# Ignore local development files
.DS_Store
.env
*.log

# Ignore source files if you only want to publish the dist folder
src/
41 changes: 24 additions & 17 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,32 @@
{
"name": "ui",
"version": "0.1.0",
"private": true,
"name": "@continha/ui",
"version": "1.0.0",
"private": false,
"scripts": {
"lint": "biome check",
"dev": "storybook dev -p 6006",
"build": "storybook build"
"build": "storybook build",
"build:lib": "tsup"
},
"main": "dist/index.js",
"types": "dist/index.d.ts",
"files": [
"dist"
],
"peerDependencies": {
"@continha/formbuilder": "^1.0.2",
"@radix-ui/colors": "^3.0.0",
"class-variance-authority": "^0.7.0",
"clsx": "^2.1.1",
"lodash.get": "^4.4.2",
"lodash.isequal": "^4.5.0",
"lucide-react": "^0.411.0",
"next": "14.2.5",
"react": "^18",
"react-dom": "^18"
"react-dom": "^18",
"react-hook-form": "^7.52.2",
"react-icons": "^5.2.1",
"tailwind-merge": "^2.4.0"
},
"devDependencies": {
"@biomejs/biome": "^1.8.3",
Expand All @@ -20,6 +35,7 @@
"@storybook/addon-links": "^8.2.4",
"@storybook/addon-onboarding": "^8.2.4",
"@storybook/addon-themes": "^8.2.7",
"@storybook/addons": "^7.6.17",
"@storybook/blocks": "^8.2.4",
"@storybook/nextjs": "^8.2.4",
"@storybook/react": "^8.2.4",
Expand All @@ -29,14 +45,16 @@
"@types/node": "^20",
"@types/react": "^18",
"@types/react-dom": "^18",
"next-themes": "^0.3.0",
"postcss": "^8",
"storybook": "^8.2.4",
"storybook-tailwind-dark-mode": "^1.0.22",
"tailwindcss": "^3.4.1",
"tailwindcss-radix-colors": "^1.3.1",
"tsup": "^8.2.4",
"typescript": "^5"
},
"dependencies": {
"@radix-ui/colors": "^3.0.0",
"@radix-ui/react-alert-dialog": "^1.1.1",
"@radix-ui/react-checkbox": "^1.1.1",
"@radix-ui/react-dialog": "^1.1.1",
Expand All @@ -45,20 +63,9 @@
"@radix-ui/react-separator": "^1.1.0",
"@radix-ui/react-slot": "^1.1.0",
"@radix-ui/react-tooltip": "^1.1.2",
"@storybook/addons": "^7.6.17",
"class-variance-authority": "^0.7.0",
"clsx": "^2.1.1",
"cmdk": "^1.0.0",
"input-otp": "^1.2.4",
"lodash.get": "^4.4.2",
"lodash.isequal": "^4.5.0",
"lucide-react": "^0.411.0",
"next-themes": "^0.3.0",
"react-hook-form": "^7.52.2",
"react-icons": "^5.2.1",
"sonner": "^1.5.0",
"storybook-tailwind-dark-mode": "^1.0.22",
"tailwind-merge": "^2.4.0",
"tailwindcss-animate": "^1.0.7"
}
}
Loading

0 comments on commit 6ec92be

Please sign in to comment.