@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
@theforeman/env/babel
Install - To work with
babel
first you need to install@theforeman/builder
since it contain the productionbabel
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.
@theforeman/env/test
install - Add this to the
test
inpackge.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.