By default, only application.js, application.css and all non-JS/CSS files are precompiled into public/assets. If you have asset manifests...
...solutions as we become more experienced with using Bundler, and more command line tools become Bundler-aware. b will use bundle exec if there is a Gemfile in the working...
...directory, and run the call without Bundler otherwise. b spec spec This script is part of our geordi gem on github...
...between major versions. Use the latest Gemfile snippet from the Rails LTS docs. Run bundle update This will upgrade all your gems, ignoring versions locked in Gemfile.lock. This might lead...
...to conflicting gem versions due to conflicting dependencies. You might have to update (bundle update [gem names]) the necessary gems first or find a compatible gem version(s) setup by...
Using rename_column, remove_column, etc. more than once in a migration makes that migration run slower than it should...
...load on your runners like in the following example .gitlab-ci.yml: rubocop: interruptible: true script: - 'bundle exec rubocop' rspec: interruptible: true script: - 'bundle exec rspec' Afterwards new pushes to your MR...
Add: gem "reek", group: [:test, :development] To run Reek on your Rails project: $ bundle exec reek app lib config test This will check the existing code for antipatterns in...
...commit a .reek.yml file that ignores all existing violations while flagging newly introduced ones: $ bundle exec reek --todo Example output for the "Long Parameter List" smell: app/models/foo.rb -- 1 warning...
...Make sure you don't have any version constraints in your Gemfile or your bundle update won't do anything! Upgrade cucumber_priority: bundle update cucumber_priority Upgrade spreewald:
...update spreewald Upgrade cucumber_factory: bundle update cucumber_factory Upgrade parallel_tests: bundle update parallel_tests Even on the latest version, parallel_tests will print some deprecation warnings due to...
deploy-to-production now calls Capistrano with bundle exec since we started to bundle Capistrano in all projects...
...at its current local state into the current Ruby version. When you're using Bundler, you could also use the gem by specifying a relative path in the Gemfile of...
Capistrano task for Bundler...
...ES module export - importing it runs an IIFE that assigns the API to window.pannellum. Bundle it statically, make sure the viewer's container gets a definite size, and allow blob...
...s no need for a lazy import() chunk; a static import into the main bundle is fine. Minimal viewer const viewer = window.pannellum.viewer(container, { type: 'equirectangular', panorama: '/path/to/equirectangular.jpg', autoLoad: true, })
...foreman to your Gemfile: gem 'jsbundling-rails' group :development, :test do gem 'foreman' # ... end bundle install run bin/rails javascript:install:esbuild in a console to prepare esbuild. run yarn install...
...plugin-import-glob') const { sassPlugin } = require('esbuild-sass-plugin') require('esbuild') .build({ entryPoints: [ 'application.js', ], bundle: true, outdir: path.join(process.cwd(), 'app/assets/builds'), absWorkingDir: path.join(process.cwd(), 'app/assets'), color: true, minify: optimize, sourcemap: true...
...the gigabyte, so you should aim to keep your footprint small. Check your JS bundles Webpack(er): Analyze the size of your JavaScript components
...context and user question. Choosing an input format The final user message has to bundle the retrieved RAG context with the actual question. How you encode that bundle matters: it...
First option is to install it with your package manager: apt-get install vim-puppet vim-addons install puppet
After having written useful scripts into makandra notes for a long time, we’ve now tied them into a powerful...
You can check if that's an issue for your project by running bundle exec rails assets:precompile in your development environment (don't forget to run bundle exec...
...The following bash aliases helped me speed up that process: alias show-next-failure="bundle exec rspec --next-failure" alias open-next-failure="show-next-failure || show-next-failure --format...
# Define an alias to run the next failure alias show-next-failure="bundle exec rspec --next-failure" # IFF there is a failure, print it to the console, then...
...still unstable. Workaround: Temporarily change your import map When you don't use a bundler and rely on the browser to load your module through import maps, there is another...
...causes one extra round trip per file to the server and back! This is bad! Bundle-fu throws it all up into a big package and sends it out all...
...simplicity, we arrived there because of poor community interaction on the part of the Bundler developers...
...gem definition into it so you'll have a Gemfile.lock. Then, run it via bundle exec rackup app.ru You might run into Bundler errors when multiple versions of a gem...
...requires rack 2.2.4. That can also be resolved by using a separate Gemfile and bundle exec rackup. Your application is running in the development environment by default. You can use...
...l -c 'rbenv install 3.4.5 && rbenv global 3.4.5' RUN bash -l -c 'gem install bundler:2.4.13' RUN bash -l -c 'bundle config --global build.nokogiri --use-system-libraries'
...the last exception that was raised in the current call stack Identify Outdated Gems bundle outdated compares the versions of all gem dependencies against the gem server Get Info About...
...count can be used like "count by": [1,2,3].count { |x| x.odd? } Parallel Bundle Install bundle install --jobs 4 Run An Older Version Of Bundler Fun fact: This TIL...