Closed Bug 1338047 Opened 9 years ago Closed 8 years ago

Migrate all taskcluster-lib-* libraries to use import/export syntax

Categories

(Taskcluster :: Services, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED INVALID

People

(Reporter: jonasfj, Assigned: ydidwania, Mentored)

Details

(Keywords: good-first-bug)

This might be a good first bug. Do one at the time... And probably upgrade downstream repositories using the libraries as well. It's important to identify any difference in semantics when doing this. I'm pretty sure there is a difference when we do: import abc from 'abc'; in some downstream projects already. Hence, doing doing 'export ...' only statements might not be enough, we probably need to defined 'export default' to avoid problems.
Before picking this as a bug, probably ask on #tc-contributors or #taskcluster, and we'll file a specific bug for specific service or library. One at the time is a good way consume cookies and bugs alike :)
Mentor: jopsen
Keywords: good-first-bug
Hi, I would like to work on this bug. I have a limited experience of JS.
Assignee: nobody → didwaniayashvardhan
I read up about the difference in the two syntax. I think now I can work on this. I didn't find the taskcluster-lib-* files in mozilla-central repository. And we don't use github primarily. So where should I start from?
Flags: needinfo?(dustin)
The repositories are on Github. Firefox itself doesn't use Github primarily, but lots of other Mozilla projects do. I've forgotten which library we talked about starting with, but https://github.com/taskcluster/taskcluster-lib-api is an example.
Flags: needinfo?(dustin)
I made a PR on github (https://github.com/taskcluster/taskcluster-lib-api/pull/62) . For some reason it does not show up here as attachment. Maybe that is disabled. I am facing few issues with the file taskcluster-lib-api/test/validate_test.js which I have mentioned on github. Kindly take a look.
Flags: needinfo?(dustin)
I'm not sure exactly what causes pull requests to be reflected into bugzilla.. sometimes it happens, sometimes it doesn't :)
Flags: needinfo?(dustin)
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → INVALID
For context, this was resolved as invalid because Node does not yet support import/export, and we want to stop using Babel for our services. Once this is fully supported in Node, we will start using it.
Component: Platform Libraries → Services
You need to log in before you can comment on or make changes to this bug.