@gilav21/shadcn-angular 0.0.5 → 0.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/commands/add.js +1 -1
- package/dist/commands/init.js +1 -1
- package/dist/index.js +1 -1
- package/dist/registry/index.js +8 -1
- package/package.json +2 -2
- package/src/commands/add.ts +1 -1
- package/src/commands/init.ts +1 -1
- package/src/index.ts +1 -1
- package/src/registry/index.ts +8 -1
package/dist/commands/add.js
CHANGED
|
@@ -55,7 +55,7 @@ export async function add(components, options) {
|
|
|
55
55
|
const config = await getConfig(cwd);
|
|
56
56
|
if (!config) {
|
|
57
57
|
console.log(chalk.red('Error: components.json not found.'));
|
|
58
|
-
console.log(chalk.dim('Run `npx shadcn-angular init` first.'));
|
|
58
|
+
console.log(chalk.dim('Run `npx @gilav21/shadcn-angular init` first.'));
|
|
59
59
|
process.exit(1);
|
|
60
60
|
}
|
|
61
61
|
// Get components to add
|
package/dist/commands/init.js
CHANGED
|
@@ -178,7 +178,7 @@ export async function init(options) {
|
|
|
178
178
|
}
|
|
179
179
|
spinner.succeed(chalk.green('Project initialized successfully!'));
|
|
180
180
|
console.log('\n' + chalk.bold('Next steps:'));
|
|
181
|
-
console.log(chalk.dim(' 1. Add components: ') + chalk.cyan('npx shadcn-angular add button'));
|
|
181
|
+
console.log(chalk.dim(' 1. Add components: ') + chalk.cyan('npx @gilav21/shadcn-angular add button'));
|
|
182
182
|
console.log(chalk.dim(' 2. Import and use in your templates'));
|
|
183
183
|
console.log(chalk.dim(' 3. Update your ') + chalk.bold('tsconfig.json') + chalk.dim(' paths:'));
|
|
184
184
|
console.log(chalk.dim(' "compilerOptions": {'));
|
package/dist/index.js
CHANGED
|
@@ -6,7 +6,7 @@ const program = new Command();
|
|
|
6
6
|
program
|
|
7
7
|
.name('shadcn-angular')
|
|
8
8
|
.description('CLI for adding shadcn-angular components to your Angular project')
|
|
9
|
-
.version('0.0.
|
|
9
|
+
.version('0.0.6');
|
|
10
10
|
program
|
|
11
11
|
.command('init')
|
|
12
12
|
.description('Initialize shadcn-angular in your project')
|
package/dist/registry/index.js
CHANGED
|
@@ -38,10 +38,12 @@ export const registry = {
|
|
|
38
38
|
'button-group': {
|
|
39
39
|
name: 'button-group',
|
|
40
40
|
files: ['button-group.component.ts'],
|
|
41
|
+
dependencies: ['button']
|
|
41
42
|
},
|
|
42
43
|
calendar: {
|
|
43
44
|
name: 'calendar',
|
|
44
|
-
files: ['calendar.component.ts'],
|
|
45
|
+
files: ['calendar.component.ts', 'calendar-locales.ts'],
|
|
46
|
+
dependencies: ['button', 'select'],
|
|
45
47
|
},
|
|
46
48
|
card: {
|
|
47
49
|
name: 'card',
|
|
@@ -213,4 +215,9 @@ export const registry = {
|
|
|
213
215
|
name: 'tooltip',
|
|
214
216
|
files: ['tooltip.component.ts'],
|
|
215
217
|
},
|
|
218
|
+
'speed-dial': {
|
|
219
|
+
name: 'speed-dial',
|
|
220
|
+
files: ['speed-dial.component.ts'],
|
|
221
|
+
dependencies: ['button']
|
|
222
|
+
},
|
|
216
223
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gilav21/shadcn-angular",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.6",
|
|
4
4
|
"description": "CLI for adding shadcn-angular components to your project",
|
|
5
5
|
"bin": {
|
|
6
6
|
"shadcn-angular": "./dist/index.js"
|
|
@@ -32,4 +32,4 @@
|
|
|
32
32
|
"@types/prompts": "^2.4.9",
|
|
33
33
|
"typescript": "^5.5.0"
|
|
34
34
|
}
|
|
35
|
-
}
|
|
35
|
+
}
|
package/src/commands/add.ts
CHANGED
|
@@ -70,7 +70,7 @@ export async function add(components: string[], options: AddOptions) {
|
|
|
70
70
|
const config = await getConfig(cwd);
|
|
71
71
|
if (!config) {
|
|
72
72
|
console.log(chalk.red('Error: components.json not found.'));
|
|
73
|
-
console.log(chalk.dim('Run `npx shadcn-angular init` first.'));
|
|
73
|
+
console.log(chalk.dim('Run `npx @gilav21/shadcn-angular init` first.'));
|
|
74
74
|
process.exit(1);
|
|
75
75
|
}
|
|
76
76
|
|
package/src/commands/init.ts
CHANGED
|
@@ -199,7 +199,7 @@ export async function init(options: InitOptions) {
|
|
|
199
199
|
spinner.succeed(chalk.green('Project initialized successfully!'));
|
|
200
200
|
|
|
201
201
|
console.log('\n' + chalk.bold('Next steps:'));
|
|
202
|
-
console.log(chalk.dim(' 1. Add components: ') + chalk.cyan('npx shadcn-angular add button'));
|
|
202
|
+
console.log(chalk.dim(' 1. Add components: ') + chalk.cyan('npx @gilav21/shadcn-angular add button'));
|
|
203
203
|
console.log(chalk.dim(' 2. Import and use in your templates'));
|
|
204
204
|
console.log(chalk.dim(' 3. Update your ') + chalk.bold('tsconfig.json') + chalk.dim(' paths:'));
|
|
205
205
|
console.log(chalk.dim(' "compilerOptions": {'));
|
package/src/index.ts
CHANGED
package/src/registry/index.ts
CHANGED
|
@@ -47,10 +47,12 @@ export const registry: Record<string, ComponentDefinition> = {
|
|
|
47
47
|
'button-group': {
|
|
48
48
|
name: 'button-group',
|
|
49
49
|
files: ['button-group.component.ts'],
|
|
50
|
+
dependencies: ['button']
|
|
50
51
|
},
|
|
51
52
|
calendar: {
|
|
52
53
|
name: 'calendar',
|
|
53
|
-
files: ['calendar.component.ts'],
|
|
54
|
+
files: ['calendar.component.ts', 'calendar-locales.ts'],
|
|
55
|
+
dependencies: ['button', 'select'],
|
|
54
56
|
},
|
|
55
57
|
card: {
|
|
56
58
|
name: 'card',
|
|
@@ -222,4 +224,9 @@ export const registry: Record<string, ComponentDefinition> = {
|
|
|
222
224
|
name: 'tooltip',
|
|
223
225
|
files: ['tooltip.component.ts'],
|
|
224
226
|
},
|
|
227
|
+
'speed-dial': {
|
|
228
|
+
name: 'speed-dial',
|
|
229
|
+
files: ['speed-dial.component.ts'],
|
|
230
|
+
dependencies: ['button']
|
|
231
|
+
},
|
|
225
232
|
};
|