Closed Bug 1240740 Opened 8 years ago Closed 8 years ago

Running all app's build.js on node.js

Categories

(Firefox OS Graveyard :: Gaia::Build, defect, P1)

ARM
Gonk (Firefox OS)
defect

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: rickychien, Assigned: rickychien)

References

Details

Attachments

(3 files)

This bug is using for refactoring / ensuring all app's build script (system/build/build.js, settings/build/build.js, gallery/build/build.js...etc) are able to run on node.js environment.
Priority: -- → P1
Assignee: nobody → rchien
Status: NEW → ASSIGNED
Comment on attachment 8711552 [details] [review]
[gaia] rickychien:all-apps-build-to-node > mozilla-b2g:master

Hey, here is a big piece of changes for fixing almost all app's build.js. For those apps who are using specific XPConnect APIs (email, keyboard, operatorvariant), we don't port them in this time.

Some of dirty code you might see but they will be cleaned up as long as our first step migration is complete. For instance, module system is different between xlc and node. require() call's loader rules are different so I fixed that with moving out libraries with some of hacks temporary.

There might be other problem or uneasy understand part to you, please ask any questions if you're unsure :)
Attachment #8711552 - Flags: review?(scwwu)
Comment on attachment 8711552 [details] [review]
[gaia] rickychien:all-apps-build-to-node > mozilla-b2g:master

Tested on device and diff looks good. r+
Thanks
Attachment #8711552 - Flags: review?(scwwu) → review+
Landed in master:

https://github.com/mozilla-b2g/gaia/commit/1281a7711822e5c668a22190ae55781154d6062d
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Revert https://github.com/mozilla-b2g/gaia/commit/a2ed4f70825dd3591b910060e37e1d7f78c36c6a
since it breaks RUN_ON_NODE=1 for throwing escodegen is not defined
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Fixed and landed in master again.

https://github.com/mozilla-b2g/gaia/commit/76ca5783d9ad578d2b09920d5eee87e6b6b39803
Status: REOPENED → RESOLVED
Closed: 8 years ago8 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: