Skip to content
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

How can I watch for file changes? #63

Open
jaichandra opened this issue Jun 29, 2019 · 1 comment
Open

How can I watch for file changes? #63

jaichandra opened this issue Jun 29, 2019 · 1 comment

Comments

@jaichandra
Copy link

No description provided.

@U-4-E-A
Copy link

U-4-E-A commented Jul 17, 2019

Use nodemon in a package.json script. You will also need rimraf if you want to clean the destination folder before copying over the newly changed files.


"watchwhatever:": "nodemon --watch ./whateverfolder/* --exec \"npm run copywhatever\"",
"copywhatever": "npm run cleanwhatever && npm run copyover",
"cleanwhatever": "rimraf whatevedestinationrfolder",
"copyover": "copyfiles -u 1 \"./whateverfolder/**/*\" \"whatevedestinationrfolder/\"",

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

No branches or pull requests

2 participants