A Yeoman generator for Marcelle applications
First, install Yeoman and generator-marcelle using npm (we assume you have pre-installed node.js).
npm install -g yo
npm install -g generator-marcelle
To generate a new project:
yo marcelle
Several options are available to customize the project. If you don't know what to chose, just hit enter to select the defaults.
It is possible to use the generator to create new custom components for an application or a marcelle package.
yo marcelle:component
Just enter your component's name (e.g. my-component) and the generator will create a template component that you can your in your script:
import { myComponent } from './components';
const m = myComponent(opts);
It is possible to use the generator to add server-side data storage (backend).
yo marcelle:backend
To run the server:
npm run backend