0.0.21 • Published 6 months ago

hawaii-dev-tools v0.0.21

Weekly downloads
-
License
-
Repository
-
Last release
6 months ago

Hawaii Developer Tools

Collection of packages to help with development in Hawaii.

Hawaii Proxy

The Hawaii Proxy enables a fully integrated development experience by allowing the developer to proxy requests to a remote server.

This is useful for:

  1. Developing an MFE in the context of the real-world applications and user experiences
  2. Developing against a remote server without having to deal with CORS issues
  3. Developing against other local MFEs for cross-cutting concerns

Installation

Install the package: npm i hawaii-dev-tools

Import the package in rsbuild.config.ts

import { hawaiiProxy } from 'hawaii-dev-tools';

Configuration

import { hawaiiProxy } from 'hawaii-dev-tools';

// Mapping of MFEs to ports. Can be local or remote.
const hawaiiProxyMap = {
  someOtherMfeName: 'http://localhost:someOtherLocalPort/',
};

const hawaiiProxyConfig = {
  packageName: 'nameOfMFEWhereProxyIsLocated', // the current package name
  targetEnv: 'https://xxxxxxxxxxxxxxxxxxxx/', // where to proxy the requests
  fallback: 'https://xxxxxxxxxxxxxxxxxxxx/',
  proxyMap: hawaiiProxyMap,
  logLevel: 'debug', // optional
};

Usage

export default defineConfig(() => {
  return {
    server: {
      proxy: hawaiiProxy(hawaiiProxyConfig),
    },
  };
});

Hawaii Middleware

Hawaii middleware is used to override the Platform and Product manifest files.

This is useful for:

  1. Developing more than one MFE at the same time
  2. Adding a new MFE for local development
  3. Updating and testing integration configurations

Rslib Project

Setup

Install the dependencies:

pnpm install

Get Started

Build the library:

pnpm build

Build the library in watch mode:

pnpm dev
0.0.21

6 months ago

0.0.20

6 months ago

0.0.18

7 months ago

0.0.17

7 months ago

0.0.16

7 months ago

0.0.15

7 months ago

0.0.14

7 months ago

0.0.13

7 months ago

0.0.11

7 months ago

0.0.10

7 months ago

0.0.9

7 months ago

0.0.8

7 months ago

0.0.7

7 months ago

0.0.5

7 months ago

0.0.4

7 months ago

0.0.3

7 months ago

0.0.2

7 months ago

0.0.1

7 months ago