@theforeman/env

3.12.1-intl.1 • Public • Published

@theforeman/env

Development environment for foreman core and plugins

Package Version Downloads Status Build Status: Linux PRs Welcome code style: prettier

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

  1. To work with babel first you need to install @theforeman/builder since it contain the production babel configurations.
npm install --save-dev `@theforeman/builder`
  1. 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

  1. Add this to the test in packge.json:
{
  "test": "tfm-test"
}
  1. 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.

Readme

Keywords

none

Package Sidebar

Install

npm i @theforeman/env

Weekly Downloads

0

Version

3.12.1-intl.1

License

MIT

Unpacked Size

13.4 kB

Total Files

10

Last publish

Collaborators

  • amirfefer
  • sharvita