Skip to content

Commit 3a37058

Browse files
authored
Merge c7dc9c8 into 55eaf92
2 parents 55eaf92 + c7dc9c8 commit 3a37058

32 files changed

+9896
-3053
lines changed

.changeset/pfe-cli.md

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
---
2+
"@patternfly/pfe-tools": minor
3+
"@patternfly/create-element": patch
4+
---
5+
6+
✨ Added `pfe` CLI
7+
8+
Initially provides two commands:
9+
10+
```
11+
pfe [<cmd>] [args]
12+
13+
Commands:
14+
pfe lint-exports <package> Ensure package.json contains the required package
15+
exports
16+
pfe generate [args] Generate an element [aliases: new]
17+
18+
Options:
19+
--version Show version number [boolean]
20+
--help Show help [boolean]
21+
22+
Read the docs at https://patternflyelements.org
23+
```

.eslintignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,6 @@ tools/**/*.js
4040
!elements/*/demo/*.js
4141
elements/*/demo/*.html
4242

43-
tools/create-element/templates/**/*
43+
tools/pfe-tools/cli/commands/generator/templates/**/*
4444
node_modules
4545
node_modules/**/*

.husky/pre-commit

+1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
#!/bin/sh
22
npx lint-staged
3+
node tools/pfe-tools/cli/cli.js lint exports elements --fix

elements/package.json

+1
Original file line numberDiff line numberDiff line change
@@ -120,3 +120,4 @@
120120
"tslib": "^2.4.1"
121121
}
122122
}
123+

0 commit comments

Comments
 (0)