Skip to content

Optimize build flow, divide default build into release build and debu…#2288

Closed
JesseCodeBones wants to merge 1 commit intoAssemblyScript:mainfrom
JesseCodeBones:issue-2286
Closed

Optimize build flow, divide default build into release build and debu…#2288
JesseCodeBones wants to merge 1 commit intoAssemblyScript:mainfrom
JesseCodeBones:issue-2286

Conversation

@JesseCodeBones
Copy link
Copy Markdown
Contributor

@JesseCodeBones JesseCodeBones commented May 10, 2022

npm run build:debug means debug version (un-minified js files, contains the source maps)
npm run build:release means release version (source maps without source content, minified js files)

issue link:
#2286

Signed-off-by: Jesse xiang19890319@gmail.com

  • I've read the contributing guidelines
  • I've added my name and email to the NOTICE file

…g build

Signed-off-by: Jesse <xiang19890319@gmail.com>
Comment thread scripts/build.js
Comment on lines +13 to +14
const debug = process.argv[2] === "--debug";
const release = process.argv[2] === "--release";
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Should there perhaps be a default here if no build type is specified? Seems that right now this would result in debug = false and release = false. For example:

Suggested change
const debug = process.argv[2] === "--debug";
const release = process.argv[2] === "--release";
const debug = process.argv[2] === "--debug";
const release = process.argv[2] === "--release" || !debug;

@github-actions
Copy link
Copy Markdown

github-actions bot commented Nov 6, 2023

This PR has been automatically marked as stale because it has not had recent activity. It will be closed in one week if no further activity occurs. Thank you for your contributions!

@github-actions github-actions bot added the stale label Nov 6, 2023
@github-actions
Copy link
Copy Markdown

This PR has been automatically closed due to lack of recent activity, but feel free to reopen it as long as you merge in the main branch afterwards.

@github-actions github-actions bot closed this Nov 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants