Skip to content

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.

2 participants