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.

Let's init our project

> mkdir /path/to/dev/project
> cd /apth/to/dev/project
> 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"
  }
}