Skip to content

Commit

Permalink
Merge pull request react-bootstrap#1198 from AlexKVal/nodemon
Browse files Browse the repository at this point in the history
Monitor less files by 'nodemon' with 'npm run docs' script
  • Loading branch information
taion committed Aug 21, 2015
2 parents c73f458 + 038a0ff commit 93585dc
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/dev-run
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,9 @@ portfinder.getPorts(2, {}, (portFinderErr, [docsPort, webpackPort]) => {
process.exit(1);
}

runCmd('webpack-dev-server', `nodemon --watch webpack --watch webpack.docs.js --watch node_modules --exec webpack-dev-server -- --config webpack.docs.js --color --port ${webpackPort} --debug --hot --host ${ip.address()}`);
runCmd('webpack-dev-server', `nodemon --watch webpack --watch webpack.docs.js --exec webpack-dev-server -- --config webpack.docs.js --color --port ${webpackPort} --debug --hot --host ${ip.address()}`);

runCmd('docs-server', 'nodemon --watch docs --watch src --watch node_modules --exec babel-node docs/server.js', {
runCmd('docs-server', 'nodemon --watch docs --watch src --exec babel-node docs/server.js', {
env: {
PORT: docsPort,
WEBPACK_DEV_PORT: webpackPort,
Expand Down
13 changes: 13 additions & 0 deletions nodemon.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"restartable": "rs",
"ignore": [
"tmp-bower-repo",
"tmp-docs-repo",
"docs-built",
"amd",
"lib",
"dist",
".coverage",
"tools"
]
}

0 comments on commit 93585dc

Please sign in to comment.