mitranim/jisp

Does jisp have a module loading system

Closed this issue · 3 comments

So I can separate out my code over multiple files?

jisp doesn't have a module system, but it plays nice with existing module solutions. When developing for web front-ends, you're likely to use a build system (e.g. gulp) to precompile jisp, and it's easy to include e.g. a browserify bundle step. If you're working with AngularJS, it enforces its own convoluted module system. When developing for Node.js, you can require jisp files directly using Node's CommonJS.

On Tue, Nov 11, 2014 at 6:05 PM, Mitranim notifications@github.com wrote:

jisp doesn't have a module system, but it plays nice with existing module
solutions. When developing for web front-ends, you're likely to use a build
system (e.g. gulp) to precompile jisp, and it's easy to include e.g. a
browserify bundle step. If you're working with AngularJS, it enforces its
own convoluted module system. When developing for Node.js, you can require
jisp files directly using Node's CommonJS.

I'll look into it. I wasn't using gulp, my main build system is ruby, and
the code I'm generating is for a firefox extension. Is gulp better than
rake for these kinds of tasks?

Thanks,
Emile

To be honest, I never knew rake could be used to precompile JS. It seems these days most folks use gulp or grunt as their build driver. The former can do near-instant rebuilds with the right setup.