Repository: https://github.com/shakacode/react_on_rails PR: shakacode/react_on_rails#2593 Date: 2026-03-13 (HST)
pnpm --filter react-on-rails-pro-node-renderer exec jest tests/uploadRaceCondition.test.ts --runInBandRepository: https://github.com/shakacode/react_on_rails PR: shakacode/react_on_rails#2593 Date: 2026-03-13 (HST)
pnpm --filter react-on-rails-pro-node-renderer exec jest tests/uploadRaceCondition.test.ts --runInBand| # Using these pry gems -- copy to your Gemfile | |
| # group :development, :test do | |
| # gem 'awesome_print' # pretty print ruby objects | |
| # gem 'pry' # Console with powerful introspection capabilities | |
| # # pick either: | |
| # # using byebug, but has issues with Zeitwerk | |
| # gem 'pry-byebug' # Integrates pry with byebug | |
| # | |
| # # using default ruby debuggger | |
| # gem 'pry-stack_explorer' |
| # Using these pry gems -- copy to your Gemfile | |
| # group :development, :test do | |
| # gem 'awesome_print' # pretty print ruby objects | |
| # gem 'pry' # Console with powerful introspection capabilities | |
| # # pick either: | |
| # # using byebug, but has issues with Zeitwerk | |
| # gem 'pry-byebug' # Integrates pry with byebug | |
| # | |
| # # using default ruby debuggger | |
| # gem 'pry-stack_explorer' |
gpf='git push --force-with-lease'
gca='git commit -v -a'
gpthis='git push origin HEAD:$(git_current_branch) && git branch -u origin/$(git_current_branch) $(git_current_branch) && echo "pushed current branch and set upstream to origin"'
gco='git checkout'
g='grep -i --color=auto'
hb='hub browse'
| #!/usr/bin/env bash | |
| # Edit the list of commands. | |
| # YOU MUST USE SINGLE QUOTES HERE. | |
| commands=( | |
| 'yarn run build:client-bundles:prod' | |
| 'yarn run build:server-bundle:prod' | |
| 'yarn run build:global-styles:prod' | |
| ) |
| ######################################################################################################################## | |
| ######################################################################################################################## | |
| # run-prod-locally.sh | |
| ######################################################################################################################## | |
| echo "Only run this once to set your production setup after changing JS assets." | |
| echo "You can run foreman start -f Procfile.local-prod to restart the server without recompiling" | |
| echo "You may want to have your /application.yml and /config/database.yml reflect your development settings for production" | |
| # Run the rake tasks as production | |
| RAILS_ENV=production rake assets:clobber |
| ////////////////////////////////////////////////////////////////////////////////////////////// | |
| ////////////////////////////////////////////////////////////////////////////////////////////// | |
| // app/bundles/HelloWorld/actions/helloWorldActionCreators.jsx | |
| import { HELLO_WORLD_NAME_UPDATE } from '../constants/helloWorldConstants'; | |
| export const updateName = (text) => ({ | |
| type: HELLO_WORLD_NAME_UPDATE, | |
| text, | |
| }); |
| // multiple entities returned gets normalized | |
| // https://github.com/shakacode/react-webpack-rails-tutorial/blob/08081f07c7d2686facf2e98d956d50dfbef83678/mobile/ReactNativeTutorial/app/api/index.js | |
| export const fetchComments = async () => { | |
| const response = await getRequest('comments.json'); | |
| const camelizedResponse = _.mapKeys(_.camelCase, response); | |
| const { entities } = normalize(camelizedResponse, { comments: commentsSchema }); | |
| return entities; | |
| }; |
| # See in use here: | |
| # https://github.com/shakacode/react-webpack-rails-tutorial/blob/master/spec/support/poltergeist.rb | |
| # This file supports 2 strategies: | |
| # 1. switch_to_selenium: switch drivers | |
| # 2. restart_poltergeist | |
| RESTART_PHANTOMJS = ENV["RESTART_PHANTOMJS"] && | |
| %w(TRUE YES).include?(ENV["RESTART_PHANTOMJS"].upcase) | |
| puts "RESTART_PHANTOMJS = #{RESTART_PHANTOMJS}" |