Quick update v0.2.0, you can now do the following too:
const {require} = imports.require;
const module = require('./file.js');
as long as you have the `gjs-require` path defined.
Basically you can use it stand-alone, as gjs argument, or as gjs module:
pick any of those.
I wish this was possible
On Fri, Nov 9, 2018 at 3:20 PM Tony Houghton wrote:
> Seeing as someone's done most of the hard work already, wouldn't it be
> fairly simple to adapt ts-for-gjs with another generator for tern?
>
Probably, yes!
___
javascript-list mailing list
javascri
Why Tern specifically? TypeScript compiler checks and autocompletes
JavaScript files well too.
On 2018-11-10 21:28, Philip Chimento via javascript-list wrote:
On Fri, Nov 9, 2018 at 3:20 PM Tony Houghton wrote:
Seeing as someone's done most of the hard work already, wouldn't it
be fairly sim
Last time I was doing some significant Javascript development I found that
tern (via vim + YouCompleteMe) seemed to work better than VS Code's
built-in Javascript support. And if you're really into vim VS Code's vim
emulation isn't quite up to scratch.
On Sat, 10 Nov 2018 at 22:44, wrote:
> Why
VS Code JavaScript support has been at the level of TypeScript, since
last year or so it started using the TS compiler for JS internally.
YouCompleteMe deprecated Tern support and is moving to TypeScript as
well, see the project's homepage. Try adding this to your tsconfig.json
and reload:
``
OK. It was quite a while ago since I compared them, but I did recently
decide to stick with vim instead of VS Code for a C project because Code
keeps popping up function signature information, which would be very
useful, but the popups keep getting in the way of what I want to read/edit,
and option