@theforeman/env
Development environment for foreman core and plugins

What you get with this project
@theforeman/env/babel - Adds theforeman babel dev configuration to your project.
@theforeman/env/test - Adds theforeman testing tools to you project.
Installation
npm install --save-dev @theforeman/env
Install @theforeman/env/babel
- To work with
babel first you need to install @theforeman/builder since it contain the production babel configurations.
npm install --save-dev `@theforeman/builder`
- Create a
.babelrc.js file in your project root with the following content.
module.exports = {
presets: ['@theforeman/builder/babel'],
};
@theforeman/builder/babel will automatically load @theforeman/env/babel for none production environments.
install @theforeman/env/test
- Add this to the
test in packge.json:
{
"test": "tfm-test"
}
- create a
test_helper.js under /webpack for extending global mocks if needed
Contributing
Please checkout the contributing.md, the roadmap.md and the open issues.