0.0.21 • Published 7 months ago
hawaii-dev-tools v0.0.21
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:
- Developing an MFE in the context of the real-world applications and user experiences
- Developing against a remote server without having to deal with CORS issues
- 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:
- Developing more than one MFE at the same time
- Adding a new MFE for local development
- 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
7 months ago
0.0.20
7 months ago
0.0.18
8 months ago
0.0.17
8 months ago
0.0.16
8 months ago
0.0.15
8 months ago
0.0.14
8 months ago
0.0.13
8 months ago
0.0.11
8 months ago
0.0.10
8 months ago
0.0.9
8 months ago
0.0.8
8 months ago
0.0.7
8 months ago
0.0.5
9 months ago
0.0.4
9 months ago
0.0.3
9 months ago
0.0.2
9 months ago
0.0.1
9 months ago