Generate a project

Purpose

To demonstrate how to generate a Cubbles project using the generator-cubblesarrow-up-right.

Prerequisites

  • Nodejsarrow-up-right 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-cli
npm install -g generator-cubbles

Process

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:project

After 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:

Cubbles project structure

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