Skip to content

Update build paths to include src/bento/components#175

Merged
sebastianbenz merged 1 commit intoampproject:mainfrom
rileyajones:add-bento-components-dir
Feb 11, 2022
Merged

Update build paths to include src/bento/components#175
sebastianbenz merged 1 commit intoampproject:mainfrom
rileyajones:add-bento-components-dir

Conversation

@rileyajones
Copy link
Contributor

As we migrate components within amphtml the location of their documentation is changing. This PR should ensure the new doc locations are picked up as well.

ampproject/amphtml#36461

Copy link
Member

@alanorozco alanorozco left a comment

Choose a reason for hiding this comment

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

@sebastianbenz Could we get a review? 🙂

async function importComponents() {
const filePaths = await fg(path.join(EXTENSIONS_SRC, '**/1.0/README.md'));
const filePaths = await fg([
path.join(EXTENSIONS_SRC, '**/1.0/README.md'),
Copy link
Collaborator

Choose a reason for hiding this comment

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

Are there bento components still left in extensions? Or will they be moved on a 1 by 1 bases?

Copy link
Member

Choose a reason for hiding this comment

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

They'll all be moved, but there's some leftover. If it helps, we could move all of README.md and example/ into src/bento before merging this.

Copy link
Collaborator

Choose a reason for hiding this comment

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

I was just curious. Works for me as is.

Copy link
Collaborator

@sebastianbenz sebastianbenz left a comment

Choose a reason for hiding this comment

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

LGTM - thanks! Please let me know once all components have moved and we can remove the code for the extensions dir.

async function importComponents() {
const filePaths = await fg(path.join(EXTENSIONS_SRC, '**/1.0/README.md'));
const filePaths = await fg([
path.join(EXTENSIONS_SRC, '**/1.0/README.md'),
Copy link
Collaborator

Choose a reason for hiding this comment

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

I was just curious. Works for me as is.

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.

3 participants