Skip to content

Script#471

Merged
star-e merged 9 commits intococos:main-previewfrom
bofeng-song:script
Apr 9, 2026
Merged

Script#471
star-e merged 9 commits intococos:main-previewfrom
bofeng-song:script

Conversation

@bofeng-song
Copy link
Copy Markdown
Contributor

@bofeng-song bofeng-song commented Mar 25, 2026

执行 npm install 后,
浏览器输入 http://localhost:9527
可以查看cc.game.run的执行状态。

Related PR:
https://github.com/cocos/cocos-editor/pull/3707
https://github.com/cocos/creator-programming/pull/72

Add compile engine in a separate process

Add compile project script in a separate process
# Please enter a commit message to explain why this merge is necessary,
# especially if it merges an updated upstream into a topic branch.
#
# Lines starting with '#' will be ignored, and an empty message aborts
# the commit.
Message: {
async request(pkg: string, message: string, ...args: any[]) {
console.warn(`[Editor Mock Main] Requesting ${pkg}:${message}`);
if (pkg === 'engine' && message === 'query-engine-info') {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

const { Engine } = await import('../../engine');
Engine.getInfo().typescript.path


export async function createProgrammingFacet() {
const { GlobalPaths } = await import('../../../global');
const features = (await Editor.Message.request('engine', 'query-engine-modules-profile'))?.includeModules || [];
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

const { Engine } = await import('../../engine');
return { includeModules: Engine.getConfig().includeModules || [] };

@star-e star-e added the pending Not ready yet label Apr 1, 2026
@bofeng-song bofeng-song changed the base branch from main to main-preview April 9, 2026 06:25
@star-e star-e merged commit 02a722d into cocos:main-preview Apr 9, 2026
0 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pending Not ready yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants