atom-ternjs icon indicating copy to clipboard operation
atom-ternjs copied to clipboard

Use atom-ternjs without project file

Open mrmckeb opened this issue 8 years ago • 8 comments

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?

mrmckeb avatar Aug 10 '15 00:08 mrmckeb

+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.

blindbox avatar Nov 12 '15 08:11 blindbox

+1

donniean avatar May 17 '16 15:05 donniean

It does not seem to fallback on tern-config.json for some reason.

This does not enable module loading for example:

image

However it does if put in a .tern-project file. Am I missing something @tststs?

Thanks!

ngryman avatar Jul 10 '16 15:07 ngryman

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.

ngryman avatar Jul 10 '16 16:07 ngryman

+1

pingshunhuangalex avatar Nov 04 '16 04:11 pingshunhuangalex

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.

jeremy447 avatar Feb 11 '17 18:02 jeremy447

Well it seem that work well

If a root file named .tern-project is not found ~/.tern-config serves as a default.

jeremy447 avatar Feb 11 '17 18:02 jeremy447

I still don't get where am I supposed to put the .tern-config file. On atom home directory?

ghost avatar Jul 15 '18 23:07 ghost