Skip to content

Commit

Permalink
chore: remove default ignoredRouteFiles
Browse files Browse the repository at this point in the history
Signed-off-by: Logan McAnsh <logan@mcan.sh>
  • Loading branch information
mcansh committed Mar 9, 2023
1 parent 6692e17 commit a2af795
Show file tree
Hide file tree
Showing 20 changed files with 2 additions and 22 deletions.
4 changes: 1 addition & 3 deletions docs/file-conventions/remix-config.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ This file has a few build and development configuration options, but does not ac
module.exports = {
appDirectory: "app",
assetsBuildDirectory: "public/build",
ignoredRouteFiles: ["**/.*"],
publicPath: "/build/",
routes(defineRoutes) {
return defineRoutes((route) => {
Expand Down Expand Up @@ -164,14 +163,13 @@ a `@sindresorhus/slugify` which is ESM-only as well. Here's how you would be
able to consume those packages in a CJS app without having to use dynamic
imports:

```ts filename=remix.config.js lines=[8-13]
```ts filename=remix.config.js lines=[7-12]
/** @type {import('@remix-run/dev').AppConfig} */
module.exports = {
appDirectory: "app",
assetsBuildDirectory: "public/build",
publicPath: "/build/",
serverBuildDirectory: "build",
ignoredRouteFiles: ["**/.*"],
serverDependenciesToBundle: [
/^rehype.*/,
/^remark.*/,
Expand Down
1 change: 0 additions & 1 deletion docs/guides/migrating-react-router-app.md
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,6 @@ Every Remix app accepts a `remix.config.js` file in the project root. While its
/** @type {import('@remix-run/dev').AppConfig} */
module.exports = {
appDirectory: "app",
ignoredRouteFiles: ["**/.*"],
assetsBuildDirectory: "public/build",
};
```
Expand Down
2 changes: 1 addition & 1 deletion integration/flat-routes-test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ test.describe("flat routes", () => {
fixture = await createFixture({
future: { v2_routeConvention: true },
files: {
"app/root.jsx": js`
"app/root.tsx": js`
import { Links, Meta, Outlet, Scripts } from "@remix-run/react";
export default function Root() {
Expand Down
1 change: 0 additions & 1 deletion integration/helpers/cf-template/remix.config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/** @type {import('@remix-run/dev').AppConfig} */
module.exports = {
devServerBroadcastDelay: 1000,
ignoredRouteFiles: ["**/.*"],
server: "./server.js",
serverConditions: ["worker"],
serverDependenciesToBundle: "all",
Expand Down
1 change: 0 additions & 1 deletion integration/helpers/deno-template/remix.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ module.exports = {
If live reload seems slow, try to decrease the dev server broadcast delay.
*/
devServerBroadcastDelay: 300,
ignoredRouteFiles: ["**/.*"],
server: "./server.ts",
serverConditions: ["deno", "worker"],
serverDependenciesToBundle: "all",
Expand Down
1 change: 0 additions & 1 deletion integration/helpers/node-template/remix.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
/** @type {import('@remix-run/dev').AppConfig} */
module.exports = {
ignoredRouteFiles: ["**/.*"],
// appDirectory: "app",
// assetsBuildDirectory: "public/build",
// serverBuildPath: "build/index.js",
Expand Down
1 change: 0 additions & 1 deletion integration/meta-test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,6 @@ test.describe("v2_meta", () => {
files: {
"remix.config.js": js`
module.exports = {
ignoredRouteFiles: ["**/.*"],
future: {
v2_meta: true,
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ module.exports = {
serverBuildTarget: "cloudflare-pages",
server: "./server.js",
devServerBroadcastDelay: 1000,
ignoredRouteFiles: ["**/.*"],
// appDirectory: "app",
// assetsBuildDirectory: "public/build",
// serverBuildPath: "functions/[[path]].js",
Expand Down
1 change: 0 additions & 1 deletion packages/remix-dev/__tests__/fixtures/deno/remix.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ module.exports = {
If live reload seems slow, try to decrease the dev server broadcast delay.
*/
devServerBroadcastDelay: 300,
ignoredRouteFiles: ["**/.*"],
// appDirectory: "app",
// assetsBuildDirectory: "public/build",
// serverBuildPath: "build/index.js",
Expand Down
1 change: 0 additions & 1 deletion packages/remix-dev/__tests__/fixtures/node/remix.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
/** @type {import('@remix-run/dev').AppConfig} */
module.exports = {
ignoredRouteFiles: ["**/.*"],
// appDirectory: "app",
// assetsBuildDirectory: "public/build",
// serverBuildPath: "build/index.js",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/** @type {import('@remix-run/dev').AppConfig} */
module.exports = {
serverBuildTarget: "node-cjs",
ignoredRouteFiles: ["**/.*"],
// appDirectory: "app",
// assetsBuildDirectory: "public/build",
// serverBuildPath: "build/index.js",
Expand Down
1 change: 0 additions & 1 deletion templates/arc/remix.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
/** @type {import('@remix-run/dev').AppConfig} */
module.exports = {
ignoredRouteFiles: ["**/.*"],
publicPath: "/_static/build/",
server: "./server.js",
serverBuildPath: "server/index.js",
Expand Down
1 change: 0 additions & 1 deletion templates/cloudflare-pages/remix.config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/** @type {import('@remix-run/dev').AppConfig} */
module.exports = {
devServerBroadcastDelay: 1000,
ignoredRouteFiles: ["**/.*"],
server: "./server.js",
serverBuildPath: "functions/[[path]].js",
serverConditions: ["worker"],
Expand Down
1 change: 0 additions & 1 deletion templates/cloudflare-workers/remix.config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/** @type {import('@remix-run/dev').AppConfig} */
module.exports = {
devServerBroadcastDelay: 1000,
ignoredRouteFiles: ["**/.*"],
server: "./server.js",
serverConditions: ["worker"],
serverDependenciesToBundle: "all",
Expand Down
1 change: 0 additions & 1 deletion templates/deno/remix.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ module.exports = {
If live reload seems slow, try to decrease the dev server broadcast delay.
*/
devServerBroadcastDelay: 300,
ignoredRouteFiles: ["**/.*"],
server: "./server.ts",
serverConditions: ["deno", "worker"],
serverDependenciesToBundle: "all",
Expand Down
1 change: 0 additions & 1 deletion templates/express/remix.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
/** @type {import('@remix-run/dev').AppConfig} */
module.exports = {
ignoredRouteFiles: ["**/.*"],
// appDirectory: "app",
// assetsBuildDirectory: "public/build",
// serverBuildPath: "build/index.js",
Expand Down
1 change: 0 additions & 1 deletion templates/fly/remix.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
/** @type {import('@remix-run/dev').AppConfig} */
module.exports = {
ignoredRouteFiles: ["**/.*"],
// appDirectory: "app",
// assetsBuildDirectory: "public/build",
// serverBuildPath: "build/index.js",
Expand Down
1 change: 0 additions & 1 deletion templates/netlify/remix.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
/** @type {import('@remix-run/dev').AppConfig} */
module.exports = {
ignoredRouteFiles: ["**/.*"],
server:
process.env.NETLIFY || process.env.NETLIFY_LOCAL
? "./server.js"
Expand Down
1 change: 0 additions & 1 deletion templates/remix/remix.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
/** @type {import('@remix-run/dev').AppConfig} */
module.exports = {
ignoredRouteFiles: ["**/.*"],
// appDirectory: "app",
// assetsBuildDirectory: "public/build",
// serverBuildPath: "build/index.js",
Expand Down
1 change: 0 additions & 1 deletion templates/vercel/remix.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
/** @type {import('@remix-run/dev').AppConfig} */
module.exports = {
ignoredRouteFiles: ["**/.*"],
// When running locally in development mode, we use the built-in remix
// server. This does not understand the vercel lambda module format,
// so we default back to the standard build output.
Expand Down

0 comments on commit a2af795

Please sign in to comment.