Skip to content

fix: better local dev experience #126

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 19 additions & 2 deletions DEVELOP.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,28 @@

# neo4j arrows monorepo - managed with nx.dev

✨ **This workspace has been generated by [Nx, a Smart, fast and extensible build system.](https://nx.dev)** ✨

## Installation

To setup this workspace, run the following command at the root of the repo:

```bash
npm install
```

> The repo is due some dependency updates, if you have conflicts locally on install, please attach the `--force` flag to the command above.

Then, you can build frontend and the local dependencies with:

```bash
npm run build
```

Now, you can follow the commands for the development server.

## Development server

Run `nx serve arrows-app` for a dev server. Navigate to http://localhost:4200/. The app will automatically reload if you change any of the source files.
Run `npx nx serve arrows-app` for a dev server. Navigate to http://localhost:4200/. The app will automatically reload if you change any of the source files.

## Understand this workspace

Expand Down
9 changes: 5 additions & 4 deletions apps/arrows-app/vite.config.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
import { defineConfig } from 'vite';
import react from '@vitejs/plugin-react';
import commonjs from 'vite-plugin-commonjs';

// https://vitejs.dev/config/
export default defineConfig({
build: {
outDir: '../../dist/apps/arrows-app'
outDir: '../../dist/apps/arrows-app',
},
server: {
port: 4200,
Expand All @@ -16,5 +17,5 @@ export default defineConfig({
setupFiles: 'src/setupTests.js',
css: true,
},
plugins: [react()],
plugins: [react(), commonjs()],
});
Loading