This repo demonstrates how to use the npm copy command to deploy single apps from a monorepo.
# pull the repo, then:
npm install
cd packages/app
npx npm copy .deploy # runs local npm
# files are bundled to packages/app/.deploy directory
- Install npm dev branch locally:
{
"devDependencies": {
"npm": "everett1992/cli#copy"
}
}
- Use npx to run the copy command from within the project:
npx npm copy .deploy