Closed bennypowers closed 4 years ago
The command seems correct, and it seems to works on my machine :-)
I have couple of questions in order to fix the problem:
--dry
flag? --dry
doesn't anything, what happens if you run it with the --verbose
flag?README.md
files already exist?Doesn't seem to make any difference at all
> the-binah-tree@1.0.0 analyze /Users/bennyp/Documents/the-binah-tree
> wca analyze 'src/components/**/*.ts' --outFiles '{dir}/README.md' --dry --verbose
Analyzing 10 files...
# define-element
## Properties
| Property | Type | Default |
|----------|--------------------|--------------|
| `mo` | `MutationObserver` | **required** |
# tbt-account
## Properties
| Property | Attribute | Type | Default |
|----------|-----------|-----------|---------|
| `active` | `active` | `boolean` | false |
| `state` | | `any` | |
| `target` | | `any` | |
# tbt-app
## Properties
| Property | Attribute | Type | Default |
|---------------|---------------|---------------------------|--------------|
| `pages` | | `NodeListOf<PageElement>` | **required** |
| `state` | | `any` | |
| `testimonial` | `testimonial` | `any` | |
# tbt-auth
## Properties
| Property | Attribute | Type | Default |
|-------------|-----------|---------------|--------------|
| `container` | | `HTMLElement` | **required** |
| `hidden` | `hidden` | `boolean` | false |
| `loaded` | `loaded` | `boolean` | false |
| `state` | | `any` | |
# tbt-info
## Properties
| Property | Type | Default |
|-----------|----------------------|--------------|
| `details` | `HTMLDetailsElement` | **required** |
# tbt-subscribe
## Properties
| Property | Attribute | Type | Default |
|------------------------|-----------|------------------------|--------------|
| `active` | `active` | `boolean` | false |
| `pricingTable` | | `HTMLElement` | **required** |
| `state` | | `any` | |
| `stripeElements` | | `StripeElements` | |
| `stripePaymentRequest` | | `StripePaymentRequest` | |
| `target` | | `HTMLElement` | **required** |
same for just --dry
or just --verbose
There are READMEs in that glob, but not under dirs that also have .ts
$ ls src/components/**/*.md
src/components/tbt-blurb/README.md src/components/tbt-loader/README.md src/components/tbt-testimonial/README.md
src/components/tbt-card/README.md src/components/tbt-pricing-table/README.md src/components/tbt-tier/README.md
$ ls src/components/**/*.ts
src/components/define-element/define-element.ts src/components/tbt-app/tbt-app.test.ts src/components/tbt-info/tbt-info.ts
src/components/define-element/define.ts src/components/tbt-app/tbt-app.ts src/components/tbt-subscribe/tbt-subscribe.ts
src/components/tbt-account/account-state.ts src/components/tbt-auth/auth-state.ts
src/components/tbt-account/tbt-account.ts src/components/tbt-auth/tbt-auth.ts
It seems like it doesn't pick up on the flags at all. Eg. if it picked up on the --outFiles
it wouldn't log the content of the components.
I have some more questions just to rule out things:
npx wca --version
/ npm ls web-component-analyzer
(latest version is 1.0.3)'src/components/**/*.ts'
as the last parameter?--out-files
or remove analyze
from the command?Definitely an old version. derp!
thanks for helping me debug
No problem, I’m glad I was able to help :-)
Maybe I'm doing this wrong, but
prints to the console but does not write files