Skip to content
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

Feat/component scaffolder #2096

Conversation

wodenx
Copy link
Contributor

@wodenx wodenx commented May 26, 2023

Changes

Test Instructions

Related Issues

@vercel
Copy link

vercel bot commented May 26, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
bodiless-js-examples ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 26, 2023 10:55am
bodiless-js-gatsby ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 26, 2023 10:55am
bodiless-js-next ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 26, 2023 10:55am
bodiless-js-starter ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 26, 2023 10:55am

@vercel
Copy link

vercel bot commented May 26, 2023

Someone is attempting to deploy a commit to the JNJ Demo Account Team on Vercel.

A member of the Team first needs to authorize it.

@@ -23,8 +23,8 @@ import {
const prompts: Prompts = [
{
type: 'input',
name: 'packageSourcePath',
message: `Path to package source(src) directory [Required],
name: 'destinationpath',
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

destinationpath => destinationPath?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no - i chose this bc it is the name used by https://github.com/SamKirkland/plop-templates. If you adopt a different vs-code integration, we may change it again.

* @category Token Collection
* @see [[{{properCase componentName}}Clean]]
*/
export interface {{properCase libraryName}}{{properCase componentName}} {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

extends DesignableComponents?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no it's a token collectionm, not a set of components.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sorry, I mean for export type {{properCase componentName}}Components:

export type {{properCase componentName}}Components extends DesignableComponents = {

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

on line 7

validate: componentNameValidator,
},
{
type: 'input',
name: 'libraryName',
message: 'Name of the library [Required]',
message: 'library name (eg. brand) [Required]',
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

library => Library
(eg. myBrand)?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes please change

@@ -42,6 +42,7 @@
"pw:run": "npx playwright test playwright/tests/smoke-deprecated/* --project=chromium --workers 1",
"playwright:run": "npx playwright test playwright/tests/smoke/* --project=chromium --workers 3",
"psh:setup-starter": "node ./scripts/psh-setup-starter",
"scaffold": "plop --plopfile packages/bodiless-scaffold/lib/config/component.js",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

how about

"scaffold": "cd packages/bodiless-scaffold && npm run scaffold",

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this was set up as the command used by https://github.com/SamKirkland/plop-templates. Anyway, using cd... won't work in case you specify the destinationpath on the cli as a relative path. I'd just remove this for now and come up with a better way of running it in scope of the repo refactor

@dewen dewen merged commit afc59db into johnsonandjohnson:feat/component-scaffolder May 26, 2023
5 of 7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants