jsbundling-rails
jsbundling-rails copied to clipboard
Bundle and transpile JavaScript in Rails with esbuild, rollup.js, or Webpack.
`command` is a built-in shell command in linux (at least in debian , ubuntu and similars) If executed in ruby system it return *nil* (inspecting: *127 command not found*) This...
We are facing an interesting issue... ``` $ app/assets/builds # Empty $ public/assets # Empty $ bin/rails assets:precompile yarn install yarn build and I, [2023-07-03T10:50:06.731882 #1] INFO -- : Writing...
Support using `SKIP_JS_INSTALL` env variable as an alias for `SKIP_YARN_INSTALL`/`SKIP_BUN_INSTALL`
Support for NPM/PNPM was recently merged, but the name of the environment variable used to skip dependencies installation still refers to Yarn or Bun. This PR introduces a new unified...
By providing a 'changelog_uri' in the metadata of the gemspec a 'Changelog' link will be shown on https://rubygems.org/gems/jsbundling-rails which makes it quick and easy for someone to check on the...
I was trying to replace esbuild with bun by running the installer: ``` ./bin/rails javascript:install:bun ``` but I got this error: ``` Add ability to diff lockb to .gitattributes rails...
How can I get what I use to have using esbuild in package.json: ```json "scripts": { "build": "esbuild app/javascript/*.* --bundle --sourcemap --outdir=app/assets/builds" } ``` This would look like this in...
This PR _looks_ large because this project currently has no testing infrastructure. The vast majority of LOC in this PR are from `Gemfile` and `Gemfile.lock` files. I have split the...
Upon migrating away from Webpacker to jsbundling-rails i am having difficulties finding one alternative way to webpacker `asset_pack_path` on jsbundling-rails. The app in question relies heavily on `asset_pack_path` mainly for...
I have a servicer worker where I have a list of files to be cached. Previous, I ran using `.erb` extension to get that, like this: ```js const CACHE_VERSION =...
Hello, I have a script that is accessed by clients via GET `/embed.js`, I have a controller that does the redirect to the precompiled asset, so it redirects to `/embed-[the-hashed-id].js`...