blockup
Scaffold and serve html, specifically focused on bl.ocks. Go from idea to block from the comfort of your own text editor.
why?
bl.ocks is a great tool! But using the Gist site as a text editor is no fun. This little tool helps you make blocks just a tiny bit faster:
- one command,
blockup
, scaffolds and serves a new block - write ES6 and it gets compiled down to ES5
- browser reloads on file change
That's it for now. It probably won't grow beyond this. But if you have an idea, I'd like to hear it!
usage
Usage: blockup <command>
Commands:
new scaffold and serve a new block (default if directory is empty)
serve serve current block (default if directory is not empty)
Options:
-h, --help Show help [boolean]
v1.0.0
blockup
creates two files: index.html
and script.js
. Put your JS in script.js
. On save, blockup will compile, uglify, minify and inline JS to the <script id="script"></script>
tag in index.html
. So make sure not to delete that tag!
great! but is there a way to upload to gist from the command line?
Yes! See gistup.
install
npm install -g blockup
related