Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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-<hash>.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.
2 changes: 1 addition & 1 deletion bin/console
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
8 changes: 5 additions & 3 deletions webpacker_cli.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -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
Loading