Skip to content

Commit

Permalink
chore: partially setup build
Browse files Browse the repository at this point in the history
  • Loading branch information
hussedev committed Oct 16, 2024
1 parent 8c85910 commit a444fd3
Show file tree
Hide file tree
Showing 10 changed files with 687 additions and 110 deletions.
42 changes: 0 additions & 42 deletions lib/App.css

This file was deleted.

35 changes: 0 additions & 35 deletions lib/App.tsx

This file was deleted.

1 change: 0 additions & 1 deletion lib/assets/react.svg

This file was deleted.

4 changes: 4 additions & 0 deletions lib/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import "./index.css";

import { Button, type ButtonProps } from "./examples/Button";
export { Button, type ButtonProps };
10 changes: 0 additions & 10 deletions lib/main.tsx

This file was deleted.

29 changes: 21 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,20 +1,28 @@
{
"name": "gitcoin-ui",
"private": true,
"version": "0.0.0",
"type": "module",
"main": "./dist/index.umd.ts",
"module": "./dist/index.es.ts",
"types": "./dist/index.d.ts",
"files": [
"dist"
],
"exports": {
".": {
"import": "./dist/index.es.ts",
"require": "./dist/index.umd.ts",
"types": "./dist/index.d.ts"
}
},
"scripts": {
"dev": "vite",
"build": "tsc -b && vite build",
"lint": "eslint .",
"build": "tsc && vite build",
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
"preview": "vite preview",
"storybook": "storybook dev -p 6006",
"build-storybook": "storybook build"
},
"dependencies": {
"react": "^18.3.1",
"react-dom": "^18.3.1"
},
"devDependencies": {
"@chromatic-com/storybook": "^1.9.0",
"@eslint/js": "^9.11.1",
Expand All @@ -28,18 +36,23 @@
"@types/react": "^18.3.10",
"@types/react-dom": "^18.3.0",
"@vitejs/plugin-react": "^4.3.2",
"@vitejs/plugin-react-swc": "^3.7.1",
"autoprefixer": "^10.4.20",
"eslint": "^9.11.1",
"eslint-plugin-react-hooks": "^5.1.0-rc.0",
"eslint-plugin-react-refresh": "^0.4.12",
"eslint-plugin-storybook": "^0.9.0",
"globals": "^15.9.0",
"postcss": "^8.4.47",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"storybook": "^8.3.5",
"tailwindcss": "^3.4.14",
"typescript": "^5.5.3",
"typescript-eslint": "^8.7.0",
"vite": "^5.4.8"
"vite": "^5.4.8",
"vite-plugin-css-injected-by-js": "^3.5.2",
"vite-plugin-dts": "^4.2.4"
},
"eslintConfig": {
"extends": [
Expand Down
Loading

0 comments on commit a444fd3

Please sign in to comment.