Skip to content

Commit 5060ae0

Browse files
authored
Merge pull request #3 from nicolethoen/fix/add-package-lock-json
Fix/add package lock json
2 parents 328dbf9 + 3c27114 commit 5060ae0

File tree

17 files changed

+16566
-39
lines changed

17 files changed

+16566
-39
lines changed

.eslintrc.cjs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ module.exports = {
1717
'react/react-in-jsx-scope': 'off',
1818
'react/prop-types': 'off',
1919
'@typescript-eslint/no-explicit-any': 'warn',
20-
'@typescript-eslint/no-unused-vars': ['error', { argsIgnorePattern: '^_' }],
20+
'@typescript-eslint/no-unused-vars': ['error', { argsIgnorePattern: '^_', varsIgnorePattern: '^_' }],
21+
'no-unused-vars': ['error', { argsIgnorePattern: '^_', varsIgnorePattern: '^_' }],
2122
},
2223
settings: {
2324
react: {

.gitignore

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@ node_modules/
33
npm-debug.log*
44
yarn-debug.log*
55
yarn-error.log*
6-
package-lock.json
76

87
# Build outputs
9-
# dist/ # Temporarily commented out to include built files
8+
dist/
109
build/
10+
*.tgz
1111

1212
# Environment variables
1313
.env

ARCHITECTURE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
## File Structure
44

55
```
6-
semantic-ui-layer/
6+
@patternfly/context-for-ai/
77
├── src/
88
│ ├── index.ts # Main entry point
99
│ ├── types/index.ts # Core type definitions

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
> **⚠️ Important**: This is a **codemod tool only**. You do NOT need to import or use any library components. Simply install the package and run the codemod to transform your existing PatternFly components. The library code in this repository is for reference/development purposes only.
44
5-
**📦 Install from npm**: `npm install -D @patternfly/context-for-ai`
5+
**📦 Install from npm**: `npm install -D @patternfly/context-for-ai`
66
**🔗 Package**: [@patternfly/context-for-ai on npm](https://www.npmjs.com/package/@patternfly/context-for-ai)
77

88
A codemod tool that automatically adds standardized semantic `data-*` attributes to **all PatternFly components** in your codebase, making them AI-friendly and easier for AI tools to understand.
@@ -188,7 +188,7 @@ npm outdated @patternfly/context-for-ai
188188

189189
```bash
190190
npm update @patternfly/context-for-ai
191-
# or
191+
# or for latest version
192192
npm install -D @patternfly/context-for-ai@latest
193193
```
194194

@@ -224,19 +224,19 @@ Check the commit history or GitHub releases to see what improvements were made i
224224
### Transform Entire Directory
225225

226226
```bash
227-
jscodeshift -t node_modules/@patternfly/context-for-ai/codemod/transform.js --extensions=ts,tsx,js,jsx --parser=tsx src/
227+
npx jscodeshift -t node_modules/@patternfly/context-for-ai/codemod/transform.js --extensions=ts,tsx,js,jsx --parser=tsx src/
228228
```
229229

230230
### Transform Specific File
231231

232232
```bash
233-
jscodeshift -t node_modules/@patternfly/context-for-ai/codemod/transform.js src/components/MyComponent.tsx
233+
npx jscodeshift -t node_modules/@patternfly/context-for-ai/codemod/transform.js src/components/MyComponent.tsx
234234
```
235235

236236
### Preview Changes (Dry Run)
237237

238238
```bash
239-
jscodeshift -t node_modules/@patternfly/context-for-ai/codemod/transform.js --dry src/
239+
npx jscodeshift -t node_modules/@patternfly/context-for-ai/codemod/transform.js --dry src/
240240
```
241241

242242
### Using the Bash Script
File renamed without changes.

0 commit comments

Comments
 (0)