I have a folder (project) with three subfolders (client, server, assets). Each subfolder has a different team to start and work on the project that I need to run 3 applications. This is the layout of the folder and the commands that I use to run each subproject:
- Project
- customer (ionic service)
- server (node ββindex)
- assets (http-server -p 8082)
Currently, I go to each of the three folders and run each of the applications. To make the process more standard, each subproject has package.json with the start of the script, so I just cd subfolder && npm start .
My question is: can I use npm in the parent folder (i.e. write package.json there) so that I can just run the following command and have the same (or similar) effect?
project> npm start
I tried using the parallelshell package but it did not work (possibly due to cd :
"scripts": { "start": "parallelshell 'cd app && ionic serve' 'cd api && npm start' 'cd assets && npm start'", }
npm
fegemo
source share