Skip to content

Instantly share code, notes, and snippets.

@NorikDavtian
Last active August 31, 2024 19:05
Show Gist options
  • Save NorikDavtian/f8491993ab6cc6136443ac7ce9c01c27 to your computer and use it in GitHub Desktop.
Save NorikDavtian/f8491993ab6cc6136443ac7ce9c01c27 to your computer and use it in GitHub Desktop.
To run a backend and frontend from a monorepo in parallel
{
"name": "norik-io-monorepo",
"private": true,
"version": "0.0.0",
"scripts": {
"develop:backend": "yarn --cwd backend develop",
"develop:frontend": "wait-on http://localhost:1337/admin && yarn --cwd frontend develop -- -p 8080",
"develop": "cross-env FORCE_COLOR=1 npm-run-all -l -p develop:*"
},
"devDependencies": {
"npm-run-all": "4.1.5",
"wait-on": "5.2.1",
"cross-env": "7.0.3"
}
}
@NorikDavtian
Copy link
Author

running with npm use npm --prefix <path> run <command>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment