Sha256: 688ddaa9c8edcf021608c9475748f9d82400ec776055f55736120a71e8488039
Contents?: true
Size: 757 Bytes
Versions: 3
Compression:
Stored size: 757 Bytes
Contents
# frozen_string_literal: true require "stimulus_reflex/installer" lines = package_json.readlines if !lines.index { |line| line =~ /^\s*["']cable_ready["']: ["'].*#{cr_npm_version}["']/ } add_package "cable_ready@#{cr_npm_version}" else say "⏩ cable_ready npm package is already present. Skipping." end if !lines.index { |line| line =~ /^\s*["']stimulus_reflex["']: ["'].*#{sr_npm_version}["']/ } add_package "stimulus_reflex@#{sr_npm_version}" else say "⏩ stimulus_reflex npm package is already present. Skipping." end if !lines.index { |line| line =~ /^\s*["']@hotwired\/stimulus["']:/ } add_package "@hotwired/stimulus@^3.2" else say "⏩ @hotwired/stimulus npm package is already present. Skipping." end complete_step :npm_packages
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
stimulus_reflex-3.5.0.rc2 | lib/install/npm_packages.rb |
stimulus_reflex-3.5.0.rc1 | lib/install/npm_packages.rb |
stimulus_reflex-3.5.0.pre10 | lib/install/npm_packages.rb |