diff --git a/.docs/README.hbs b/.docs/README.hbs index d2b35ed..d561497 100644 --- a/.docs/README.hbs +++ b/.docs/README.hbs @@ -1,5 +1,7 @@ # Node Serialport +{{> edit-warning }} + [![npm](https://img.shields.io/npm/dm/serialport.svg?maxAge=2592000)](http://npmjs.com/package/serialport) [![Gitter chat](https://badges.gitter.im/EmergingTechnologyAdvisors/node-serialport.svg)](https://gitter.im/EmergingTechnologyAdvisors/node-serialport) [![Dependency Status](https://david-dm.org/EmergingTechnologyAdvisors/node-serialport.svg)](https://david-dm.org/EmergingTechnologyAdvisors/node-serialport) @@ -171,7 +173,7 @@ npm rebuild --build-from-source #### Electron -Electron is a framework for creating cross-platform desktop applications. Electron comes with it's own version of the Node.js runtime. +Electron is a framework for creating cross-platform desktop applications. Electron comes with it's own version of the Node.js runtime. If you require `serialport` as a depednancy for an Electron project you need to compile it for the version of Electron you're using in your project. @@ -349,4 +351,4 @@ $ serialport-term -h $ serialport-term -l /dev/cu.Bluetooth-Incoming-Port /dev/cu.usbmodem1421 Arduino (www.arduino.cc) -``` \ No newline at end of file +``` diff --git a/.docs/edit-warning.hbs b/.docs/edit-warning.hbs new file mode 100644 index 0000000..a384f35 --- /dev/null +++ b/.docs/edit-warning.hbs @@ -0,0 +1,10 @@ + diff --git a/README.md b/README.md index fcf04b1..888e131 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,16 @@ # Node Serialport + + [![npm](https://img.shields.io/npm/dm/serialport.svg?maxAge=2592000)](http://npmjs.com/package/serialport) [![Gitter chat](https://badges.gitter.im/EmergingTechnologyAdvisors/node-serialport.svg)](https://gitter.im/EmergingTechnologyAdvisors/node-serialport) [![Dependency Status](https://david-dm.org/EmergingTechnologyAdvisors/node-serialport.svg)](https://david-dm.org/EmergingTechnologyAdvisors/node-serialport) @@ -192,7 +203,7 @@ npm rebuild --build-from-source #### Electron -Electron is a framework for creating cross-platform desktop applications. Electron comes with it's own version of the Node.js runtime. +Electron is a framework for creating cross-platform desktop applications. Electron comes with it's own version of the Node.js runtime. If you require `serialport` as a depednancy for an Electron project you need to compile it for the version of Electron you're using in your project. @@ -736,4 +747,4 @@ $ serialport-term -h $ serialport-term -l /dev/cu.Bluetooth-Incoming-Port /dev/cu.usbmodem1421 Arduino (www.arduino.cc) -``` \ No newline at end of file +``` diff --git a/package.json b/package.json index 84c3212..3fa2432 100644 --- a/package.json +++ b/package.json @@ -90,8 +90,8 @@ }, "license": "MIT", "scripts": { - "docs": "jsdoc2md -t .docs/README.hbs --partial .docs/sig-name.hbs --partial .docs/sig-link.hbs -r table --separators --name-format lib/* > README.md", - "docs:diff": "jsdoc2md -t .docs/README.hbs --partial .docs/sig-name.hbs --partial .docs/sig-link.hbs -r table --separators --name-format lib/* | diff README.md - || (echo 'Docs out of date, run `npm run docs` and commit the new README.md' && false)", + "docs": "jsdoc2md --no-cache -t .docs/README.hbs --partial .docs/sig-name.hbs --partial .docs/sig-link.hbs --partial .docs/edit-warning.hbs -r table --separators --name-format lib/* > README.md", + "docs:diff": "jsdoc2md --no-cache -t .docs/README.hbs --partial .docs/sig-name.hbs --partial .docs/sig-link.hbs --partial .docs/edit-warning.hbs -r table --separators --name-format lib/* | diff README.md - || (echo 'Docs out of date, run `npm run docs` and commit the new README.md' && false)", "install": "node-pre-gyp install --fallback-to-build", "rebuild-all": "npm rebuild && node-gyp rebuild", "stress": "mocha --no-timeouts test/arduinoTest/stress.js",