hovancik/BSDSec

View on GitHub
bin/webpack

Summary

Maintainability
Test Coverage
Missing frozen string literal comment.
#!/usr/bin/env ruby
 
Prefer single-quoted strings when you don't need string interpolation or special symbols.
ENV["RAILS_ENV"] ||= ENV["RACK_ENV"] || "development"
Prefer single-quoted strings when you don't need string interpolation or special symbols.
ENV["NODE_ENV"] ||= "development"
 
Prefer single-quoted strings when you don't need string interpolation or special symbols.
require "pathname"
Prefer single-quoted strings when you don't need string interpolation or special symbols.
ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
Align the arguments of a method call if they span more than one line.
Pathname.new(__FILE__).realpath)
 
Prefer single-quoted strings when you don't need string interpolation or special symbols.
require "bundler/setup"
 
Prefer single-quoted strings when you don't need string interpolation or special symbols.
require "webpacker"
Prefer single-quoted strings when you don't need string interpolation or special symbols.
require "webpacker/webpack_runner"
 
Prefer single-quoted strings when you don't need string interpolation or special symbols.
APP_ROOT = File.expand_path("..", __dir__)
Dir.chdir(APP_ROOT) do
Webpacker::WebpackRunner.run(ARGV)
end