JSM

Compiler

This tool lets you creates and minify javascript client applications.
Its build to maximize the production speed and maintainability of the wished applications.
For that purpose additional syntax was added:

  • template "path/to/template.html" as templateNameVariable;

    When you have created your project, you can set the variable name will have the content of the file as string to use it in your project directly.

  • namespace a.b.c;

    You can define namespaces to manage your code better.

But you dont have to use the additional syntax.

Install

The JSM Compiler is available at npm to install.

npm install jsm-compiler -g

Usage



Create a project

jsmc create projectname


Watch a project for changes and build accordingly.
You have to be in the project dir.

jsmc watch


Build the project.
You have to be in the project dir.

jsmc build


Returns the current installed jsmc version.

jsmc version