This is an old revision of the document!
Riot.js
You can learn more about the fantastic Riot.js minimalistic, yet very powerful javascript MV* framework on their website.
We'll start a Riot.js project, once we have Node.js and NPM installed, as well as add a few dev tools that will ease our development efforts. Please note that we'll always use npm to locally install all packages, referencing some as “dev-only” so that our package list will include everything that is effectively require for the project production and development usage.
NOTE for VirtualBox VMs shared folders: If you are using a VirtualBox shared folder for your dev files, then you have to “prepare” it for correct symlinks operations from your host computer command line: See Create VirtualBox shared folder and Virtualbox: Symlinks inside shared folders in this wiki.
Let's init our project
> mkdir /path/to/dev/project
> cd /apth/to/dev/project
> npm install riot --save
> npm install babel --save-dev
> nano package.json
PASTE:
{
"name": "hello-world",
"version": "1.0.0",
"description": "riot.js Hello Word sample with npm and es6",
"scripts": {
"watch": "riot --type es6 -w app dist",
"compile": "riot --type es6 app dist"
},
"keywords": [
"riot.js",
"hello-world"
],
"dependencies": {
"riot": "^2.2.3"
}
}