-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[CLOSED] Update Tern & Acorn #10051
Comments
Comment by MarcelGerber All tests pass now. |
Comment by MarcelGerber Woah. Looks like this upgrade actually finally fixes the problems we had with Ionic/Cordova apps (cc |
Comment by ficristo Out of curiosity, can I know why they can't be dependencies in package.json? |
Comment by MarcelGerber The two libraries have to be located in the extension's folder, thus they cannot be part of the root |
Comment by MarcelGerber I just now updated this to feature the latest Acorn & Tern versions, where Tern now has ES6 support (#11644). cc |
Comment by MiguelCastillo
Some things to keep in mind is that there is a new plugin called
|
Comment by MarcelGerber Thanks I'll try to look at the |
Comment by abose As this is a core change, Moving to next release as all external integrations happen at the beginning of the cycle. |
Comment by ingorichter
|
Comment by abose 1.5 is due within the next 2 weeks and the move to release branch is by next week. |
Comment by ingorichter That's great |
Comment by MarcelGerber Updated once again to include the latest & greatest. |
Comment by busykai
|
Comment by MarcelGerber
|
Comment by busykai
|
Comment by MarcelGerber Ah yes, that makes sense. |
Comment by busykai
I'll take a look at it functionally and run some tests this weekend. |
Comment by MiguelCastillo
I'd really prefer using npm packages. It just makes our lives easier because we don't need to worry maintaining yet another repo. One thing that I think we can do as a separate PR is to move thirdparty deps into the package.json as way to manage dependency upgrades. And we can manage copying these modules from node_modules into thirdparty (or any other place) in our gruntfile.js, which we already do for a few other things. I can look into that separately. But for now, adding tern as a dependency and adding a config in the gruntfile.js to copy the needed files to the right place will be a more straight forward workflow for future upgrades. I see that there are concerns with setting up brackets for hacking. I am not too concerned about that because we will be checking in the dependencies into the thirdparty directory anyways. Upgrades will continue to be a manual process of running I am going to pull this down right now and take it out for test. |
Comment by ficristo
|
Comment by MiguelCastillo
|
Comment by petetnt RE: the requirement for the files being under You can map the paths in https://github.com/adobe/brackets/blob/master/src/main.js#L31 to your liking; you just need to make sure that See the |
Comment by MarcelGerber
Also, I've stripped out most of the Acorn files, so we're only left with the Would love if you could take this for a test (and I will too!) |
Comment by MiguelCastillo Ok great! I am pulling it right now. |
Comment by MiguelCastillo
|
Comment by MarcelGerber Tern is still a submodule, that's true. Acorn is based of a build of my fork (https://github.com/MarcelGerber/acorn). Also, I've just pushed a new commit to workaround this issue: acornjs/acorn#412 |
Comment by ficristo IMHO we should land adobe/brackets#11948 and then use the node counterpart. |
Comment by MarcelGerber Updated again. As Acorn updated their build process, we... sadly still cannot use its output as is. |
Comment by zaggino Guys, can we please stick to npm dependencies or submodules and not push heaps of thirdparty code to the repository itself? |
Comment by MarcelGerber
|
Issue by MarcelGerber
Sunday Aug 09, 2015 at 22:16 GMT
Originally opened as adobe/brackets#11569
Since Acorn's build process changed (there are no more prebuilt
dist
files in the repo, but in the npm package), I've switched from having it available as a submodule to just having the files in the file tree. Hope that's fine.The build is based on my fork https://github.com/MarcelGerber/acorn, where I removed a build step that doesn't quite work with Brackets.
Fixes #11568, and hopefully some others, too.
Commit logs:
Tern + Release notes
Acorn
MarcelGerber included the following code: https://github.com/adobe/brackets/pull/11569/commits
The text was updated successfully, but these errors were encountered: