18.3.4 • Published 11 hours ago

@nx/remix v18.3.4

Weekly downloads
-
License
MIT
Repository
github
Last release
11 hours ago

Next generation full stack framework and build system together. Build better websites with Remix and Nx.

Nx makes supercharges your builds, and the optional Nx Cloud provide out-of-the-box distributed caching, distributed task execution, and valuable workspace insights.

Creating new Remix workspace

Use --preset=@nx/remix when creating new workspace.

e.g.

npx create-nx-workspace@latest acme \
--preset=@nx/remix \
--project=demo

Now, you can go into the acme folder and start development.

cd acme
npx nx dev demo

Note: This command runs the dev script in apps/demo/package.json.

Start the production server with one command.

npx nx start demo

Note: This will run the build before starting (as defined in nx.json).

Existing workspaces

You can add Remix to any existing Nx workspace.

First, install the plugin:

npm install --save-dev @nx/remix

# Or with yarn
yarn add -D @nx/remix

Then, run the setup generator:

npx nx g @nx/remix:setup

You can then add your first app and run it:

npx nx g @nx/remix:app demo

Adding new routes

Add a new route with one command.

npx nx g route

# e.g.
npx nx g route foo/bar --project=demo

Browse to http://localhost:3000/foo/bar to see the new route.

Workspace libraries

The Remix setup leverages npm/yarn/pnpm workspaces and Nx buildable libraries.

npx nx g @nx/remix:lib mylib

Import the new library in your app.

// apps/demo/app/root.tsx
import { Mylib } from '@acme/mylib';

// ...

export default function App() {
  return (
    <Document>
      <Layout>
        <Mylib />
        <Outlet />
      </Layout>
    </Document>
  );
}

Now, run the dev server again to see the new library in action.

npx nx dev demo

Note: You must restart the server if you make any changes to your library. Luckily, with Nx cache this operation should be super fast.

Contributing

Running unit tests

Run nx test demo to execute the unit tests via Jest.

Publishing

nx publish demo --ver=[version]
19.0.0-rc.1

11 hours ago

19.0.0-rc.0

1 day ago

19.0.0-beta.11

2 days ago

19.0.0-beta.10

2 days ago

19.0.0-beta.9

3 days ago

19.0.0-beta.8

5 days ago

19.0.0-beta.7

7 days ago

18.3.4

9 days ago

19.0.0-beta.6

9 days ago

19.0.0-beta.5

10 days ago

19.0.0-beta.4

11 days ago

19.0.0-beta.3

11 days ago

18.3.3

15 days ago

19.0.0-beta.2

15 days ago

18.3.2

16 days ago

19.0.0-beta.0

16 days ago

19.0.0-beta.1

16 days ago

18.3.1

18 days ago

18.3.0

18 days ago

18.3.0-beta.2

19 days ago

18.3.0-beta.3

19 days ago

18.3.0-beta.1

23 days ago

18.2.4

25 days ago

18.2.3

29 days ago

18.3.0-beta.0

29 days ago

17.0.5

29 days ago

17.0.4

1 month ago

18.2.2

1 month ago

18.2.1

1 month ago

18.2.0

1 month ago

18.2.0-beta.3

1 month ago

18.2.0-beta.2

1 month ago

18.1.3

1 month ago

18.2.0-beta.1

1 month ago

18.2.0-beta.0

1 month ago

18.1.2

2 months ago

18.1.1

2 months ago

18.1.0-beta.10

2 months ago

18.1.0-beta.9

2 months ago

18.1.0-beta.8

2 months ago

18.0.8

2 months ago

18.1.0-beta.7

2 months ago

18.1.0-beta.6

2 months ago

18.1.0-beta.5

2 months ago

18.1.0-beta.4

2 months ago

18.1.0

2 months ago

18.0.7

2 months ago

18.1.0-beta.3

2 months ago

18.0.6

2 months ago

18.0.5

2 months ago

18.1.0-beta.2

2 months ago

18.1.0-beta.1

2 months ago

18.1.0-beta.0

3 months ago

18.0.4

3 months ago

18.0.3

3 months ago

18.0.2

3 months ago

18.0.1

3 months ago

17.3.2

3 months ago

18.0.0

3 months ago

18.0.0-beta.3

3 months ago

18.0.0-beta.2

3 months ago

18.0.0-beta.1

3 months ago

17.3.1

3 months ago

18.0.0-beta.0

3 months ago

17.3.0

3 months ago

17.3.0-rc.0

3 months ago

17.3.0-rc.1

3 months ago

17.3.0-beta.8

3 months ago

17.3.0-beta.6

4 months ago

17.3.0-beta.5

4 months ago

17.3.0-beta.4

4 months ago

17.3.0-beta.2

4 months ago

17.3.0-beta.3

4 months ago

17.2.8

4 months ago

17.3.0-beta.1

5 months ago

17.2.5

5 months ago

16.8.2

8 months ago

16.8.1

8 months ago

16.8.0

8 months ago

16.7.1

8 months ago

16.7.0

8 months ago

16.7.0-beta.1

8 months ago

17.0.0

7 months ago

16.4.0

10 months ago

16.3.1

11 months ago

16.3.0

11 months ago

16.3.0-beta.1

11 months ago

16.2.0

12 months ago

16.2.0-beta.2

12 months ago

16.2.0-beta.1

12 months ago

16.1.2

12 months ago

16.1.1

12 months ago

16.1.0

12 months ago

16.0.0

1 year ago

16.0.0-beta.4

1 year ago

16.0.0-beta.3

1 year ago

16.0.0-beta.2

1 year ago

16.0.0-beta.1

1 year ago

16.0.0-beta.0

1 year ago