This is a collection of angular-schema-form addons.
The easiest way to install is to use npm
:
npm install @beer-garden/addons
To use the package just load the javascript file:
<script src="node_modules/@beer-garden/addons/dist/addons.js"></script>
Or import the package:
import '@beer-garden/addons';
In either case make sure you load the addons package after loading Angular Schema Form.
The following steps are the easiest way to get up and running from source.
- Node.js (Stable, 6+)
# Clone the repository
git clone https://github.com/beer-garden/angular-schema-form-addons.git
cd angular-schema-form-addons
# Install dependencies
npm install
npm run serve
This will start a webpack development server on port 8078. Webpack will watch the src
directory for changes, and when triggered it will rebuild and cause any browsers viewing the demo application to reload.
Webpack only binds to localhost so view the demo at http://localhost:8078/.
Build the production artifacts:
npm run build
This puts the generated files in the dist
directory.
You can use npm link
to quickly incorporate changes into an external application that is using ASF Addons:
# Mark this application as linkable
npm link
# Watch the 'src' directory, rebuilding the dist artifacts on changes
npm run watch
# IN ANOTHER SHELL
# Navigate to the external application and use the package link
cd 'path/to/my/other/project'
npm link @beer-garden/addons
At this point 'path/to/my/other/project/node_modules/@beer-garden/addons' will be a symbolic link referencing the build output of the ASF addons.