13.0.1 • Published 29 days ago

@theforeman/builder v13.0.1

Weekly downloads
651
License
MIT
Repository
github
Last release
29 days ago

@theforeman/builder

Build production and development bundle files for foreman core and plugins.

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

This package doesn't contain any implementation yet and only act as a skeleton and as the general design

What you get with this project

  • @theforeman/builder/babel - Adds theforeman babel production configuration to your project
  • tfm-builder-install - Install the @theforeman/builder to your project.
  • tfm-build - Run it to build foreman or a foreman plugin.
  • tfm-builder-analyze - Run it to analyze your build content.
  • tfm-dev-server - Run a development server so your code will get build and served locally with a live-reload feature.

Installation

npm install --save-dev @theforeman/builder

Option 1 - Run the installation script

tfm-builder-install
# answer the questions

Option 2 - Install manually

  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.

  1. Create a config/tfm-builder.config.js file with the following content:
module.exports = {
  // set your javascript entry points
  entry: {
    'my-plugin': 'webpack/assets/myPlugin.js',
    'my-plugin-fills': 'webpack/assets/myPluginFills.js',
  },
  // set your output path
  outputPath: 'public/webpack',
  // if using in foreman core (won't work for plugins)
  // set a devServer
  devServer: {
    port: '3808',
    host: process.env.BIND || 'localhost',
  }
};
  1. Add build scripts to your package.json
{
  "scripts": {
    "build": "tfm-build config/tfm-builder.config.js",
    "build-analyze": "tfm-builder-analyze config/tfm-builder.config.js",
    "dev-server": "tfm-dev-server config/tfm-builder.config.js"
  }
}

Contributing

Please checkout the contributing.md, the roadmap.md and the open issues.

13.0.1

29 days ago

13.0.0

3 months ago

12.2.3

4 months ago

12.2.2

5 months ago

12.2.1

5 months ago

12.2.0

10 months ago

12.1.0

12 months ago

12.1.1

11 months ago

12.0.2

1 year ago

12.0.1

1 year ago

12.0.0

2 years ago

11.0.0

2 years ago

10.1.7

2 years ago

10.1.4

2 years ago

10.1.5

2 years ago

10.1.6

2 years ago

10.1.2

2 years ago

10.1.3

2 years ago

10.1.1

2 years ago

10.0.0

2 years ago

10.0.1

2 years ago

10.0.2

2 years ago

10.1.0

2 years ago

9.0.1

2 years ago

9.0.0

2 years ago

8.16.0

3 years ago

8.15.1

3 years ago

8.15.0

3 years ago

8.13.0

3 years ago

8.14.0

3 years ago

8.12.2

3 years ago

8.12.1

3 years ago

8.12.0

3 years ago

8.11.0

3 years ago

8.10.0

3 years ago

8.9.0

3 years ago

8.8.0

3 years ago

8.7.2

3 years ago

8.7.1

3 years ago

8.6.0

3 years ago

8.7.0

3 years ago

8.4.6

3 years ago

8.5.0

3 years ago

8.4.5

3 years ago

8.4.4

3 years ago

8.4.3

3 years ago

8.4.2

3 years ago

8.4.1

3 years ago

8.4.0

3 years ago

8.3.4

3 years ago

8.3.3

3 years ago

8.3.2

3 years ago

8.3.1

3 years ago

8.3.0

3 years ago

8.2.0

3 years ago

8.1.2

3 years ago

8.1.1

3 years ago

8.1.0

3 years ago

8.0.5

3 years ago

8.0.4

3 years ago

8.0.3

3 years ago

8.0.2

3 years ago

7.2.10

3 years ago

8.0.1

3 years ago

8.0.0

3 years ago

7.2.9

3 years ago

7.2.8

3 years ago

7.2.5

3 years ago

7.2.4

3 years ago

7.2.2

3 years ago

7.2.1

3 years ago

7.0.0

3 years ago

6.1.0-next.0

3 years ago

6.1.0-next.1

3 years ago

6.0.1-next.0

3 years ago

6.0.0

3 years ago

4.15.2

4 years ago

4.15.1

4 years ago

4.15.0

4 years ago

4.14.6

4 years ago

4.14.5

4 years ago

4.14.4

4 years ago

4.14.3

4 years ago

4.14.1

4 years ago

4.14.2

4 years ago

4.14.0

4 years ago

4.13.3

4 years ago

4.13.2

4 years ago

4.13.1

4 years ago

4.13.0

4 years ago

4.12.0

4 years ago

4.11.1

4 years ago

4.11.0

4 years ago

4.10.1

4 years ago

4.10.2

4 years ago

4.10.0

4 years ago

4.9.0

4 years ago

4.7.1

4 years ago

4.8.0

4 years ago

4.7.0

4 years ago

4.6.0

4 years ago

4.5.0

4 years ago

4.4.0

4 years ago

5.0.0

4 years ago

4.3.0

4 years ago

4.2.1

4 years ago

4.2.0

4 years ago

4.1.0

4 years ago

4.0.9

4 years ago

4.0.8

4 years ago

4.0.7

4 years ago

4.0.6-intl.0

4 years ago

4.0.6

4 years ago

4.0.5

4 years ago

4.0.4

4 years ago

4.0.3

4 years ago

4.0.2

4 years ago

4.0.1

4 years ago

4.0.0

4 years ago

3.12.1-intl.1

4 years ago

3.12.1-intl.0

4 years ago

3.12.0

4 years ago

3.11.0

4 years ago

3.11.1

4 years ago

3.9.4-test.1

4 years ago

3.9.4-test.0

4 years ago

3.10.1

4 years ago

3.10.0

4 years ago

3.9.4-stories.6

4 years ago

3.9.4-stories.4

4 years ago

3.9.4-stories.5

4 years ago

3.9.4-env-test.9

4 years ago

3.9.4-stories.2

4 years ago

3.9.4-stories.3

4 years ago

3.9.4-stories.0

4 years ago

3.9.4-stories.1

4 years ago

3.9.4-env-test.6

4 years ago

3.9.4-env-test.8

4 years ago

3.9.4-env-test.7

4 years ago

3.9.4-env-test.5

4 years ago

3.9.4-env-test.4

4 years ago

3.9.4-env-test.3

4 years ago

3.9.4-env-test.2

4 years ago

3.9.4-env-test.1

4 years ago

3.9.4-env-test.0

4 years ago

3.9.3

4 years ago

3.9.2

4 years ago

3.9.1

4 years ago

3.8.2

4 years ago

3.9.0

4 years ago

3.8.1

4 years ago

3.8.0-intl.0

4 years ago

3.8.1-intl.0

4 years ago

3.9.0-intl.0

4 years ago

3.9.0-alpha.0

4 years ago

3.8.0

4 years ago

3.7.1

4 years ago

3.7.2

4 years ago

3.7.0

4 years ago

3.6.4

4 years ago

3.6.3

4 years ago

3.6.2

4 years ago

3.6.1

4 years ago

3.6.0

4 years ago

3.5.2

4 years ago

3.5.1

4 years ago

3.5.0

4 years ago

3.4.0

4 years ago

3.3.2

4 years ago

3.3.1

4 years ago

3.3.0

4 years ago

3.2.2

4 years ago