Now that's interesting. About the email on Glib vs Node core, I was rather suggesting cgjs as a way to import files, nothing else really, but its modules that simulate NodeJS **are** already based on Glib.
On Fri, Nov 9, 2018 at 5:36 PM Edgar Merino <donvo...@gmail.com> wrote: > You can use webpack, which will give you ES6 imports and UMD, take a look > at how it was done in this project (you can skip the babel configuration in > the gulpfile if not needed). > > https://github.com/emerinohdz/power-alt-tab > > Thanks. > > El vie., 9 de nov. de 2018 8:22 a. m., Andrea Giammarchi via > javascript-list <javascript-list@gnome.org> escribió: > >> if you are familiar with CommonJS, I suggest you to use cgjs >> >> https://github.com/cgjs/cgjs#cgjs-- >> >> it's not really a 1:1 nodejs replica when it comes to core modules, but >> at least it doesn't require you to learn a module system that only GJS uses >> and that will inevitably fade away as soon as ES2015 static, or even >> dynamic import, will be introduced. >> >> Feel free to see the circus around configuring folders and imports >> otherwise directly via GJS. >> >> On Fri, Nov 9, 2018 at 5:18 PM Tony Houghton <h...@realh.co.uk> wrote: >> >>> gjs has attracted my attention, but the tutorials and examples are >>> rather simple so I can't work out what you're supposed to do to make an >>> application with multiple source files. Do you have to write a script to >>> concatenate them in the right order, or >>> can you use Javascript's import keyword? >>> >>> -- >>> TH >>> >>> _______________________________________________ >>> javascript-list mailing list >>> javascript-list@gnome.org >>> https://mail.gnome.org/mailman/listinfo/javascript-list >>> >> _______________________________________________ >> javascript-list mailing list >> javascript-list@gnome.org >> https://mail.gnome.org/mailman/listinfo/javascript-list >> >
_______________________________________________ javascript-list mailing list javascript-list@gnome.org https://mail.gnome.org/mailman/listinfo/javascript-list