tern_for_vim
tern_for_vim copied to clipboard
how use in a browserify project
Hi..silly question but I cant found how include my node_module files and index them...I've tried add the path, add the node plugin and even add the final bundle.js
... "loadEagerly":
["static/js/bundle.js"]
any try has worked...
the documentation about the config file is not particulary well, can you give me a clue about how write it
I put my .tern-config in my main folder, outside from my node_modules and my static folder (where I put my code)
hope you can help me...thanks!
There is currently no browserify support. What needs to be done is splitting the CommonJS module loading from the node plugin, so that it can be used without node.
You may have some success with simply loading the node plugin, and ignoring the node-specific features (there's a few globals, and the fact that you get node-style interfaces when you require built-in node modules).
thanks I will try...
2 silly questions..how could be my .tern-project file? the doc is a bit short about it and I'm not pretty sure
{
"plugins" : {
"node" : {"load":true}
}
}
is it all??..so simple??
- given than vim has not the "project" folder concept, I must open first the folder root where is my .tern-project or I can open any js file and vim will try find recursively the .tern-project file??...
thanks
It'll recursively search parent directories. Your project file can be as simple as
{"plugins": {"node": {}}}
Hi...I did this but seems not works, is possible with some command debug or check which files are indexed by ternjs?..would be very useful check what is happening in the background...thanks!
There aren't any good debugging hooks like that, currently. If you can send me a minimal project that demonstrates the problem (preferably two files), I can look into it.
Hi marijnh..I build a small project but now I'm testing it and ternjs works perfectly..maybe was the project size or something like that...I will close it for now ad if I can catch the error I will re open it..thanks!......