@kikoda/generated-config
TypeScript icon, indicating that this package has built-in type declarations

0.5.1 • Public • Published

Kikoda Generated Config

NPM License

Use this Kikoda Generated Config package to generate layered configurations and runtime configuration manifest files for webpack builds configured with CRACO.

Install from NPM:

yarn add --dev @kikoda/generated-config

# or

npm install @kikoda/generated-config --save-dev

Usage

Generaged Config for webpack apps

Use this package and plugin in conjunction with CRACO to inject config values depending on environment.

CRACO

Add this to your craco.config.js:

import { GeneratedConfig } from '@kikoda/generated-config';

const { fileName } = new GeneratedConfig({
  stage: "<stage-name>",
  servicePath: './app',
});module.exports = {
  plugins: [{ plugin: ConfigManifestPlugin(fileName) }],
};

Verbose Logging

Enable verbose logging by setting the DEBUG environment variable to 'true'

Opening Issues

If you encounter a bug with this package, we want to hear about it. Before opening a new issue, search the existing issues to avoid duplicates.

When opening an issue, include the Kikoda Construct Library version, Node version, and stack trace if available. In addition, include the steps to reproduce when appropriate.

You can also open an issue for a feature request.

Contributing

If you find an issue with this package and have a fix, please feel free to open a pull request following the procedures.

Testing

If you contribute to this package you can run the tests using yarn test.

License

Unless explicitly stated otherwise all files in this repository are licensed under the Apache License Version 2.0.

This product includes software developed at Kikoda (https://www.kikoda.com). Copyright 2022 Kikoda, LLC.

Package Sidebar

Install

npm i @kikoda/generated-config

Weekly Downloads

189

Version

0.5.1

License

Apache-2.0

Unpacked Size

1.53 MB

Total Files

1101

Last publish

Collaborators

  • subspace31
  • nathan.cazell