Remove unutilized coffee-rails dependency

All coffee script has been translated into vanilla javascript and no
longer requires the gem coffee-rails. This PR removes the dependency
and all associated language associated with utilization of the gem.
This commit is contained in:
Connor Ferguson 2022-06-06 06:47:08 -06:00
parent 4cc1d5aeb0
commit a4a571c52b
9 changed files with 7 additions and 14 deletions

View File

@ -15,7 +15,7 @@ tab_width = 2
[**.rb]
max_line_length = 80
[**.js, **.coffee]
[**.js]
max_line_length = 120
[*.md]

View File

@ -8,12 +8,7 @@ Backend contains the controllers, views, and assets making up the admin interfac
Can be found in [app/assets/javascripts/spree/backend/](./app/assets/javascripts/spree/backend/)
Our scripts are written in a mix of CoffeeScript and JavaScript (ES5). We can't
easily use a transpiler for ECMAScript >= 6 without adding additional steps for
applications using solidus\_admin.
Though we have existing CoffeeScript files, any new files should be in
JavaScript (ES5).
Any new files should be in JavaScript (ES5).
### Stylesheets

View File

@ -4,7 +4,6 @@ require 'spree_core'
require 'spree_api'
require 'jquery-rails'
require 'coffee-rails'
require 'sassc-rails'
require 'handlebars_assets'
require 'font-awesome-rails'

View File

@ -26,7 +26,6 @@ Gem::Specification.new do |s|
s.add_dependency 'solidus_api', s.version
s.add_dependency 'solidus_core', s.version
s.add_dependency 'coffee-rails'
s.add_dependency 'font-awesome-rails', '~> 4.0'
s.add_dependency 'jbuilder', '~> 2.8'
s.add_dependency 'jquery-rails'

View File

@ -31,7 +31,7 @@ if defined?(DummyApp)
config.suite do |suite|
suite.use_framework :mocha, "2.3.3"
suite.matcher = "{spec/javascripts,app/assets}/**/*_spec.{js,js.coffee,coffee}"
suite.matcher = "{spec/javascripts,app/assets}/**/*_spec.js"
suite.helper = "spec_helper"
suite.boot_partial = "/boot"
suite.expand_assets = true

View File

@ -1,5 +1,5 @@
// This is a manifest file that'll be compiled into including all the files listed below.
// Add new JavaScript/Coffee code in separate files in this directory and they'll automatically
// Add new JavaScript code in separate files in this directory and they'll automatically
// be included in the compiled file accessible from http://example.com/assets/application.js
// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
// the compiled file.

View File

@ -1,5 +1,5 @@
// This is a manifest file that'll be compiled into including all the files listed below.
// Add new JavaScript/Coffee code in separate files in this directory and they'll automatically
// Add new JavaScript code in separate files in this directory and they'll automatically
// be included in the compiled file accessible from http://example.com/assets/application.js
// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
// the compiled file.

View File

@ -1,5 +1,5 @@
// This is a manifest file that'll be compiled into including all the files listed below.
// Add new JavaScript/Coffee code in separate files in this directory and they'll automatically
// Add new JavaScript code in separate files in this directory and they'll automatically
// be included in the compiled file accessible from http://example.com/assets/application.js
// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
// the compiled file.

View File

@ -1,5 +1,5 @@
// This is a manifest file that'll be compiled into including all the files listed below.
// Add new JavaScript/Coffee code in separate files in this directory and they'll automatically
// Add new JavaScript code in separate files in this directory and they'll automatically
// be included in the compiled file accessible from http://example.com/assets/application.js
// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
// the compiled file.