Skip to content

Commit 67e19e6

Browse files
CLI Update (#108)
* 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
1 parent 0581dc6 commit 67e19e6

31 files changed

Lines changed: 1542 additions & 1282 deletions
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"solidui-cli": minor
3+
---
4+
5+
complete rework of the add command to be more inline with shadcn/ui & others

.changeset/warm-cheetahs-leave.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"solidui-cli": minor
3+
---
4+
5+
complete rework of the init command to be more inline with shadcn/ui & others

.eslintrc.json

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,16 @@
1010
"plugins": ["solid", "tailwindcss"],
1111
"rules": {
1212
"@typescript-eslint/consistent-type-imports": "error",
13-
"tailwindcss/no-custom-classname": "off",
14-
"tailwindcss/classnames-order": "error"
13+
"@typescript-eslint/no-unused-vars": [
14+
"error",
15+
{
16+
"argsIgnorePattern": "^_",
17+
"varsIgnorePattern": "^_",
18+
"caughtErrorsIgnorePattern": "^_"
19+
}
20+
],
21+
"tailwindcss/classnames-order": "error",
22+
"tailwindcss/no-custom-classname": "off"
1523
},
1624
"settings": {
1725
"tailwindcss": {

.prettierrc.json

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,7 @@
1313
"<THIRD_PARTY_MODULES>",
1414
"",
1515
"^types$",
16-
"^~/config/(.*)$",
17-
"^~/lib/(.*)$",
18-
"^~/hooks/(.*)$",
19-
"^~/components/ui/(.*)$",
20-
"^~/components/(.*)$",
21-
"^~/registry/(.*)$",
16+
"^~/(.*)$",
2217
"",
2318
"^[./]"
2419
],

apps/docs/public/registry/index.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -292,6 +292,9 @@
292292
"dependencies": [
293293
"@kobalte/core"
294294
],
295+
"registryDependencies": [
296+
"button"
297+
],
295298
"files": [
296299
"ui/pagination.tsx"
297300
],

apps/docs/public/registry/ui/pagination.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
"dependencies": [
44
"@kobalte/core"
55
],
6+
"registryDependencies": [
7+
"button"
8+
],
69
"files": [
710
{
811
"name": "pagination.tsx",

apps/docs/src/__registry__/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ export const Index: Record<string, any> = {
226226
"pagination": {
227227
name: "pagination",
228228
type: "ui",
229-
registryDependencies: undefined,
229+
registryDependencies: ["button"],
230230
component: lazy(() => import("~/registry/ui/pagination")),
231231
files: ["registry/ui/pagination.tsx"],
232232
},

apps/docs/src/registry/registry.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,7 @@ const ui: Registry = [
183183
name: "pagination",
184184
type: "ui",
185185
dependencies: ["@kobalte/core"],
186+
registryDependencies: ["button"],
186187
files: ["ui/pagination.tsx"]
187188
},
188189
{

apps/docs/src/routes/docs/installation/manual.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ Here's what my `tailwind.config.js` file looks like:
6767
```js
6868
/**@type {import("tailwindcss").Config} */
6969
module.exports = {
70-
darkMode: ["class", '[data-kb-theme="dark"]'],
70+
darkMode: ["variant", [".dark &", '[data-kb-theme="dark"] &']],
7171
content: ["./src/**/*.{ts,tsx}"],
7272
theme: {
7373
container: {

apps/docs/src/routes/docs/installation/solid-start.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ const { fontFamily } = require("tailwindcss/defaultTheme")
8686

8787
/** @type {import('tailwindcss').Config} */
8888
export default {
89-
darkMode: ["class", '[data-kb-theme="dark"]'],
89+
darkMode: ["variant", [".dark &", '[data-kb-theme="dark"] &']],
9090
content: ["./src/**/*.{ts,tsx}"],
9191
theme: {
9292
extend: {

0 commit comments

Comments
 (0)