mqttjs / mqtt-elements

Polymer elements for MQTT
http://mqttjs.github.io/mqtt-elements/
MIT License
27 stars 6 forks source link

Grunt task to bundle MQTT.js for the browser #10

Closed sandro-k closed 9 years ago

sandro-k commented 9 years ago

Currently the bundled version of MQTT.js is placed unter dist/browserMqtt.js and is build manually using browserify.

npm install -g browserify // install browserify
cd node_modules/mqtt
npm install . // install dev dependencies
browserify mqtt.js -s mqtt > browserMqtt.js // require mqtt in your client-side app

It would be great to just type grunt bundle:mqttjs or something similar to create a MQTT.js version for the browser.

sandro-k commented 9 years ago

MQTT.js can be bundled with

 browserify node_modules/mqtt/mqtt.js -o dist/mqtt.js

as of updates are not to frequent the command can be run manually.