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

Changing build to possible use parser output for learningObjectives #1681

Draft
wants to merge 3 commits into
base: next
Choose a base branch
from

Conversation

unjust
Copy link
Member

@unjust unjust commented Jan 2, 2024

Adds to build.mjs using curriculum-parser to generate learning-objectives.json file (if not validating)

Comparing the output json of dist/learning-objectives.json to what is in the curriculum now there was [no difference]

Comment on lines +136 to +137
// '--repo', repository,
// '--version', version,
Copy link
Member Author

Choose a reason for hiding this comment

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

repo y version seran necesarios?

Comment on lines +171 to +175
const json = await JSON.parse(await readFile(dest));
await writeFile(
path.join(buildDir, 'learning-objectives.json'),
JSON.stringify(json, null, 2),
);
Copy link
Member Author

Choose a reason for hiding this comment

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

this step may be unnecessary since fd is the same (we are just reading and writing the same file)

@unjust unjust marked this pull request as ready for review January 10, 2024 20:02
@unjust unjust mentioned this pull request Mar 6, 2024
3 tasks
@unjust unjust self-assigned this Apr 4, 2024
@unjust unjust marked this pull request as draft April 4, 2024 00:09
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.

curriculum should use curriculum parser to parse OAs
1 participant