Skip to content

Commit

Permalink
remove vite
Browse files Browse the repository at this point in the history
  • Loading branch information
abvthecity committed Sep 14, 2024
1 parent dc97e42 commit cefe74f
Show file tree
Hide file tree
Showing 10 changed files with 240 additions and 293 deletions.
1 change: 1 addition & 0 deletions packages/ui/chatbot/.depcheckrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{ "ignores": ["@fern-platform/configs", "@types/node", "vite", "@types/react"], "ignore-patterns": ["dist"] }
23 changes: 17 additions & 6 deletions packages/ui/chatbot/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,17 @@
"*.scss"
],
"scripts": {
"dev": "vite",
"build": "tsc -b && vite build",
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
"preview": "vite preview"
"clean": "rm -rf ./lib && tsc --build --clean",
"compile": "tsc --build",
"test": "vitest --run --passWithNoTests --globals",
"lint:eslint": "eslint --max-warnings 0 . --ignore-path=../../../.eslintignore",
"lint:eslint:fix": "pnpm lint:eslint --fix",
"lint:style": "stylelint 'src/**/*.scss' --allow-empty-input --max-warnings 0",
"lint:style:fix": "pnpm lint:style --fix",
"format": "prettier --write --ignore-unknown --ignore-path ../../../shared/.prettierignore \"**\"",
"format:check": "prettier --check --ignore-unknown --ignore-path ../../../shared/.prettierignore \"**\"",
"organize-imports": "organize-imports-cli tsconfig.json",
"depcheck": "depcheck"
},
"dependencies": {
"@fern-ui/components": "workspace:*",
Expand All @@ -38,21 +45,25 @@
"uuid": "^9.0.0"
},
"devDependencies": {
"@fern-platform/configs": "workspace:*",
"@tailwindcss/typography": "^0.5.10",
"@types/hast": "^3.0.4",
"@types/react": "^18.3.3",
"@types/react-dom": "^18.3.0",
"@types/uuid": "^9.0.1",
"@typescript-eslint/eslint-plugin": "^7.15.0",
"@typescript-eslint/parser": "^7.15.0",
"@vitejs/plugin-react-swc": "^3.5.0",
"autoprefixer": "^10.4.16",
"depcheck": "^1.4.3",
"eslint": "^8.57.0",
"eslint-plugin-react-hooks": "^4.6.2",
"eslint-plugin-react-refresh": "^0.4.7",
"organize-imports-cli": "^0.10.0",
"postcss": "^8.4.33",
"prettier": "^3.3.2",
"stylelint": "^16.1.0",
"tailwind": "^4.0.0",
"typescript": "5.4.3",
"vite": "^5.3.4"
"vitest": "^2.1.1"
}
}
3 changes: 2 additions & 1 deletion packages/ui/chatbot/src/App.scss
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
@layer components {
.icon-2xl {
@apply size-8 shrink-0;

stroke-width: 1.5;
}
}
Expand All @@ -30,7 +31,7 @@
:root {
color-scheme: light dark;
font-synthesis: none;
text-rendering: optimizeLegibility;
text-rendering: optimizelegibility;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;

Expand Down
2 changes: 1 addition & 1 deletion packages/ui/chatbot/src/atoms/atomWithSessionStorage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export function atomWithSessionStorage<Value>(
if (event.newValue === null) {
callback(initialValue);
} else {
return initialValue;
callback(JSON.parse(event.newValue));
}
}
};
Expand Down
1 change: 1 addition & 0 deletions packages/ui/chatbot/src/index.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
@layer components {
.fern-chatbot-terminator {
@apply bg-black dark:bg-white;

display: inline-block;
width: 10px;
height: 10px;
Expand Down
28 changes: 0 additions & 28 deletions packages/ui/chatbot/tsconfig.app.json

This file was deleted.

15 changes: 5 additions & 10 deletions packages/ui/chatbot/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,9 @@
{
"extends": "@fern-platform/configs/tsconfig/react-library.json",
"compilerOptions": {
"composite": true
"outDir": "./dist",
"rootDir": "./src"
},
"files": [],
"references": [
{
"path": "./tsconfig.app.json"
},
{
"path": "./tsconfig.node.json"
}
]
"include": ["./src/**/*"],
"references": [{ "path": "../../commons/react/react-commons" }, { "path": "../components" }]
}
13 changes: 0 additions & 13 deletions packages/ui/chatbot/tsconfig.node.json

This file was deleted.

7 changes: 0 additions & 7 deletions packages/ui/chatbot/vite.config.ts

This file was deleted.

Loading

0 comments on commit cefe74f

Please sign in to comment.