yo plugin-wp:js
Initializes javascript for your plugin, including configuring the Gruntfile.js with the proper tasks.
The sub-generator prompts for type of javscript setup; Browserify, Concatination, or just Uglification.
You will need to manually enqueue the javascript.