start
Even if you plan to use mason only in the browser, you'll still need to install node.js.
To test out your node installation, try running this:
mkdir test; cd test sudo npm install -g mason-lang/mason-cli npm install amdefine mason-lang/msl echo 'console.log "hello world!"' > hello.ms mason run hello.ms
mason-cli is good for scripts, and will compile any other .ms
files you import, but for projects you should use a build tool.
build
Mason does not come with a build tool. But it works with many:
- gulp-mason recommended
- broccoli-mason
- jstransformer-mason for dum, a build tool written in Mason
options
The build tools all use the same options:
mslPath
Path to msl
. You'll want to set this to msl/lib
, but it defaults to msl
.
So annoying... This option will go away soon.
indent
This defaults to \t
. You can set it to 2
or 4
(or any other number) to use that many spaces for indentation.
language
Currently this can only be 'english'
.
edit
Mason syntaxes exist for these text editors:
- mason-atom for atom
- mason-tmLanguage for sublime, vscode, and textmate