Generate a project
Purpose
To demonstrate how to generate a Cubbles project using the generator-cubbles.
Prerequisites
Nodejs and npm are installed (Tested with node 6.x to 8.x and npm 3.x to 6.x).
Grunt runs from every folder. To do that, start a bash or bash and type the following command:
npm install -g yo grunt-cliThe generator-cubbles is installed. You can install it as any other npm module:
npm install -g generator-cubblesProcess
Within a Cubbles project you will have access to the Coder DevTools and thus you will be able to create and manage as many Webpackages as you want. To generate a project, in the bash, navigate to the folder where want to store your project and run the following command:
yo cubbles:projectAfter that, you will get:
╭──────────────────────────╮
_-----_ │ Welcome to the neat │
| | │ Cubbles WebPackage │
|--(o)--| │ generator! │
`---------´ │ │
( _´U`_ ) │ This will create a │
/___A___\ /│ "cubbles" project into a │
| ~ | │ new or existing │
__'.___.'__ │ sub-folder of your │
´ ` |° ´ Y ` │ choice. │
╰──────────────────────────╯
? Please provide a folder name:Note that this tutorial was tested using the 3.2.0 version of the generator-cubbles.
Now, you should type the project name, e.g. my-first-project and choose the RTE version that you want to use. For the effect of this tutorial we will choose cubx.core.rte@3.x.
This process creates the overall file and folder structure to use the DevTools a follows:

When finished you will see the following message:
Note that a project includes a suite of DevTools. Thus, this requires the download of a number of npm packages, which takes some time.
Last updated