diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..d985da2 --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,16 @@ +# Changelog + +## 1.0.0 + +Complete rewrite; no longer depends on Webpacker or Rails. + +- Drives Webpack 5 directly through a generated, editable `config/webpack/webpack.config.js`. +- No runtime gem dependencies. +- `init` generates `config/webpacker.yml`, an entry pack and `package.json`; existing files are kept unless `--force`. +- New commands: `compile`, `watch`, `clobber`, `check`, `info`, `version`. +- `public/packs/manifest.json` keeps its flat `"application.js" => "/packs/application-.js"` format. +- **Breaking:** the `webpacker:*` rake tasks and the generated `Gemfile`, `Rakefile`, `bin/rails`, `config/application.rb` and `config/webpack/loaders` are gone. Requires Ruby >= 3.0 and Node >= 20.9. + +## 0.9.4 and earlier + +Mocked a Rails app to run Webpacker 4's rake tasks. diff --git a/bin/console b/bin/console index c40d131..c1860d8 100755 --- a/bin/console +++ b/bin/console @@ -1,7 +1,7 @@ #!/usr/bin/env ruby require "bundler/setup" -require "webpacker/cli" +require "webpacker_cli" # You can add fixtures and/or initialization code here to make experimenting # with your gem easier. You can also use a different console, if you like. diff --git a/webpacker_cli.gemspec b/webpacker_cli.gemspec index 3be1708..b4ff9da 100644 --- a/webpacker_cli.gemspec +++ b/webpacker_cli.gemspec @@ -10,19 +10,21 @@ Gem::Specification.new do |spec| spec.summary = %q{Bringing Webpacker to any framework.} spec.description = %q{Webpacker's conventions (webpacker.yml, packs, manifest.json) for any framework, powered by Webpack 5 and without Rails.} - spec.license = 'LGPL-3.0' + spec.license = 'LGPL-3.0-only' spec.homepage = 'https://github.com/danielpclark/webpacker-cli' spec.required_ruby_version = '>= 3.0' + spec.metadata['source_code_uri'] = spec.homepage + spec.metadata['changelog_uri'] = "#{spec.homepage}/blob/master/CHANGELOG.md" # Specify which files should be added to the gem when it is released. # The `git ls-files -z` loads the files in the RubyGem that have been added into git. spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do - `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) } + `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features|\.github)/}) } end spec.bindir = 'bin' spec.executables = ['webpacker-cli'] spec.require_paths = ['lib'] - spec.add_development_dependency 'rake', '>= 13.0' + spec.add_development_dependency 'rake', '~> 13.0' spec.add_development_dependency 'minitest', '~> 5.11' end