Skip to content

fix: better local dev experience - #126

Open
danstarns wants to merge 1 commit into
neo4j-labs:mainfrom
danstarns:dev-onboarding
Open

fix: better local dev experience#126
danstarns wants to merge 1 commit into
neo4j-labs:mainfrom
danstarns:dev-onboarding

Conversation

@danstarns

Copy link
Copy Markdown
Contributor

Related:

Changes:

  • More notes in DEVELOP.md
  • Usage of vite-plugin-commonjs
  • Force install app on postinstall, resolve outdated libs.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR aims to improve the local development experience for the Nx-managed Arrows monorepo, specifically addressing arrows-app install and Vite CommonJS/require interoperability issues described in #125.

Changes:

  • Adds a root postinstall step to install apps/arrows-app dependencies automatically.
  • Introduces vite-plugin-commonjs and wires it into the arrows-app Vite config.
  • Expands DEVELOP.md with clearer install/build/dev-server instructions.

Reviewed changes

Copilot reviewed 3 out of 4 changed files in this pull request and generated 5 comments.

File Description
package.json Adds postinstall to install apps/arrows-app deps; adds vite-plugin-commonjs.
package-lock.json Lockfile updates reflecting the new dev dependency and dependency tree changes.
DEVELOP.md Adds installation/build guidance and updates dev-server command wording.
apps/arrows-app/vite.config.js Enables vite-plugin-commonjs alongside the React plugin.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread package.json
"license": "Apache2",
"scripts": {
"build": "nx run arrows-ts:build"
"postinstall": "cd ./apps/arrows-app && npm install --force",
Comment thread package.json
"scripts": {
"build": "nx run arrows-ts:build"
"postinstall": "cd ./apps/arrows-app && npm install --force",
"build": "nx run arrows-ts:build"
css: true,
},
plugins: [react()],
plugins: [react(), commonjs()],
Comment thread DEVELOP.md

## Installation

To setup this workspace, run the following command at the root of the repo:
Comment thread DEVELOP.md
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants