├── .gitignore ├── .travis.yml ├── Gemfile ├── LICENSE ├── README.md ├── Rakefile ├── bin ├── console ├── setup └── webpacker-cli ├── lib ├── webpacker_cli.rb └── webpacker_cli │ ├── rails_template.rb │ └── version.rb ├── test ├── test_helper.rb └── webpacker_cli_test.rb └── webpacker_cli.gemspec /.gitignore: -------------------------------------------------------------------------------- 1 | *.gem 2 | *.rbc 3 | *.swp 4 | /.config 5 | /coverage/ 6 | /InstalledFiles 7 | /pkg/ 8 | /spec/reports/ 9 | /spec/examples.txt 10 | /test/tmp/ 11 | /test/version_tmp/ 12 | /tmp/ 13 | 14 | # Used by dotenv library to load environment variables. 15 | # .env 16 | 17 | ## Specific to RubyMotion: 18 | .dat* 19 | .repl_history 20 | build/ 21 | *.bridgesupport 22 | build-iPhoneOS/ 23 | build-iPhoneSimulator/ 24 | 25 | ## Specific to RubyMotion (use of CocoaPods): 26 | # 27 | # We recommend against adding the Pods directory to your .gitignore. However 28 | # you should judge for yourself, the pros and cons are mentioned at: 29 | # https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control 30 | # 31 | # vendor/Pods/ 32 | 33 | ## Documentation cache and generated files: 34 | /.yardoc/ 35 | /_yardoc/ 36 | /doc/ 37 | /rdoc/ 38 | 39 | ## Environment normalization: 40 | /.bundle/ 41 | /vendor/bundle 42 | /lib/bundler/man/ 43 | 44 | # for a library or gem, you might want to ignore these files since the code is 45 | # intended to run in multiple environments; otherwise, check them in: 46 | Gemfile.lock 47 | .ruby-version 48 | .ruby-gemset 49 | 50 | # unless supporting rvm < 1.11.0 or doing something fancy, ignore this: 51 | .rvmrc 52 | -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- 1 | language: ruby 2 | rvm: 3 | - 2.3.8 4 | - 2.4.5 5 | - 2.5.3 6 | 7 | os: 8 | - linux 9 | - osx 10 | 11 | cache: 12 | bundler: true 13 | 14 | before_install: 15 | - ruby --version 16 | - ruby -e 'require "pp"; pp RbConfig::CONFIG' 17 | 18 | install: 19 | - nvm install node 20 | - node -v 21 | - npm i -g yarn 22 | 23 | script: 24 | - bundle install 25 | - bundle exec rake test 26 | -------------------------------------------------------------------------------- /Gemfile: -------------------------------------------------------------------------------- 1 | source "https://rubygems.org" 2 | 3 | git_source(:github) {|repo_name| "https://github.com/#{repo_name}" } 4 | 5 | # Specify your gem's dependencies in webpacker-cli.gemspec 6 | gemspec 7 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | GNU LESSER GENERAL PUBLIC LICENSE 2 | Version 3, 29 June 2007 3 | 4 | Copyright (C) 2007 Free Software Foundation, Inc. 5 | Everyone is permitted to copy and distribute verbatim copies 6 | of this license document, but changing it is not allowed. 7 | 8 | 9 | This version of the GNU Lesser General Public License incorporates 10 | the terms and conditions of version 3 of the GNU General Public 11 | License, supplemented by the additional permissions listed below. 12 | 13 | 0. Additional Definitions. 14 | 15 | As used herein, "this License" refers to version 3 of the GNU Lesser 16 | General Public License, and the "GNU GPL" refers to version 3 of the GNU 17 | General Public License. 18 | 19 | "The Library" refers to a covered work governed by this License, 20 | other than an Application or a Combined Work as defined below. 21 | 22 | An "Application" is any work that makes use of an interface provided 23 | by the Library, but which is not otherwise based on the Library. 24 | Defining a subclass of a class defined by the Library is deemed a mode 25 | of using an interface provided by the Library. 26 | 27 | A "Combined Work" is a work produced by combining or linking an 28 | Application with the Library. The particular version of the Library 29 | with which the Combined Work was made is also called the "Linked 30 | Version". 31 | 32 | The "Minimal Corresponding Source" for a Combined Work means the 33 | Corresponding Source for the Combined Work, excluding any source code 34 | for portions of the Combined Work that, considered in isolation, are 35 | based on the Application, and not on the Linked Version. 36 | 37 | The "Corresponding Application Code" for a Combined Work means the 38 | object code and/or source code for the Application, including any data 39 | and utility programs needed for reproducing the Combined Work from the 40 | Application, but excluding the System Libraries of the Combined Work. 41 | 42 | 1. Exception to Section 3 of the GNU GPL. 43 | 44 | You may convey a covered work under sections 3 and 4 of this License 45 | without being bound by section 3 of the GNU GPL. 46 | 47 | 2. Conveying Modified Versions. 48 | 49 | If you modify a copy of the Library, and, in your modifications, a 50 | facility refers to a function or data to be supplied by an Application 51 | that uses the facility (other than as an argument passed when the 52 | facility is invoked), then you may convey a copy of the modified 53 | version: 54 | 55 | a) under this License, provided that you make a good faith effort to 56 | ensure that, in the event an Application does not supply the 57 | function or data, the facility still operates, and performs 58 | whatever part of its purpose remains meaningful, or 59 | 60 | b) under the GNU GPL, with none of the additional permissions of 61 | this License applicable to that copy. 62 | 63 | 3. Object Code Incorporating Material from Library Header Files. 64 | 65 | The object code form of an Application may incorporate material from 66 | a header file that is part of the Library. You may convey such object 67 | code under terms of your choice, provided that, if the incorporated 68 | material is not limited to numerical parameters, data structure 69 | layouts and accessors, or small macros, inline functions and templates 70 | (ten or fewer lines in length), you do both of the following: 71 | 72 | a) Give prominent notice with each copy of the object code that the 73 | Library is used in it and that the Library and its use are 74 | covered by this License. 75 | 76 | b) Accompany the object code with a copy of the GNU GPL and this license 77 | document. 78 | 79 | 4. Combined Works. 80 | 81 | You may convey a Combined Work under terms of your choice that, 82 | taken together, effectively do not restrict modification of the 83 | portions of the Library contained in the Combined Work and reverse 84 | engineering for debugging such modifications, if you also do each of 85 | the following: 86 | 87 | a) Give prominent notice with each copy of the Combined Work that 88 | the Library is used in it and that the Library and its use are 89 | covered by this License. 90 | 91 | b) Accompany the Combined Work with a copy of the GNU GPL and this license 92 | document. 93 | 94 | c) For a Combined Work that displays copyright notices during 95 | execution, include the copyright notice for the Library among 96 | these notices, as well as a reference directing the user to the 97 | copies of the GNU GPL and this license document. 98 | 99 | d) Do one of the following: 100 | 101 | 0) Convey the Minimal Corresponding Source under the terms of this 102 | License, and the Corresponding Application Code in a form 103 | suitable for, and under terms that permit, the user to 104 | recombine or relink the Application with a modified version of 105 | the Linked Version to produce a modified Combined Work, in the 106 | manner specified by section 6 of the GNU GPL for conveying 107 | Corresponding Source. 108 | 109 | 1) Use a suitable shared library mechanism for linking with the 110 | Library. A suitable mechanism is one that (a) uses at run time 111 | a copy of the Library already present on the user's computer 112 | system, and (b) will operate properly with a modified version 113 | of the Library that is interface-compatible with the Linked 114 | Version. 115 | 116 | e) Provide Installation Information, but only if you would otherwise 117 | be required to provide such information under section 6 of the 118 | GNU GPL, and only to the extent that such information is 119 | necessary to install and execute a modified version of the 120 | Combined Work produced by recombining or relinking the 121 | Application with a modified version of the Linked Version. (If 122 | you use option 4d0, the Installation Information must accompany 123 | the Minimal Corresponding Source and Corresponding Application 124 | Code. If you use option 4d1, you must provide the Installation 125 | Information in the manner specified by section 6 of the GNU GPL 126 | for conveying Corresponding Source.) 127 | 128 | 5. Combined Libraries. 129 | 130 | You may place library facilities that are a work based on the 131 | Library side by side in a single library together with other library 132 | facilities that are not Applications and are not covered by this 133 | License, and convey such a combined library under terms of your 134 | choice, if you do both of the following: 135 | 136 | a) Accompany the combined library with a copy of the same work based 137 | on the Library, uncombined with any other library facilities, 138 | conveyed under the terms of this License. 139 | 140 | b) Give prominent notice with the combined library that part of it 141 | is a work based on the Library, and explaining where to find the 142 | accompanying uncombined form of the same work. 143 | 144 | 6. Revised Versions of the GNU Lesser General Public License. 145 | 146 | The Free Software Foundation may publish revised and/or new versions 147 | of the GNU Lesser General Public License from time to time. Such new 148 | versions will be similar in spirit to the present version, but may 149 | differ in detail to address new problems or concerns. 150 | 151 | Each version is given a distinguishing version number. If the 152 | Library as you received it specifies that a certain numbered version 153 | of the GNU Lesser General Public License "or any later version" 154 | applies to it, you have the option of following the terms and 155 | conditions either of that published version or of any later version 156 | published by the Free Software Foundation. If the Library as you 157 | received it does not specify a version number of the GNU Lesser 158 | General Public License, you may choose any version of the GNU Lesser 159 | General Public License ever published by the Free Software Foundation. 160 | 161 | If the Library as you received it specifies that a proxy can decide 162 | whether future versions of the GNU Lesser General Public License shall 163 | apply, that proxy's public statement of acceptance of any version is 164 | permanent authorization for you to choose that version for the 165 | Library. 166 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | [![Gem Version](https://badge.fury.io/rb/webpacker_cli.svg)](http://badge.fury.io/rb/webpacker_cli) 2 | [![Build Status](https://travis-ci.org/danielpclark/webpacker-cli.svg)](https://travis-ci.org/danielpclark/webpacker-cli) 3 | 4 | # WebpackerCli 5 | 6 | Bringing the impressive work of the Rails' **Webpacker** project **to be available for frameworks 7 | other than Rails**. This is done by mocking the minimal amount of Rails for the Webpacker's 8 | Rake commands to be able to run. 9 | 10 | Webpacker itself takes Webpack, which has a primary focus for pre-processing JavaScript related 11 | code, and make pre-processing other kinds of files such as CSS, SASS, Images, VueJS, React, 12 | CoffeeScript, and other similar content as simple as a couple very minor edits. Without Webpacker 13 | you would need to go through quite a bit of extra work to get Webpack to handle non JS items. 14 | 15 | This project makes asset packing and cache invalidation easy for any web framework by bringing 16 | Webpacker's tooling to the command line. This cli tool is not meant to be used in a Rails project 17 | _(at least not until it's designed to not overwrite a few files that exist in Rails)_. 18 | 19 | This project has the same dependencies/prerequisites as [Webpacker](https://github.com/rails/webpacker#prerequisites). 20 | 21 | ## Installation 22 | 23 | Install it yourself as: 24 | 25 | $ gem install webpacker_cli 26 | 27 | _Note: If you have trouble compiling the Nokogiri dependency on Linux try installing the following packages: `build-essential ruby-dev libxml2-dev`_ 28 | 29 | ## Usage 30 | 31 | General help is found with 32 | 33 | $ webpacker-cli --help 34 | 35 | The help menu will change after initialization within the project directory. 36 | 37 | And get started using it in your target project with: 38 | 39 | $ webpacker-cli init 40 | 41 | This creates the minimum files for Webpacker to work and runs `bundle` & `rake webpacker:install`. 42 | From here you have your configuration files for Webpack/Webpacker in the `config` directory. 43 | 44 | To compile your assets you may now run: 45 | 46 | $ webpacker-cli compile 47 | 48 | To add support for another file type you can add a file to the `config/webpack/loaders` 49 | directory. Then load it from `config/webpack/environment.js` and lastly add the file extension 50 | to the `config/webpacker.yml` under `default.extensions`. Be sure to add the JS package with 51 | a command like `yarn add`. 52 | 53 | > Server Tip: It is recommended to compile your assets upon deploy rather than per web request. 54 | 55 | Once your assets are compiled for deployment you will need to have your web application route 56 | the assets by the file stored in `public/packs/manifest.json` which will look similar to: 57 | 58 | { 59 | "application.js": "/packs/application-9578bdd78b657fa4358f.js", 60 | "application.js.map": "/packs/application-9578bdd78b657fa4358f.js.map" 61 | } 62 | 63 | This way Webpacker handles cache invalidation for you whenever you make changes to your assets. 64 | So the `manifest.json` is the key-value pair of data used to be substitued in your web page views 65 | for the `src` references. 66 | 67 | ## Example Integration 68 | 69 | For a good example of using this tool for integrating with your own language see [webpacker-rs](https://github.com/danielpclark/webpacker-rs). This library uses this tool to add Webpacker as part of the default build process of web deployment for the Rust language. In essence the user theirself is responsible for running `webpacker-cli init` and then **webpacker-rs** has two methods for deployment which validate dependencies on the server and then compile the assets. After deployment then **webpacker-rs** also provides a method for looking up the file mappings from the `manifest.json` file and provides a convenience helper method for dealing with the path routing. 70 | 71 | ## Contributing 72 | 73 | Bug reports and pull requests are welcome on GitHub at https://github.com/danielpclark/webpacker-cli 74 | 75 | ## License 76 | 77 | The gem is available as open source under the terms of the [GNU Lesser General Public License version 3](https://opensource.org/licenses/LGPL-3.0). 78 | -------------------------------------------------------------------------------- /Rakefile: -------------------------------------------------------------------------------- 1 | require 'bundler/gem_tasks' 2 | require 'rake/testtask' 3 | 4 | Rake::TestTask.new(:test) do |t| 5 | t.libs << 'test' 6 | t.libs << 'lib' 7 | t.test_files = FileList['test/**/*_test.rb'] 8 | end 9 | 10 | task :default => :test 11 | -------------------------------------------------------------------------------- /bin/console: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env ruby 2 | 3 | require "bundler/setup" 4 | require "webpacker/cli" 5 | 6 | # You can add fixtures and/or initialization code here to make experimenting 7 | # with your gem easier. You can also use a different console, if you like. 8 | 9 | # (If you use this, don't forget to add pry to your Gemfile!) 10 | # require "pry" 11 | # Pry.start 12 | 13 | require "irb" 14 | IRB.start(__FILE__) 15 | -------------------------------------------------------------------------------- /bin/setup: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | set -euo pipefail 3 | IFS=$'\n\t' 4 | set -vx 5 | 6 | bundle install 7 | 8 | # Do any other automated setup that you need to do here 9 | -------------------------------------------------------------------------------- /bin/webpacker-cli: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env ruby 2 | 3 | $LOAD_PATH.unshift File.expand_path('../lib', __dir__) 4 | 5 | require 'tty/command' 6 | require 'webpacker_cli' 7 | 8 | def init_menu 9 | <<~INITIAL_MENU 10 | To first initialize Webpacker in this project run the following command. 11 | 12 | webpacker-cli init 13 | 14 | This will generate the minimal content to use webpacker. 15 | 16 | Dependencies: 17 | * Ruby 2.2+ 18 | * Node.js 6.14.0+ 19 | * Yarn 1.x+ 20 | INITIAL_MENU 21 | end 22 | 23 | # For menu creation 24 | def rake_webpacker 25 | TTY::Command. 26 | new(printer: :null). 27 | run!('rake webpacker') 28 | end 29 | 30 | def usage 31 | result = rake_webpacker 32 | if result.failure? 33 | puts init_menu 34 | else 35 | puts result.out.gsub(/webpacker:/, "webpacker-cli ") 36 | end 37 | end 38 | 39 | case ARGV[0] 40 | when /^(?:--help|-h)$/ then 41 | usage 42 | when /^init$/ 43 | puts "INITIALIZING WEBPACKER…" 44 | WebpackerCli.init() 45 | when /^[a-z:]+$/ 46 | TTY::Command. 47 | new(color: false, uuid: false). 48 | run("rake webpacker:#{ARGV.join(' ')}") 49 | else 50 | usage 51 | end 52 | -------------------------------------------------------------------------------- /lib/webpacker_cli.rb: -------------------------------------------------------------------------------- 1 | require 'webpacker_cli/version' 2 | require 'webpacker_cli/rails_template' 3 | require 'fileutils' 4 | require 'tty/command' 5 | require 'bundler' 6 | 7 | module WebpackerCli 8 | FILE_MANIFEST = %w[ 9 | bin 10 | bin/rails 11 | config 12 | config/application.rb 13 | config/webpack/development.js 14 | config/webpack/environment.js 15 | config/webpack/loaders 16 | config/webpack/production.js 17 | config/webpack/test.js 18 | package.json 19 | Gemfile 20 | Rakefile 21 | ] 22 | 23 | class << self 24 | def init(**opts) 25 | dir = opts.fetch(:dir) { Dir.pwd } 26 | test = opts.fetch(:test) { !!ENV['WEBPACKER_CLI'].to_s['TEST'] } 27 | 28 | Dir.chdir(dir) do 29 | File.open('Gemfile', 'w') {|file| 30 | file.write(WebpackerCli::RailsTemplate.gemfile(test)) 31 | } 32 | File.open('Rakefile', 'w') {|file| file.write(WebpackerCli::RailsTemplate.rakefile) } 33 | 34 | FileUtils.mkdir_p('bin') 35 | File.open('bin/rails', 'w') {|file| file.write(WebpackerCli::RailsTemplate.bin_rails) } 36 | 37 | File.open('package.json', 'w') {|file| file.write(WebpackerCli::RailsTemplate.package_json) } 38 | 39 | FileUtils.mkdir_p('config/webpack/loaders') 40 | File.open('config/application.rb', 'w') {|file| file.write(WebpackerCli::RailsTemplate.config_application) } 41 | 42 | env = { 43 | BUNDLE_GEMFILE: "#{dir}/Gemfile" 44 | } 45 | 46 | if test 47 | env.update( { 48 | GEM_HOME: ENV["GEM_HOME"], 49 | GEM_PATH: ENV["GEM_PATH"], 50 | }) 51 | end 52 | 53 | bundler_env(test) do 54 | TTY::Command. 55 | new(color: false, uuid: false). 56 | run(env, 'bundle install', chdir: dir) 57 | 58 | TTY::Command. 59 | new(color: false, uuid: false). 60 | run(env, "bundle exec #{executable} install", chdir: dir) 61 | end 62 | end 63 | end 64 | 65 | def bundler_env(test) 66 | if test 67 | Bundler.with_clean_env { yield } 68 | else 69 | yield 70 | end 71 | end 72 | 73 | def executable 74 | begin 75 | Gem.bin_path("webpacker_cli", "webpacker-cli") 76 | rescue 77 | File.expand_path('../bin/webpacker-cli', __dir__) 78 | end 79 | end 80 | end 81 | end 82 | -------------------------------------------------------------------------------- /lib/webpacker_cli/rails_template.rb: -------------------------------------------------------------------------------- 1 | module WebpackerCli 2 | module RailsTemplate 3 | class << self 4 | def gemfile(test = false) 5 | %Q$source 'https://rubygems.org' 6 | git_source(:github) { |repo| "https://github.com/\#{repo}.git" } 7 | 8 | gem 'rake', '>= 11' 9 | gem 'webpacker_cli', '#{WebpackerCli::VERSION}'#{ 10 | if test; ", path: '#{File.expand_path('../', __dir__)}'" end 11 | } 12 | $ + gemspec_deps 13 | end 14 | 15 | def rakefile 16 | %q$require_relative "config/application" 17 | 18 | Rails.application.load_tasks$ 19 | end 20 | 21 | def config_application 22 | %q$require "action_controller/railtie" 23 | require "action_view/railtie" 24 | require "webpacker" 25 | 26 | module TestApp 27 | class Application < ::Rails::Application 28 | config.secret_key_base = "abcdef" 29 | config.eager_load = true 30 | config.webpacker.check_yarn_integrity = false 31 | end 32 | end$ 33 | end 34 | 35 | def package_json 36 | %q${ 37 | "name": "application", 38 | "private": true, 39 | "dependencies": { 40 | "@rails/webpacker": "3.5" 41 | }, 42 | "devDependencies": { 43 | "webpack-dev-server": "2.11.2" 44 | } 45 | }$ 46 | end 47 | 48 | def bin_rails 49 | %q$#!/usr/bin/env ruby 50 | APP_PATH = File.expand_path('../config/application', __dir__) 51 | require 'rails/commands'$ 52 | end 53 | 54 | def gemspec_deps 55 | gemspec.runtime_dependencies. 56 | map {|i| "gem '#{i.name}', '#{i.requirement.requirements.join(' ')}'"}. 57 | join("\n") 58 | end 59 | 60 | def gemspec 61 | begin 62 | Gem::Specification.find_by_name "webpacker_cli" 63 | rescue 64 | local_spec = File.expand_path("../../webpacker_cli.gemspec", __dir__) 65 | 66 | raise "Gemspec not found for 'webpacker_cli'!" unless File.exist? local_spec 67 | 68 | eval File.read(local_spec) 69 | end 70 | end 71 | end 72 | end 73 | end 74 | 75 | -------------------------------------------------------------------------------- /lib/webpacker_cli/version.rb: -------------------------------------------------------------------------------- 1 | module WebpackerCli 2 | VERSION = "0.9.4" 3 | end 4 | -------------------------------------------------------------------------------- /test/test_helper.rb: -------------------------------------------------------------------------------- 1 | $LOAD_PATH.unshift File.expand_path('../../lib', __FILE__) 2 | require 'webpacker_cli' 3 | 4 | ENV['WEBPACKER_CLI'] = 'TEST' 5 | 6 | require 'minitest/autorun' 7 | require 'color_pound_spec_reporter' 8 | 9 | Minitest::Reporters.use! [ColorPoundSpecReporter.new] 10 | 11 | Minitest.after_run { ENV.delete('WEBPACKER_CLI') } 12 | -------------------------------------------------------------------------------- /test/webpacker_cli_test.rb: -------------------------------------------------------------------------------- 1 | require 'test_helper' 2 | 3 | class WebpackerCliTest < Minitest::Test 4 | attr_reader :dir 5 | def setup 6 | @dir = Dir.mktmpdir 7 | Dir.chdir(@dir) 8 | TTY::Command.new(color: false, uuid: false). 9 | run("gem install bundler rake") 10 | end 11 | 12 | def test_files_are_created 13 | WebpackerCli.init(dir: dir) 14 | WebpackerCli::FILE_MANIFEST.each do |file| 15 | assert File.exist?("#{dir}/#{file}"), "File '#{file}' doesn't exist!" 16 | end 17 | end 18 | 19 | def test_files_are_created_with_executable 20 | TTY::Command.new(color: false, uuid: false). 21 | run("#{WebpackerCli.executable} init") 22 | WebpackerCli::FILE_MANIFEST.each do |file| 23 | assert File.exist?("#{dir}/#{file}"), "File '#{file}' doesn't exist!" 24 | end 25 | end 26 | end 27 | -------------------------------------------------------------------------------- /webpacker_cli.gemspec: -------------------------------------------------------------------------------- 1 | lib = File.expand_path('../lib', __FILE__) 2 | $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib) 3 | require 'webpacker_cli/version' 4 | 5 | Gem::Specification.new do |spec| 6 | spec.name = 'webpacker_cli' 7 | spec.version = WebpackerCli::VERSION 8 | spec.authors = ['Daniel P. Clark'] 9 | spec.email = ['6ftdan@gmail.com'] 10 | 11 | spec.summary = %q{Bringing Webpacker to any framework.} 12 | spec.description = %q{Bringing the impressive work of the Rails' Webpacker project to be available for other frameworks.} 13 | spec.license = 'LGPL-3.0' 14 | spec.homepage = 'https://github.com/danielpclark/webpacker-cli' 15 | spec.required_ruby_version = '>= 2.2' 16 | 17 | # Specify which files should be added to the gem when it is released. 18 | # The `git ls-files -z` loads the files in the RubyGem that have been added into git. 19 | spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do 20 | `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) } 21 | end 22 | spec.bindir = 'bin' 23 | spec.executables = ['webpacker-cli'] 24 | spec.require_paths = ['lib'] 25 | 26 | spec.add_development_dependency 'rake', '>= 11.0' 27 | spec.add_development_dependency 'minitest', '~> 5.11' 28 | spec.add_development_dependency 'minitest-reporters', '~> 1.1' 29 | spec.add_development_dependency 'color_pound_spec_reporter', '~> 0.0.6' 30 | spec.add_dependency 'bundler', '>= 1.16' 31 | spec.add_dependency 'tty-command', '~> 0.8' 32 | spec.add_dependency 'webpacker', '~> 4.0.0' 33 | end 34 | --------------------------------------------------------------------------------