Versions Compared

Key

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

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. cd into my-project and run npm init followed by git init. This will setup your package.json and initialise a git repository.

  3. bm forms init Can now be ran. For the question "Which folder should I write the component source to?" answer with "my-forms/src" and then accept the defaults. For the framework, select the framework you wish to use (AngularJS is included by default). This is where you would select frameworks added by This will prompt you to set up where the CLI will write your source to, as well as which framework 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.

If the defaults are used, you should end up with a folder structure that matches the following:

Column
width225px


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

Further Reading on Forms CLI Plugins:

Managing Output with Plugins and Templates

Next Step:



Next Step

bm forms create & bm forms build: Creating the Library Source