- Setting Up a Development Environment
- Making sure your changes pass all tests
- Testing the generator
- Find existing issues
-
Install Yarn
-
Run the following commands to set up the development environment.
bundle install
yarn
There are a number of automated checks which run on GitHub Actions when a pull request is created.
You can run those checks on your own locally to make sure that your changes would not break the CI build.
yarn lint
bundle exec rubocop
yarn test
bundle exec rake test
bundle exec rake test TEST=test/rake_tasks_test.rb
bundle exec ruby -I test test/rake_tasks_test.rb -n test_rake_webpacker_install
If you change the generator, check that install instructions work.
- Update the gemfile so that gem "webpacker" has a line like this, pointing to your install of webpacker
gem 'webpacker', path: "~/shakacode/forks/shakapacker"
bundle
- Run the generator confirm that you got the right changes.
You may look at the issues list to find existing known issues to be addressed. In this, we recommend to look at closed issues, particularly with "help wanted" label.