0

I'm interested in tamejs, and want to use it in my project.

But I don't want to manually compile them into js files before running/testing, etc. I want to let tamejs monitor a directory, and automatically compiles .tjs to .js when the files change.

Is there any way to do this?

Freewind
  • 193,756
  • 157
  • 432
  • 708

2 Answers2

2

This is discussed in the README: https://github.com/maxtaco/tamejs

require ('tamejs').register (); // register the *.tjs suffix
require ("mylib.tjs");          // then use node.js's import as normal
James
  • 106
  • 4
-1

var myTamedModule = require("./app.tjs");

Jonathon
  • 155
  • 1
  • 11