0.1.4 • Published 7 months ago

@remix-run/v1-route-convention v0.1.4

Weekly downloads
-
License
MIT
Repository
github
Last release
7 months ago

V1 Route Convention

Enables the v1 route file convention in Remix v2.

// remix.config.js
const { createRoutesFromFolders } = require("@remix-run/v1-route-convention");

/** @type {import('@remix-run/dev').AppConfig} */
module.exports = {
  // Tell Remix to ignore everything in the routes directory.
  // We'll let `createRoutesFromFolders` take care of that.
  ignoredRouteFiles: ["**/*"],
  routes: (defineRoutes) => {
    // `createRoutesFromFolders` will create routes for all files in the
    // routes directory using the same default conventions as Remix v1.
    return createRoutesFromFolders(defineRoutes, {
      // If you're already using `ignoredRouteFiles` in your Remix config,
      // you can move them to `ignoredFilePatterns` in the plugin's options.
      ignoredFilePatterns: ["**/.*", "**/*.css"],
    });
  },
};
0.1.3-pre.0

8 months ago

0.1.4

7 months ago

0.1.3

8 months ago

0.1.4-pre.0

7 months ago

0.1.2

12 months ago

0.1.2-pre.0

12 months ago

0.1.1

1 year ago

0.1.0

1 year ago

0.1.0-pre.0

1 year ago