-
Notifications
You must be signed in to change notification settings - Fork 9
feat: create metadata entries generator #272
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
base: main
Are you sure you want to change the base?
Conversation
Blocking this until #275 is merged. |
bin/commands/generate.mjs
Outdated
const releases = await getAllMajors(); | ||
|
||
await Promise.all( | ||
docs.map(async doc => { | ||
const { runGenerators } = createGenerator(doc); | ||
|
||
await runGenerators({ | ||
generators: opts.target, | ||
input: opts.input, | ||
output: opts.output && resolve(opts.output), | ||
version: coerce(opts.version), | ||
releases, | ||
gitRef: opts.gitRef, | ||
threads: parseInt(opts.threads, 10), | ||
}); | ||
}) | ||
); |
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 know this PR is still a draft, but I'm concerned that this will overload the system's CPU. We already run each generator on it's own thread, why do we need to iterate on each doc as well?
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.
@avivkeller It was a misunderstanding, fixed now. Can you take a look?
console.error('Lint failed; aborting generation.'); | ||
process.exit(1); | ||
} | ||
// if (!opts.skipLint && !runLint(docs)) { |
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'll fix this after #275 is merged, because we need the raw asts here.
f6ba0c8
to
37a572d
Compare
@araujogui I saw there is a blocked label, could you elaborate what's blocked? |
Description
Creates metadata entries generator
Related Issues
Fixes #271
Check List
node --run test
and all tests passed.node --run format
&node --run lint
.