hale-commenting-system 2.1.0 → 2.1.1
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 +1 -1
- package/bin/generators.js +2 -2
- package/bin/onboarding.js +11 -6
- package/dist/cli/generators.js +2 -2
- package/dist/cli/onboarding.js +11 -6
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -20,7 +20,7 @@ After installation, the onboarding flow will automatically start to help you con
|
|
|
20
20
|
|
|
21
21
|
## Requirements
|
|
22
22
|
|
|
23
|
-
- PatternFly Seed project
|
|
23
|
+
- PatternFly Seed project with PatternFly v6+ (`@patternfly/react-core` ^6.0.0)
|
|
24
24
|
- GitHub account with OAuth app
|
|
25
25
|
- Jira access (Red Hat Jira: issues.redhat.com)
|
|
26
26
|
|
package/bin/generators.js
CHANGED
|
@@ -121,8 +121,8 @@ async function integrateIntoProject() {
|
|
|
121
121
|
return;
|
|
122
122
|
}
|
|
123
123
|
// Read the template
|
|
124
|
-
// In compiled output, templates
|
|
125
|
-
const packageRoot = path.resolve(__dirname, '
|
|
124
|
+
// In compiled output, templates are in the package root (same level as bin/)
|
|
125
|
+
const packageRoot = path.resolve(__dirname, '..');
|
|
126
126
|
const templatePath = path.join(packageRoot, 'templates', 'webpack-middleware.js');
|
|
127
127
|
if (!fs.existsSync(templatePath)) {
|
|
128
128
|
console.log(' ⚠️ Template file not found. Manual integration required.');
|
package/bin/onboarding.js
CHANGED
|
@@ -276,14 +276,19 @@ async function runOnboarding() {
|
|
|
276
276
|
console.log('🎫 Step 3: Jira Setup\n');
|
|
277
277
|
console.log('You can link Jira tickets to pages in your design. This helps connect');
|
|
278
278
|
console.log('design work to development tracking.\n');
|
|
279
|
-
console.log('For Red Hat Jira, generate a Personal Access Token
|
|
280
|
-
console.log('https://issues.redhat.com/secure/ViewProfile.jspa
|
|
279
|
+
console.log('For Red Hat Jira, generate a Personal Access Token:');
|
|
280
|
+
console.log('1. Visit: https://issues.redhat.com/secure/ViewProfile.jspa');
|
|
281
|
+
console.log('2. Click "Personal Access Tokens" in the left sidebar');
|
|
282
|
+
console.log('3. Click "Create token"');
|
|
283
|
+
console.log('4. Give it a name (e.g., "Hale Commenting System")');
|
|
284
|
+
console.log('5. Remove expiration (or set a long expiration)');
|
|
285
|
+
console.log('6. Click "Create" and copy the token\n');
|
|
281
286
|
console.log('Note: We use Bearer token authentication (no email required for Red Hat Jira).\n');
|
|
282
287
|
const jiraAnswers = await inquirer_1.default.prompt([
|
|
283
288
|
{
|
|
284
289
|
type: 'input',
|
|
285
290
|
name: 'baseUrl',
|
|
286
|
-
message: 'Jira Base URL:',
|
|
291
|
+
message: 'Jira Base URL (press Enter for Red Hat Jira):',
|
|
287
292
|
default: 'https://issues.redhat.com',
|
|
288
293
|
validate: (input) => {
|
|
289
294
|
if (!input.trim())
|
|
@@ -338,7 +343,7 @@ async function runOnboarding() {
|
|
|
338
343
|
await generators.integrateIntoProject();
|
|
339
344
|
console.log('\n✅ Setup complete!');
|
|
340
345
|
console.log('\nNext steps:');
|
|
341
|
-
console.log('1.
|
|
342
|
-
console.log('
|
|
343
|
-
console.log('
|
|
346
|
+
console.log('1. Start your dev server: npm run start:dev');
|
|
347
|
+
console.log(' (If it\'s already running, restart it to load the new configuration)');
|
|
348
|
+
console.log('2. The commenting system will be available in your app!\n');
|
|
344
349
|
}
|
package/dist/cli/generators.js
CHANGED
|
@@ -121,8 +121,8 @@ async function integrateIntoProject() {
|
|
|
121
121
|
return;
|
|
122
122
|
}
|
|
123
123
|
// Read the template
|
|
124
|
-
// In compiled output, templates
|
|
125
|
-
const packageRoot = path.resolve(__dirname, '
|
|
124
|
+
// In compiled output, templates are in the package root (same level as bin/)
|
|
125
|
+
const packageRoot = path.resolve(__dirname, '..');
|
|
126
126
|
const templatePath = path.join(packageRoot, 'templates', 'webpack-middleware.js');
|
|
127
127
|
if (!fs.existsSync(templatePath)) {
|
|
128
128
|
console.log(' ⚠️ Template file not found. Manual integration required.');
|
package/dist/cli/onboarding.js
CHANGED
|
@@ -276,14 +276,19 @@ async function runOnboarding() {
|
|
|
276
276
|
console.log('🎫 Step 3: Jira Setup\n');
|
|
277
277
|
console.log('You can link Jira tickets to pages in your design. This helps connect');
|
|
278
278
|
console.log('design work to development tracking.\n');
|
|
279
|
-
console.log('For Red Hat Jira, generate a Personal Access Token
|
|
280
|
-
console.log('https://issues.redhat.com/secure/ViewProfile.jspa
|
|
279
|
+
console.log('For Red Hat Jira, generate a Personal Access Token:');
|
|
280
|
+
console.log('1. Visit: https://issues.redhat.com/secure/ViewProfile.jspa');
|
|
281
|
+
console.log('2. Click "Personal Access Tokens" in the left sidebar');
|
|
282
|
+
console.log('3. Click "Create token"');
|
|
283
|
+
console.log('4. Give it a name (e.g., "Hale Commenting System")');
|
|
284
|
+
console.log('5. Remove expiration (or set a long expiration)');
|
|
285
|
+
console.log('6. Click "Create" and copy the token\n');
|
|
281
286
|
console.log('Note: We use Bearer token authentication (no email required for Red Hat Jira).\n');
|
|
282
287
|
const jiraAnswers = await inquirer_1.default.prompt([
|
|
283
288
|
{
|
|
284
289
|
type: 'input',
|
|
285
290
|
name: 'baseUrl',
|
|
286
|
-
message: 'Jira Base URL:',
|
|
291
|
+
message: 'Jira Base URL (press Enter for Red Hat Jira):',
|
|
287
292
|
default: 'https://issues.redhat.com',
|
|
288
293
|
validate: (input) => {
|
|
289
294
|
if (!input.trim())
|
|
@@ -338,7 +343,7 @@ async function runOnboarding() {
|
|
|
338
343
|
await generators.integrateIntoProject();
|
|
339
344
|
console.log('\n✅ Setup complete!');
|
|
340
345
|
console.log('\nNext steps:');
|
|
341
|
-
console.log('1.
|
|
342
|
-
console.log('
|
|
343
|
-
console.log('
|
|
346
|
+
console.log('1. Start your dev server: npm run start:dev');
|
|
347
|
+
console.log(' (If it\'s already running, restart it to load the new configuration)');
|
|
348
|
+
console.log('2. The commenting system will be available in your app!\n');
|
|
344
349
|
}
|