We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bf6721d commit e006934Copy full SHA for e006934
.travis.yml
@@ -29,8 +29,9 @@ install:
29
- npm install npm@latest -g
30
- npm --version
31
- npm install
32
+ - rake react_on_rails:locale
33
+ - cd client && npm run build:test
34
- rake db:setup
- - npm run build:client && npm run build:server
35
36
# Tip: No need to run xvfb if running headless testing. However, we're going to start with
37
# Poltergeist and switch to selenium if a test fails.
Procfile.dev
@@ -7,7 +7,7 @@
7
rails: REACT_ON_RAILS_ENV=HOT rails s -b 0.0.0.0
8
9
# Run the hot reload server for client development
10
-hot-assets: sh -c 'rm app/assets/webpack/* || true && HOT_RAILS_PORT=3500 npm run hot-assets'
+hot-assets: sh -c 'rm app/assets/webpack/* || true && bundle exec rake react_on_rails:locale && HOT_RAILS_PORT=3500 npm run hot-assets'
11
12
# Render static client assets
13
rails-static-client-assets: sh -c 'npm run build:dev:client'
Procfile.hot
@@ -6,7 +6,7 @@
6
# Keep the JS fresh for server rendering. Remove if not server rendering
rails-server-assets: sh -c 'npm run build:dev:server'
Procfile.spec
@@ -3,7 +3,7 @@
3
# in rails_helper.rb.
4
5
# Build client assets, watching for changes.
-rails-client-assets: sh -c 'npm run build:dev:client'
+rails-client-assets: sh -c 'bundle exec rake react_on_rails:locale && npm run build:dev:client'
# Build server assets, watching for changes. Remove if not server rendering.
Procfile.static
@@ -2,7 +2,7 @@
2
rails: REACT_ON_RAILS_ENV= rails s -b 0.0.0.0
-rails-client-assets: rm app/assets/webpack/* || true && npm run build:dev:client
+rails-client-assets: rm app/assets/webpack/* || true && bundle exec rake react_on_rails:locale && npm run build:dev:client
rails-server-assets: npm run build:dev:server
Procfile.static.trace
rails: TRACE_REACT_ON_RAILS=TRUE rails s -b 0.0.0.0
-rails-client-assets: npm run build:dev:client
+rails-client-assets: bundle exec rake react_on_rails:locale && npm run build:dev:client
config/application.rb
@@ -12,12 +12,5 @@ class Application < Rails::Application
# Application configuration should go into files in config/initializers
# -- all .rb files in that directory are automatically loaded.
14
config.action_cable.allowed_request_origins = [Rails.application.secrets.action_cable_url]
15
-
16
- ################################################################################
17
- # ReactOnRails will convert rails locales to javascript files for react-intl.
18
19
- config.after_initialize do
20
- ReactOnRails::LocalesToJs.new
21
- end
22
end
23
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
0 commit comments