Skip to content

Commit

Permalink
CLI Update (#108)
Browse files Browse the repository at this point in the history
* add getPackageInfo()

* small index update

* removed all cli stuff for clean restart

* init: added config creation

* rename config schema

* feat(cli): rework of init command finished & fix #137

* fix: add darkmode fixes also to other files

* feat(cli): rework of add command finished
  • Loading branch information
sek-consulting authored Oct 1, 2024
1 parent 0581dc6 commit 67e19e6
Show file tree
Hide file tree
Showing 31 changed files with 1,542 additions and 1,282 deletions.
5 changes: 5 additions & 0 deletions .changeset/selfish-penguins-cover.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"solidui-cli": minor
---

complete rework of the add command to be more inline with shadcn/ui & others
5 changes: 5 additions & 0 deletions .changeset/warm-cheetahs-leave.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"solidui-cli": minor
---

complete rework of the init command to be more inline with shadcn/ui & others
12 changes: 10 additions & 2 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,16 @@
"plugins": ["solid", "tailwindcss"],
"rules": {
"@typescript-eslint/consistent-type-imports": "error",
"tailwindcss/no-custom-classname": "off",
"tailwindcss/classnames-order": "error"
"@typescript-eslint/no-unused-vars": [
"error",
{
"argsIgnorePattern": "^_",
"varsIgnorePattern": "^_",
"caughtErrorsIgnorePattern": "^_"
}
],
"tailwindcss/classnames-order": "error",
"tailwindcss/no-custom-classname": "off"
},
"settings": {
"tailwindcss": {
Expand Down
7 changes: 1 addition & 6 deletions .prettierrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,7 @@
"<THIRD_PARTY_MODULES>",
"",
"^types$",
"^~/config/(.*)$",
"^~/lib/(.*)$",
"^~/hooks/(.*)$",
"^~/components/ui/(.*)$",
"^~/components/(.*)$",
"^~/registry/(.*)$",
"^~/(.*)$",
"",
"^[./]"
],
Expand Down
3 changes: 3 additions & 0 deletions apps/docs/public/registry/index.json
Original file line number Diff line number Diff line change
Expand Up @@ -292,6 +292,9 @@
"dependencies": [
"@kobalte/core"
],
"registryDependencies": [
"button"
],
"files": [
"ui/pagination.tsx"
],
Expand Down
3 changes: 3 additions & 0 deletions apps/docs/public/registry/ui/pagination.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
"dependencies": [
"@kobalte/core"
],
"registryDependencies": [
"button"
],
"files": [
{
"name": "pagination.tsx",
Expand Down
2 changes: 1 addition & 1 deletion apps/docs/src/__registry__/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ export const Index: Record<string, any> = {
"pagination": {
name: "pagination",
type: "ui",
registryDependencies: undefined,
registryDependencies: ["button"],
component: lazy(() => import("~/registry/ui/pagination")),
files: ["registry/ui/pagination.tsx"],
},
Expand Down
1 change: 1 addition & 0 deletions apps/docs/src/registry/registry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,7 @@ const ui: Registry = [
name: "pagination",
type: "ui",
dependencies: ["@kobalte/core"],
registryDependencies: ["button"],
files: ["ui/pagination.tsx"]
},
{
Expand Down
2 changes: 1 addition & 1 deletion apps/docs/src/routes/docs/installation/manual.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ Here's what my `tailwind.config.js` file looks like:
```js
/**@type {import("tailwindcss").Config} */
module.exports = {
darkMode: ["class", '[data-kb-theme="dark"]'],
darkMode: ["variant", [".dark &", '[data-kb-theme="dark"] &']],
content: ["./src/**/*.{ts,tsx}"],
theme: {
container: {
Expand Down
2 changes: 1 addition & 1 deletion apps/docs/src/routes/docs/installation/solid-start.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ const { fontFamily } = require("tailwindcss/defaultTheme")

/** @type {import('tailwindcss').Config} */
export default {
darkMode: ["class", '[data-kb-theme="dark"]'],
darkMode: ["variant", [".dark &", '[data-kb-theme="dark"] &']],
content: ["./src/**/*.{ts,tsx}"],
theme: {
extend: {
Expand Down
4 changes: 4 additions & 0 deletions apps/docs/src/styles/app.css
Original file line number Diff line number Diff line change
Expand Up @@ -134,3 +134,7 @@
background-clip: content-box;
@apply bg-accent;
}

::-webkit-scrollbar-corner {
display: none;
}
34 changes: 17 additions & 17 deletions packages/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,11 @@
"ui",
"tailwind",
"kobalte",
"corvu",
"solid",
"solidjs",
"shadcn"
"shadcn",
"tremor"
],
"scripts": {
"build": "tsup",
Expand All @@ -40,24 +42,22 @@
"pub:release": "pnpm build && pnpm publish --access public"
},
"dependencies": {
"@antfu/ni": "^0.21.12",
"@babel/core": "^7.22.20",
"@babel/parser": "^7.22.16",
"@babel/plugin-transform-typescript": "^7.22.15",
"@clack/core": "^0.3.2",
"@clack/prompts": "^0.6.3",
"@types/babel__core": "^7.20.2",
"@antfu/ni": "^0.23.0",
"@babel/core": "^7.25.2",
"@babel/parser": "^7.25.6",
"@babel/plugin-transform-typescript": "^7.25.2",
"@clack/prompts": "^0.7.0",
"chalk": "^5.3.0",
"commander": "^11.0.0",
"json5": "^2.2.3",
"prompts": "^2.4.2",
"recast": "^0.23.4",
"ts-morph": "^20.0.0"
"commander": "^12.1.0",
"execa": "^9.4.0",
"recast": "^0.23.9",
"ts-morph": "^18.0.0",
"tsconfig-paths": "^4.2.0"
},
"devDependencies": {
"@types/node": "^18.14.0",
"@types/prompts": "^2.4.5",
"tsup": "^7.2.0",
"typescript": "^5.1.6"
"@types/babel__core": "^7.20.5",
"@types/node": "^20.14.12",
"tsup": "^8.3.0",
"typescript": "^5.6.2"
}
}
Loading

0 comments on commit 67e19e6

Please sign in to comment.