Documentation
develop
develop
  • Cubbles documentation
  • First steps
    • Generate a project
    • Create a webpackage
    • Create an elementary component
    • Create a compound component
      • Compound slot initialization
  • Runtime extension - RTE
    • User guide
      • RTE Integration
      • The Cubbles TAG API
        • The Cubbles Dependency API
      • The Cubbles Javascript API
        • Interacting with Cubbles from the outside
        • Adding dynamic connections
        • Interacting with Elementary Cubbles from the inside
      • The RTE Processing
        • RTE initialization and rendering timeline
      • The Cubbles IFrame API
        • The Cubbles IFrame Resizer API
      • The Cubbles mutation based start event API
      • FAQs
        • How to manually resolve dependency conflicts?
        • How to create a component instance dynamically?
        • How to render HTML Markup coming from input slot?
        • How to replace a dependency when declaring a component instance?
        • How to synchronize multiple dataflows between component instances?
        • How to handle the copyValue flag for non serializable instances?
    • Contributor guide
      • CIF processing
  • Developing with the vanilla boilerplate
    • Creating a new project
    • Developing elementaries using the vanilla boilerplate
    • Developing compounds using the vanilla boilerplate
    • Using the vanilla boilerplate scripts
  • Coder devtools - CDT
    • User guide
      • Create Cubbles artifacts
      • Upload a Webpackage
      • Generate a README file
      • Rename an artifact
      • Configure network proxy
      • Validate the manifest.webpackage file
      • Change active webpackage
      • Bulk upload of webpackages
      • Release a webpackage
      • Update the RTE version of a webpackage
      • Prepare a webpackage to be released
      • Update webpackage to the next development version
      • Generate a test environment for a component
      • Testing Cubbles components
      • Validate sources
      • Create a demo webpackage
    • Contributor guide
      • Checklist for releasing a new webpackage.modelVersion
  • Terms and concepts
    • Webpackage
    • Artifacts
    • User roles
    • Base
Powered by GitBook
On this page
  • Create an app
  • Create an utility
  • Create an elementary component
  • Create a compound component
  1. Coder devtools - CDT
  2. User guide

Create Cubbles artifacts

PreviousUser guideNextUpload a Webpackage

Last updated 6 years ago

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 .

Create an app

To create an application in the active webpackage, you should run the +webpackage-createApp task as follows:

grunt +webpackage-createApp

After that, you should type a name and then a description of your application. Below, we present a simple example:

? Application name (e.g. 'my-app'): my-first-app
? Provide a short description (optional): This is my first app

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.

Create an utility

To create an application in the active webpackage, you should run the +webpackage-createApp task as follows:

grunt +webpackage-createUtility

After that, you should type a name and then a description of your application. Below, we present a simple example:

? Utility name (e.g. 'my-util'): my-first-util
? Provide a short description (optional): This is my first utility

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.

Create an elementary component

To create an elementary component, you should run the +webpackage-createElementary task as follows:

grunt +webpackage-createElementary

Then, you should provide the information about your elementary.

Create a compound component

To create a compound component, you should run the +webpackage-createCompound task as follows:

grunt +webpackage-createCompound

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.

this tutorial
this tutorial
CDT
Cubbles artifacts
active webpackage
manifest.webpackage
manifest.webpackage