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

Markdown to HTML in gulp script #639

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

CedricGuillemet
Copy link
Contributor

gulp script that converts a .MD file to Notice.html that can then be packaged with the npm.
As a test, this script converts the readme file.

Result:

image

TODO:

  • get the notice.md file
  • add the buildNotice step into the build/package process


let assemblediOSAndroidDir = 'Assembled-iOSAndroid';
let assembledWindowsDir = 'Assembled-Windows';
let basekitBuild = false;
let cmakeBasekitBuildDefinition = '';
let basekitPackagePath = '';


const makeHTMLNotice = async () => {
Copy link
Member

Choose a reason for hiding this comment

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

This function is marked async but then uses fs with callbacks. I believe these days you can do const fs = require('fs/promises') instead and use Promise returning async functions.

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