-
Notifications
You must be signed in to change notification settings - Fork 18
feat: introduce addon-verify generator #174
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
Conversation
|
Another nit but could you also add |
flakey5
left a comment
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.
Few nits but lgtm! Thank you!
Thanks, fixed the issues. |
76cd679 to
4b2daec
Compare
AugustinMauroy
left a comment
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.
LGTM !
| * @param {string} sectionName Section name | ||
| * @returns {string} | ||
| */ | ||
| export function normalizeSectionName(sectionName) { |
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.
Does this need to be exported?
| return addons; | ||
| }, {}); | ||
|
|
||
| const files = await Promise.all( |
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.
These should be broken down to separate functions on an utility file.
| export const updateFilesForBuild = files => { | ||
| const updatedFiles = files.map(({ name, content }) => { | ||
| if (name === 'test.js') { | ||
| content = `'use strict'; |
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.
Hmmm, I wonder if there is a better way of doing it!
ovflowd
left a comment
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.
I left some comments. @araujogui could you make a follow-up PR?
Description
Create addon-verify generator
Validation
I compared the output of the old generator with this one, and they are identical.
Related Issues
Fixes #151
Check List