Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

...

...

...


Info

A few steps should be taken by the developer before running the initial bm forms init command:

  1. Start with a folder for your project, and inside that create a folder to hold the forms components.
  2. Within the command line, cd into your project folder and run npm init. This will setup your package.json file.


Initialising the Builder Properties


Code Block
bm forms

...

 init


This will initialise the project, which will set up your blinkmrc.json file. 

You will prompted to answer a handful of questions, the first asking the source :

Source of your forms definition

...

This will either be the answerSpace form, or your own JSON definition.The following question will ask for the location

Location of this definition

...

This will either be the answerSpace URL, or the location of the JSON definition files within your project folder.You'll then be prompted for

Location of the output folders

This is the location of the folders you want to write both your source components and component distribution file too, as well as where the framework templates will be created. If you use the defaults, these will be bm-forms-srcdist and templates (only the templates folder will be created initially, until the bm forms create and build steps are ran later).

Framework plugin to use

Finally, you'll be asked which framework plugin you wish to use. AngularJS and JSON are currently included by default. Later, we'll talk more about how you can use your own custom Forms CLI plugins.

...

Column
width225px


Panel
bgColorlightblue
borderStylesolid
|--my-project/
|--.git/
|--node_modules/
|--my-forms/
|  |--templates/
|--.blinkmrc.json
|--package.json


Next Step

Create & Build: Creating the Library Source and Building the Distribution File

...