I published this article Fast Rich Client Rails Development With Webpack and the ES6 Transpiler, and it’s getting really good traction (browserify-rails users, so I wanted to share with the Parley group.
There has to be a better way to incorporate the JavaScript ecosystem into Rails.
Have you:
- Wondered if there’s a better way to utilize modern JavaScript client frameworks the context of an existing Ruby on Rails project?
- Gotten confused about how to integrate JavaScript libraries and examples that are packaged up into proper “modules”?
- Discovered the drawbacks of having all applications JavaScript littering the global name-space.
- Heard about ES6 (aka Harmony), the next version of JavaScript and how the cool kids in Silicon Valley (Facebook, Instagram, Square, etc.) are using ES6 syntax?
How would you like to achieve, within a Rails project:
- The ability to prototype a rich UI, seeing changes in JS and CSS/Sass code almost instantly after hitting save, without the page reloading.
- First class citizenship for utilizing the Node ecosystem, by specifying
dependencies in
package.json
, runningnpm install
, and then simply requiring modules in JavaScript files. - Seamless integration of Node based JavaScript assets for the Rails Asset Pipeline, thus not circumventing the asset pipeline, but co-existing with it and leveraging it.
- The ability to plug the node client side ecosystem into an existing Rails project seamlessly.
- Utilization of many JavaScript tools, such as the React JSX tranpiler and ES6 transpiler.
This article will show you how you can utilize Webpack in your Rails development process to achieve these goals!
Here’s the article: Fast Rich Client Rails Development With Webpack and the ES6 Transpiler