0.0.1-alpha.5 • Published 1 year ago

remix-modules v0.0.1-alpha.5

Weekly downloads
-
License
MIT
Repository
-
Last release
1 year ago

Remix Modules

Scale your remix app with modules.

!WARNING This is a experimental package and is not ready for production use.

What is a module?

A module is a remix app that can be mounted into another remix app.

.
├── modules
│   └── blog <=== this is a module
│       ├── routes
│       └── root.tsx
├── routes
└── root.tsx

Installation

npm install remix-modules

Configuration

Update your remix.config.js file and use the custom routes config option.

const { remixModules } = require('remix-modules');

/** @type {import('@remix-run/dev').AppConfig} */
module.exports = {
  routes: async () => {
    const modules = remixModules();
    await modules.mount('modules/blog', '/blog'); // mount the blog module to /blog
    return modules.routes();
  }
};

License

MIT

0.0.1-alpha.4

1 year ago

0.0.1-alpha.5

1 year ago

0.0.1-alpha.3

1 year ago

0.0.1-aplha.2

1 year ago

0.0.1-aplha.1

2 years ago

0.0.1-alpha.0

2 years ago