-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add create-component script and improve create-package #16197
Conversation
Updating fork from master
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. Latest deployment of this branch, based on commit b957609:
|
Perf AnalysisNo significant results to display. All results
Perf Analysis (Fluent)Perf comparison
Perf tests with no regressions
|
Asset size changesSize Auditor did not detect a change in bundle size for any component! Baseline commit: 7f659ff8d22cb6f0f352e7eefa04fda7b4fbd5b3 (build) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good! Thanks for doing this!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks pretty great!
...ate-component/templates/component/src/components/{{componentName}}/{{componentName}}.tsx.hbs
Outdated
Show resolved
Hide resolved
...nent/templates/component/src/components/{{componentName}}/use{{componentName}}Classes.ts.hbs
Outdated
Show resolved
Hide resolved
scripts/create-package/plop-templates-storybook/demo/index.tsx.hbs
Outdated
Show resolved
Hide resolved
...nent/templates/component/src/components/{{componentName}}/use{{componentName}}Classes.ts.hbs
Outdated
Show resolved
Hide resolved
...e-component/templates/component/src/components/{{componentName}}/use{{componentName}}.ts.hbs
Outdated
Show resolved
Hide resolved
...nent/templates/component/src/components/{{componentName}}/use{{componentName}}Classes.ts.hbs
Outdated
Show resolved
Hide resolved
...e-component/templates/component/src/components/{{componentName}}/use{{componentName}}.ts.hbs
Outdated
Show resolved
Hide resolved
scripts/create-component/templates/storybook/{{componentName}}.stories.tsx.hbs
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for doing this, but there are some improvements I'd like to see before this goes in.
scripts/create-package/plop-templates-storybook/demo/index.tsx.hbs
Outdated
Show resolved
Hide resolved
scripts/create-component/templates/component/src/common/isConformant.ts
Outdated
Show resolved
Hide resolved
...nent/templates/component/src/components/{{componentName}}/use{{componentName}}Classes.ts.hbs
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some additional comments below. Really sorry about the delayed review here!! One thing that would help in the future would be to consider splitting changes touching multiple discrete areas into multiple PRs, in this case doing the create-package fixes and create-component addition separately (though to be fair I'm not always the best about this myself).
Of all these comments and the previous ones, I think the most critical to address before initial check-in is getting rid of the brackets in the filenames--as mentioned in a later comment about that, while it's technically allowed, it's almost certain to break something. The rest could potentially be addressed later.
scripts/create-component/templates/component/src/components/{{componentName}}/index.ts.hbs
Outdated
Show resolved
Hide resolved
c226b47
to
87b3746
Compare
…ts/use{{componentName}}.ts.hbs
scripts/create-component/plop-templates-storybook/{{componentName}}.stories.tsx.hbs
Outdated
Show resolved
Hide resolved
...ponent/plop-templates-component/src/components/{{componentName}}/use{{componentName}}.ts.hbs
Outdated
Show resolved
Hide resolved
…ts\{{componentName}}\use{{componentName}}.ts.hbs
Associated with
#15929
Description of changes
create-package:
Bug Fix
New
create-component:
New
Focus areas to test
create-component / create-package