Skip to content

Commit

Permalink
Readme
Browse files Browse the repository at this point in the history
  • Loading branch information
bogdan committed Jul 5, 2023
1 parent 2253fe1 commit 92ed44b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
## master

## v2.2.6

* Prefer to extend `javascript:build` instead of `assets:precompile`. [#305](https://github.com/railsware/js-routes/issues/305)
* Add stimulus framework application.js location to generators

Expand Down
9 changes: 5 additions & 4 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,12 +60,13 @@ import {post_path} from '../routes';
alert(post_path(1))
```

Upgrade `rake assets:precompile` to update js-routes files in `Rakefile`:
Upgrade js building process to update js-routes files in `Rakefile`:

``` ruby
namespace :assets do
task precompile: "js:routes:typescript"
end
task "javascript:build" => "js:routes:typescript"
# For setups without jsbundling-rails
task "assets:precompile" => "js:routes:typescript"

```

Add js-routes files to `.gitignore`:
Expand Down

0 comments on commit 92ed44b

Please sign in to comment.