Create Cubbles artifacts
Last updated
Last updated
The offers you four tasks to create , which will be described below.
Note that all tasks should be run within the CDT folder (normally it is called devtools). The new artifacts will be created as part of the .
To create an application in the active webpackage, you should run the +webpackage-createApp
task as follows:
After that, you should type a name and then a description of your application. Below, we present a simple example:
The task will create a folder with the name you provided. The folder contains an index.html
file, which imports the needed RTE files to allow you to use Cubbles components immediately. You only need to add your components to the body of the application.
Furthermore, a definition for your app will be created in the file of the active webpackage.
To create an application in the active webpackage, you should run the +webpackage-createApp
task as follows:
After that, you should type a name and then a description of your application. Below, we present a simple example:
The task will create a folder with the name you provided. The folder will contain an HTML file and a folder to place javascript files. You can use those or create other files as you need; for instance, you may want to create a utility that wraps an existing library such as jQuery.
To create an elementary component, you should run the +webpackage-createElementary
task as follows:
Then, you should provide the information about your elementary.
To create a compound component, you should run the +webpackage-createCompound
task as follows:
Then, you should provide the information about your compound.
Furthermore, a definition for your app will be created in the file of the active webpackage. If you include other files (e.g., for external libraries), you should edit the resources
property of the utility definition accordingly.
Check to read more about the process of creating, editing and visualizing an elementary component.
Check to read more about the process of creating, editing and visualizing a compound component.