Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 15 Next »

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 your own custom Forms CLI plugins.

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

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

Further Reading on Forms CLI Plugins:

Configuring Output with Plugins

Next Step:

Creating the Library Source


  • No labels