atom-ternjs
atom-ternjs copied to clipboard
Use atom-ternjs without project file
First, great tool. Really useful and a great timesaver.
I'm often working with other devs with completely different setups. I'd like not to be placing a project file in each directory, and wondered if it would be possible to have a 'global project file'? Or is there another way to run tern-js without a project file?
+1, I second this suggestion. I think it's already built into the system though, as shown here, in the readme file. Just no gui.
If a root file named .tern-project is not found ~/.tern-config serves as a default.
I wonder where that is in Windows. I tried everywhere, like the folder %USERPROFILE%, but none of them works.
+1
It does not seem to fallback on tern-config.json
for some reason.
This does not enable module loading for example:
However it does if put in a .tern-project
file.
Am I missing something @tststs?
Thanks!
For what it's worth, I think tern-config.json
does not offer the possibility to activate default plugins, but only configure their default behavior. A .tern-project
file seems to be mandatory.
@tststs Do you plan to implement a cascading config file mechanism? This could be done pretty quickly with https://github.com/sindresorhus/find-up.
+1
It would be awesome it it would be possible to have a global project file. I'm learning Javascript and I'm making a lot of small "project" and each time I need to set up ternjs.
Well it seem that work well
If a root file named .tern-project is not found ~/.tern-config serves as a default.
I still don't get where am I supposed to put the .tern-config file. On atom home directory?