Skip to content

Hacking & Non Minifed Code

g--o edited this page Dec 18, 2020 · 2 revisions

note: in this article 'modules' are directories but JSCF is all in global scope! (this allows it to work locally unminifed)

Non-minified Code

To use non minifed code one has to include modules on his own. it's best to use the template folder or the html file of editor as a starting point.

Core modules are essential for jscf to work. The core modules are as follows: (TBD)

Other modules are not, but might be dependent. No worries as if a dependency is missing you'll be notified in the logger for a missing dependency if something goes awry.

Hacking

Some howto for hacking with JSCF:

  • THE LOGGER IS YOUR BEST FRIEND. Sometimes modules will even log a default behaviour choice, looking at the logs sequentially will help you connect the dots.
  • At all times the tests on ./tests that are named _dev.html should work. if you screwed something that's a good way to know what.
  • Try working with non-compact code so that you only include neccessary modules.
  • Use ternjs for autocompletion and comfy editing (.tern-project is already commited)
Clone this wiki locally