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

Add watch option -w and run md2html whenever the watched source file changes #275

Open
jeffschwartz opened this issue Jun 4, 2016 · 0 comments

Comments

@jeffschwartz
Copy link

Reason:
The npm package.json script object is becoming a defacto task runner (e.g. Angular2). So having the ability to run the markdown converter whenever a source markdown file changes will work with npm run <script-name>.

Example:

"scripts: {
    "start": "concurrently \"npm run md2html:w\" \"npm run lite\" ",
    "md2html:w": "md2html -w src/test.md > dest/test.html"
}

Currently I'd have to use gulp or grunt to do this as both support watch but coordinating what then amounts to 2 task managers (gulp/grunt && scripts) would be nearly impossible.

Bonus:
Add the ability to watch multiple source folders/files using globs and output to target folders/files.

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

1 participant