@open-rlb/ng-bootstrap 3.3.24 → 3.3.26
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/README.md +3 -1
- package/package.json +2 -2
- package/schematics/ng-add/claude-skills/date-tz/SKILL.md +375 -0
- package/schematics/ng-add/claude-skills/rlb-calendar/SKILL.md +450 -0
- package/schematics/ng-add/claude-skills/rlb-components/SKILL.md +364 -0
- package/schematics/ng-add/claude-skills/rlb-datatable/SKILL.md +295 -0
- package/schematics/ng-add/claude-skills/rlb-design/SKILL.md +120 -0
- package/schematics/ng-add/claude-skills/rlb-inputs/SKILL.md +326 -0
- package/schematics/ng-add/claude-skills/rlb-modals/SKILL.md +236 -0
- package/schematics/ng-add/index.js +19 -5
- package/schematics/ng-add/schema.json +5 -0
|
@@ -10,7 +10,7 @@ const utility_1 = require("@schematics/angular/utility");
|
|
|
10
10
|
*/
|
|
11
11
|
const DEPENDENCIES = [
|
|
12
12
|
{ name: '@open-rlb/date-tz', version: '^2.1.1', type: utility_1.DependencyType.Default },
|
|
13
|
-
{ name: '@ngx-translate/core', version: '^
|
|
13
|
+
{ name: '@ngx-translate/core', version: '^17.0.0', type: utility_1.DependencyType.Default },
|
|
14
14
|
{ name: '@angular/cdk', version: '^21.0.0', type: utility_1.DependencyType.Default },
|
|
15
15
|
{ name: 'bootstrap', version: '^5.3.0', type: utility_1.DependencyType.Default },
|
|
16
16
|
{ name: 'bootstrap-icons', version: '^1.11.0', type: utility_1.DependencyType.Default },
|
|
@@ -33,8 +33,10 @@ function ngAdd(options) {
|
|
|
33
33
|
(0, utility_1.addRootProvider)(project, ({ code, external }) => code `${external('provideRlbBootstrap', '@open-rlb/ng-bootstrap')}()`),
|
|
34
34
|
// 4. Optionally scaffold a starter component.
|
|
35
35
|
options.skipStarter ? noop : scaffoldStarter(tree, project),
|
|
36
|
-
// 5.
|
|
37
|
-
|
|
36
|
+
// 5. Optionally copy the bundled Claude skills into .claude/skills.
|
|
37
|
+
options.skipSkills ? noop : copyClaudeSkills(),
|
|
38
|
+
// 6. Print next steps.
|
|
39
|
+
logNextSteps(project, options),
|
|
38
40
|
]);
|
|
39
41
|
};
|
|
40
42
|
}
|
|
@@ -88,7 +90,16 @@ function scaffoldStarter(tree, project) {
|
|
|
88
90
|
return (0, schematics_1.mergeWith)(templates, schematics_1.MergeStrategy.Default);
|
|
89
91
|
};
|
|
90
92
|
}
|
|
91
|
-
|
|
93
|
+
/**
|
|
94
|
+
* Copies the Claude skills bundled with the package into the consumer's
|
|
95
|
+
* `.claude/skills` folder. Library-authored skills are authoritative, so existing
|
|
96
|
+
* copies are overwritten to stay in sync with the installed version.
|
|
97
|
+
*/
|
|
98
|
+
function copyClaudeSkills() {
|
|
99
|
+
const skills = (0, schematics_1.apply)((0, schematics_1.url)('./claude-skills'), [(0, schematics_1.move)('.claude/skills')]);
|
|
100
|
+
return (0, schematics_1.mergeWith)(skills, schematics_1.MergeStrategy.Overwrite);
|
|
101
|
+
}
|
|
102
|
+
function logNextSteps(project, options) {
|
|
92
103
|
return (_tree, context) => {
|
|
93
104
|
const log = context.logger;
|
|
94
105
|
log.info('');
|
|
@@ -96,10 +107,13 @@ function logNextSteps(project, skipStarter) {
|
|
|
96
107
|
log.info(` • Dependencies installed and added to package.json`);
|
|
97
108
|
log.info(` • Bootstrap + Bootstrap Icons styles registered in angular.json`);
|
|
98
109
|
log.info(` • provideRlbBootstrap() wired into the "${project}" app providers`);
|
|
99
|
-
if (!skipStarter) {
|
|
110
|
+
if (!options.skipStarter) {
|
|
100
111
|
log.info(' • Starter component generated at src/app/rlb-starter/');
|
|
101
112
|
log.info(' Render it to verify the setup, e.g. add <app-rlb-starter /> to a template.');
|
|
102
113
|
}
|
|
114
|
+
if (!options.skipSkills) {
|
|
115
|
+
log.info(' • Claude skills copied to .claude/skills/ (date-tz, rlb-* component guides)');
|
|
116
|
+
}
|
|
103
117
|
log.info('');
|
|
104
118
|
};
|
|
105
119
|
}
|
|
@@ -15,6 +15,11 @@
|
|
|
15
15
|
"type": "boolean",
|
|
16
16
|
"default": false,
|
|
17
17
|
"description": "Do not scaffold the RlbStarterComponent example."
|
|
18
|
+
},
|
|
19
|
+
"skipSkills": {
|
|
20
|
+
"type": "boolean",
|
|
21
|
+
"default": false,
|
|
22
|
+
"description": "Do not copy the bundled Claude skills into .claude/skills."
|
|
18
23
|
}
|
|
19
24
|
},
|
|
20
25
|
"required": []
|