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

Create WebstormIntegration.md #33

Merged
merged 1 commit into from
Apr 22, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions docs/WebstormIntegration.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# How to use with Webstorm IDE

1. Add nodemcu-tool as a local dependency
```
npm install -s nodemcu-tool
```
1. Add scripts like these into your package.json
```
"scripts": {
"ls":"node_modules/.bin/nodemcu-tool fsinfo",
"upload-app":"node_modules/.bin/nodemcu-tool upload app/*",
"devices":"node_modules/.bin/node_modules/.bin/nodemcu-tool devices",
"format":"node_modules/.bin/nodemcu-tool mkfs --noninteractive",
"flash-fw":"esptool.py --port /dev/tty.SLAB_USBtoUART write_flash -fm qio 0x00000 firmware/nodemcu-master-10-modules-2017-04-12-15-24-09-float.bin",
"flash-fw-dev":"esptool.py --port /dev/tty.SLAB_USBtoUART write_flash -fm qio 0x00000 firmware/nodemcu-dev-10-modules-2017-04-14-15-13-54-float.bin",
"erease-flash-fw":"esptool.py --port /dev/tty.SLAB_USBtoUART erase_flash",
"pwd": "pwd",

"terminal":"node_modules/.bin/nodemcu-tool terminal",
"terminal-py":"nodemcu-uploader --port /dev/tty.SLAB_USBtoUART terminal"
},

```

The actual workflow is something like this:

1. ensure no (nodemcu) terminal is running; start upload-app via double click in npm window; look for errors
1. in (webstorm) terminal window enter npm run terminal-py
1. enter there node.restart()
1. ctrl+ü ends (nodemcu) terminal; repeat from 1