diff --git a/.gitignore b/.gitignore index 767c5a5..e64e820 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ ndebug.js +ndebug_compiled.js node_modules diff --git a/README.md b/README.md index daf589d..07a0447 100644 --- a/README.md +++ b/README.md @@ -3,6 +3,8 @@ Purpose ------- +This fork works around the bug where [redirecting Node to a pipe breaks require](https://github.com/nodejs/node/issues/11257). It is also updated for Node v7.10, with the newer syntax. + This is a repo and workflow for a simple ES6/Node.js/Lodash scratchpad for Vim. I got tired of writing bits of code in the web inspector, since it's really difficult to go back and edit code. I wanted a quick little thing I could open up and immediately start writing some ES6 code that also has Lodash available. @@ -27,3 +29,13 @@ buffer remains until I close it, and it'll update each time I save the scratchpa scratchpad buffer: ![http://i.nick.sg/image/2i2N2E1B0j25/gif.gif](http://i.nick.sg/image/2i2N2E1B0j25/gif.gif) + +Alternatively, I use this setup, which lets me write :_ in vim and hit enter: + +``` +au BufWritePost ndebug.js execute "normal! :Clam cd ~/software/git/ndebug; npm run build; cd -\" +function! Ndebug() + :edit ~/software/git/ndebug/ndebug.js +endfunction +cnoremap _ :call Ndebug() +``` diff --git a/package.json b/package.json index 87fe1aa..ba993f5 100644 --- a/package.json +++ b/package.json @@ -4,21 +4,21 @@ "description": "An ES6/Node.js scratchpad for Vim with lodash available.", "main": "index.js", "scripts": { - "build": "babel ndebug.js|node", + "build": "babel ndebug.js > ndebug_compiled.js; node ndebug_compiled.js", "test": "echo \"Error: no test specified\" && exit 1" }, "repository": { "type": "git", - "url": "git+https://github.com/nicksergeant/ndebug.git" + "url": "git+https://github.com/antun/ndebug.git" }, "author": "Nick Sergeant", "license": "MIT", "bugs": { - "url": "https://github.com/nicksergeant/ndebug/issues" + "url": "https://github.com/antun/ndebug/issues" }, - "homepage": "https://github.com/nicksergeant/ndebug#readme", + "homepage": "https://github.com/antun/ndebug#readme", "dependencies": { - "babel": "^5.8.23", - "lodash": "^3.10.1" + "babel-cli": "^6.24.1", + "lodash": "^4.17.4" } }