Generate forms using Angular for validations and Bootstrap for styles from short and concise descriptions of the fields.
To read more about the format of the form files see the ngbs-forms project directly.
This plugin requires Grunt
If you haven't used Grunt before, be sure to check out the Getting Started guide, as it explains how to create a Gruntfile as well as install and use Grunt plugins. Once you're familiar with that process, you may install this plugin with this command:
npm install grunt-ngbs-forms --save-dev
In your project's Gruntfile, add a section named
ngbs_forms to the data object passed into
Folder where we should start searching the relative path to the form data.
This example uses the default options and generates the form(s) of testing.html saving the final result to default_options.html.
The testing.html file should have something like this:
...html before the form...<%= buildForm('path/to/file.form.js') %>...html after the form...
In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using Grunt.