All Projects → hokaccha → Simpacker

hokaccha / Simpacker

Use modern JavaScript build system in Rails.

Programming Languages

javascript
184084 projects - #8 most used programming language
ruby
36898 projects - #4 most used programming language

Projects that are alternatives of or similar to Simpacker

Webpacker React
Webpacker plugin to integrate React in your Rails application
Stars: ✭ 201 (+101%)
Mutual labels:  webpack, rails
Hyper React
The project has moved to Hyperstack!!
Stars: ✭ 295 (+195%)
Mutual labels:  webpack, rails
Docker Web Framework Examples
Example apps that demonstate how to use Docker with your favorite web frameworks.
Stars: ✭ 204 (+104%)
Mutual labels:  webpack, rails
React webpack rails
Simple and lightweight react-webpack-rails integration.
Stars: ✭ 248 (+148%)
Mutual labels:  webpack, rails
Vue Rails Form Builder Demo
An example of Rails app using vue-form-for gem
Stars: ✭ 12 (-88%)
Mutual labels:  webpack, rails
Limestone
Boilerplate Rails 6 SaaS application with Webpack, Stimulus and Docker integration.
Stars: ✭ 191 (+91%)
Mutual labels:  webpack, rails
Kickoff tailwind
A rapid Rails 6 application template for personal use bundled with Tailwind CSS
Stars: ✭ 287 (+187%)
Mutual labels:  webpack, rails
Vueport
Single file components for Rails with Vue JS and Webpack
Stars: ✭ 141 (+41%)
Mutual labels:  webpack, rails
Webpacker
Use Webpack to manage app-like JavaScript modules in Rails
Stars: ✭ 5,282 (+5182%)
Mutual labels:  webpack, rails
Kails
A Web App like Ruby on Rails with Koa2, Webpack and Postgres
Stars: ✭ 512 (+412%)
Mutual labels:  webpack, rails
Hyperstack
Hyperstack ALPHA https://hyperstack.org
Stars: ✭ 463 (+363%)
Mutual labels:  webpack, rails
Ifme
Free, open source mental health communication web app to share experiences with loved ones
Stars: ✭ 1,147 (+1047%)
Mutual labels:  webpack, rails
Docker Rails React Starter
A basic docker-compose, Rails and React / Webpack starter kit
Stars: ✭ 52 (-48%)
Mutual labels:  webpack, rails
Npm Pipeline Rails
Use npm as part of your Rails asset pipeline
Stars: ✭ 93 (-7%)
Mutual labels:  webpack, rails
Uglifyjs Webpack Plugin
[deprecated] UglifyJS Plugin
Stars: ✭ 1,343 (+1243%)
Mutual labels:  webpack
Stack Source Map
Add source map support for error stack (Chrome only)
Stars: ✭ 98 (-2%)
Mutual labels:  webpack
Fork Ts Checker Webpack Plugin
Webpack plugin that runs typescript type checker on a separate process.
Stars: ✭ 1,343 (+1243%)
Mutual labels:  webpack
Eleventy Starter
An 11ty starter project.
Stars: ✭ 97 (-3%)
Mutual labels:  webpack
Lol dba
lol_dba is a small package of rake tasks that scan your application models and displays a list of columns that probably should be indexed. Also, it can generate .sql migration scripts.
Stars: ✭ 1,363 (+1263%)
Mutual labels:  rails
Vuedemo sell eleme
ele by vue2.x 🐧
Stars: ✭ 1,349 (+1249%)
Mutual labels:  webpack

Simpacker

Build Status Gem Version

Simpacker provides the feature to integrate modern JavaScript build system with Rails, like a webpacker.

Installation

Create a new rails application without webpacker.

$ rails new myapp --skip-javascript

Add this line to your application's Gemfile:

gem 'simpacker'

Run the following to install Simpacker:

$ rails simpacker:install

Add javascript_pack_tag in view.

<%= javascript_pack_tag 'application' %>

Run the folloing command to build JavaScript.

$ ./node_modules/.bin/webpack --watch

Examples

VS. Webpacker

Webpacker is a great product that you can easily use webpack without knowing it. It also provides many useful features. The difficulty with Webpacker is that you need to configure webpack via webpacker's own DSL and webpacker.yml. If you know how to configure webpack, you need to convert it to webpacker configuration. I want to edit webpack.config.js directly!

Simpacker provides only minimal features that lookup the manifest.json output by webpack and a create script tag through javascript_pack_tag. You need to know about webpack, but there is little to know about Simpacker.

However, some useful features of Webpacker, such as yarn integrity and compilation on request, are not available in Simpacker.

Deployment

Simpacker does not provide feature for deployment. Just run the following command at deployment.

$ npm install
$ NODE_ENV=production ./node_modules/.bin/webpack

See also: CDN, Heroku, Docker

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/hokaccha/simpacker.

License

The gem is available as open source under the terms of the MIT License.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].