0.0
The project is in a healthy, maintained state
Jets Upgrade Tool
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 0
>= 0
>= 0

Runtime

 Project Readme

Jets Upgrade

Gem Version

BoltOps Badge

BoltOps Learn Badge

This is a standalone CLI tool to help with jets upgrades.

  • It can handle going from Jets v3 or v4 to Jets v5.

Usage

cd old-jets-project
jets-upgrade go

Before proceeding, the tool will prompt you with a "Are you sure" message.

What It Does

Here are some of the things the tool does. It updates:

  • config/application.rb: to the new inherited based style
  • Rakefile: use Jets.application.load_tasks
  • Gemfile: update to add jets v5 related gems and comment out the current ones in your Gemfile
  • config/environment: update environment files to new config settings
  • controllers: updates controller to use def destroy instead of def delete

Important

It's unfeasible to account for all cases and Jets apps. This script cannot perform miracle upgrades. It's a best-effort script, and the hope is that this script gets you pretty far and is helpful. 😄

Also see: Jets 5 Upgrading Notes

Install

gem install jets-upgrade

Javascript Option

By default, the jets-upgrade go command also tries to upgrade JavaScript. Jets v5 goes from webpacker to importmap. So, the node-related files are no longer needed. The upgrade command will remove node-related files. If you do not want this behavior, use the --no-javascript option.

Docs

Jets Upgrade Docs