Skip to content

Commit

Permalink
install: add the boilplate application.js into packs/ (#363)
Browse files Browse the repository at this point in the history
`shakapacker.yml` has `source_entry_path: packs` instead of `/` by default.
  • Loading branch information
layerssss authored Sep 28, 2023
1 parent 732ba01 commit b52e9a9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ _Please add entries here for your pull requests that are not yet released._

### Fixed
- Use `NODE_OPTIONS` to enable Node-specific debugging flags [PR 350](https://github.com/shakacode/shakapacker/pull/350)
- Add the boilplate `application.js` into `packs/` [PR 363](https://github.com/shakacode/shakapacker/pull/363)

## [v7.0.3] - July 7, 2023
### Fixed
Expand Down
4 changes: 2 additions & 2 deletions lib/install/template.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
say "The packs app source directory already exists"
else
say "Creating packs app source directory"
empty_directory "app/javascript"
copy_file "#{__dir__}/application.js", "app/javascript/application.js"
empty_directory "app/javascript/packs"
copy_file "#{__dir__}/application.js", "app/javascript/packs/application.js"
end

apply "#{__dir__}/binstubs.rb"
Expand Down

0 comments on commit b52e9a9

Please sign in to comment.