mint-metrics / mojito-js-delivery

🧪 Source-controlled JS split testing framework for building and launching A/B tests.
https://mojito.mx/docs/js-delivery-intro
Other
16 stars 30 forks source link

Add gulp refresh command #85

Closed kingo55 closed 4 years ago

kingo55 commented 4 years ago

Addressing #73 - this adds the Gulp refresh command:

$ gulp refresh
[22:39:56] Using gulpfile ~/Documents/github/mojito-js-delivery/gulpfile.js
[22:39:56] Starting 'refresh'...
[22:39:56] Starting 'build'...
[22:39:58] Finished 'build' after 2.21 s
[22:39:58] Starting 'publish'...
Mojito container built (5.20 KB)
[22:39:59] [update] mojito.js
[22:39:59] [update] mojito.pretty.js
[22:39:59] Finished 'publish' after 580 ms
[22:39:59] Finished 'refresh' after 2.8 s

Then we can automatically build the container on changes. e.g. like with entr:

$ find lib/** | entr gulp refresh