rollup + nodemon = pocky
yarn global add pocky
# OR
npm i -g pocky
Populate an entry file for your node app, eg. index.js
:
const app = require('express')()
app.get('/', (req, res) =>
res.send('hello world')
)
app.listen(4000, () =>
console.log('> Open http://localhost:4000')
)
Then run pocky
and you can see:
To build your app, run pocky build
instead.
By default it uses babel-preset-pocky which targets your system node version.
pocky [path/to/entry.js]
pocky --rollup-config ./path/to/rollup.config.js
git checkout -b my-new-feature
git commit -am 'Add some feature'
git push origin my-new-feature
pocky © egoist, Released under the MIT License.
Authored and maintained by egoist with help from contributors (list).
egoistian.com · GitHub @egoist · Twitter @rem_rin_rin