react_on_rails 6.0.5 → 6.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (41) hide show
  1. checksums.yaml +4 -4
  2. data/.eslintrc +2 -3
  3. data/.gitignore +1 -1
  4. data/.travis.yml +15 -13
  5. data/CHANGELOG.md +27 -15
  6. data/{docs/contributor-info/contributing.md → CONTRIBUTING.md} +24 -1
  7. data/Gemfile +1 -1
  8. data/KUDOS.md +3 -0
  9. data/NEWS.md +3 -0
  10. data/PROJECTS.md +1 -1
  11. data/README.md +143 -202
  12. data/app/helpers/react_on_rails_helper.rb +29 -17
  13. data/docs/additional-reading/node-server-rendering.md +127 -7
  14. data/docs/additional-reading/rails-assets.md +74 -10
  15. data/docs/additional-reading/react-router.md +1 -1
  16. data/docs/additional-reading/server-rendering-tips.md +3 -0
  17. data/docs/api/javascript-api.md +23 -0
  18. data/docs/contributor-info/releasing.md +1 -1
  19. data/docs/misc/doctrine.md +6 -6
  20. data/docs/tutorial.md +74 -93
  21. data/lib/generators/USAGE +5 -1
  22. data/lib/generators/react_on_rails/base_generator.rb +2 -2
  23. data/lib/generators/react_on_rails/install_generator.rb +8 -0
  24. data/lib/generators/react_on_rails/node_generator.rb +22 -0
  25. data/lib/generators/react_on_rails/templates/base/base/client/REACT_ON_RAILS_CLIENT_README.md +1 -1
  26. data/lib/generators/react_on_rails/templates/base/base/client/webpack.config.js +3 -2
  27. data/lib/generators/react_on_rails/templates/base/base/config/initializers/react_on_rails.rb.tt +7 -3
  28. data/lib/generators/react_on_rails/templates/node/base/client/node/package.json +10 -0
  29. data/lib/generators/react_on_rails/templates/node/base/client/node/server.js +87 -0
  30. data/lib/react_on_rails/assets_precompile.rb +112 -0
  31. data/lib/react_on_rails/configuration.rb +1 -1
  32. data/lib/react_on_rails/server_rendering_pool.rb +1 -0
  33. data/lib/react_on_rails/test_helper/ensure_assets_compiled.rb +1 -1
  34. data/lib/react_on_rails/utils.rb +1 -0
  35. data/lib/react_on_rails/version.rb +1 -1
  36. data/lib/react_on_rails/version_checker.rb +3 -2
  37. data/lib/tasks/assets.rake +10 -73
  38. data/package.json +9 -7
  39. metadata +7 -5
  40. data/Dockerfile_tests +0 -12
  41. data/docker-compose.yml +0 -11
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-on-rails",
3
- "version": "6.0.5",
3
+ "version": "6.1.0",
4
4
  "description": "react-on-rails JavaScript for react_on_rails Ruby gem",
5
5
  "main": "node_package/lib/ReactOnRails.js",
6
6
  "directories": {
@@ -20,9 +20,11 @@
20
20
  "babel-types": "^6.7.2",
21
21
  "babelify": "^7.2.0",
22
22
  "blue-tape": "^0.2.0",
23
- "eslint": "^2.6.0",
24
- "eslint-config-shakacode": "4.0.0",
25
- "eslint-plugin-react": "^4.2.3",
23
+ "eslint": "^3.3.1",
24
+ "eslint-config-shakacode": "^6.0.0",
25
+ "eslint-plugin-import": "^1.13.0",
26
+ "eslint-plugin-jsx-a11y": "^2.1.0",
27
+ "eslint-plugin-react": "^6.1.2",
26
28
  "jscs": "^2.11.0",
27
29
  "jsdom": "^8.2.0",
28
30
  "react": "^15.0.0",
@@ -47,9 +49,9 @@
47
49
  "clean": "node_package/scripts/clean",
48
50
  "prepublish": "npm run build",
49
51
  "build": "node_package/scripts/build",
50
- "build-watch": "$(npm bin)/babel --watch --out-dir node_package/lib node_package/src",
51
- "eslint": "$(npm bin)/eslint . --ext .jsx and .js",
52
- "jscs": "$(npm bin)/jscs . -e -v",
52
+ "build-watch": "babel --watch --out-dir node_package/lib node_package/src",
53
+ "eslint": "eslint .",
54
+ "jscs": "jscs -e -v .",
53
55
  "lint": "npm run eslint && npm run jscs",
54
56
  "lint:fix": "node_package/scripts/lint-fix",
55
57
  "check": "npm run lint && npm run test",
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: react_on_rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 6.0.5
4
+ version: 6.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Justin Gordon
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-07-11 00:00:00.000000000 Z
11
+ date: 2016-08-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: connection_pool
@@ -323,7 +323,7 @@ files:
323
323
  - ".scss-lint.yml"
324
324
  - ".travis.yml"
325
325
  - CHANGELOG.md
326
- - Dockerfile_tests
326
+ - CONTRIBUTING.md
327
327
  - Gemfile
328
328
  - KUDOS.md
329
329
  - NEWS.md
@@ -331,7 +331,6 @@ files:
331
331
  - README.md
332
332
  - Rakefile
333
333
  - app/helpers/react_on_rails_helper.rb
334
- - docker-compose.yml
335
334
  - docs/LICENSE
336
335
  - docs/additional-reading/babel.md
337
336
  - docs/additional-reading/heroku-deployment.md
@@ -357,7 +356,6 @@ files:
357
356
  - docs/basics/installation-overview.md
358
357
  - docs/basics/migrating-from-react-rails.md
359
358
  - docs/coding-style/style.md
360
- - docs/contributor-info/contributing.md
361
359
  - docs/contributor-info/generator-testing.md
362
360
  - docs/contributor-info/linters.md
363
361
  - docs/contributor-info/releasing.md
@@ -371,6 +369,7 @@ files:
371
369
  - lib/generators/react_on_rails/generator_helper.rb
372
370
  - lib/generators/react_on_rails/generator_messages.rb
373
371
  - lib/generators/react_on_rails/install_generator.rb
372
+ - lib/generators/react_on_rails/node_generator.rb
374
373
  - lib/generators/react_on_rails/react_no_redux_generator.rb
375
374
  - lib/generators/react_on_rails/react_with_redux_generator.rb
376
375
  - lib/generators/react_on_rails/templates/base/base/Procfile.dev.tt
@@ -390,6 +389,8 @@ files:
390
389
  - lib/generators/react_on_rails/templates/dev_tests/spec/spec_helper.rb
391
390
  - lib/generators/react_on_rails/templates/no_redux/base/client/app/bundles/HelloWorld/containers/HelloWorld.jsx
392
391
  - lib/generators/react_on_rails/templates/no_redux/base/client/app/bundles/HelloWorld/startup/HelloWorldApp.jsx.tt
392
+ - lib/generators/react_on_rails/templates/node/base/client/node/package.json
393
+ - lib/generators/react_on_rails/templates/node/base/client/node/server.js
393
394
  - lib/generators/react_on_rails/templates/redux/base/client/app/bundles/HelloWorld/actions/helloWorldActionCreators.jsx
394
395
  - lib/generators/react_on_rails/templates/redux/base/client/app/bundles/HelloWorld/constants/helloWorldConstants.jsx
395
396
  - lib/generators/react_on_rails/templates/redux/base/client/app/bundles/HelloWorld/containers/HelloWorld.jsx
@@ -398,6 +399,7 @@ files:
398
399
  - lib/generators/react_on_rails/templates/redux/base/client/app/bundles/HelloWorld/startup/HelloWorldApp.jsx.tt
399
400
  - lib/generators/react_on_rails/templates/redux/base/client/app/bundles/HelloWorld/store/helloWorldStore.jsx
400
401
  - lib/react_on_rails.rb
402
+ - lib/react_on_rails/assets_precompile.rb
401
403
  - lib/react_on_rails/configuration.rb
402
404
  - lib/react_on_rails/controller.rb
403
405
  - lib/react_on_rails/engine.rb
@@ -1,12 +0,0 @@
1
- FROM dylangrafmyre/docker-ci
2
-
3
- WORKDIR /app/
4
-
5
- COPY ["/lib/react_on_rails/version.rb", "/app/lib/react_on_rails/"]
6
- COPY ["Gemfile", "Gemfile.lock", "react_on_rails.gemspec", "rakelib/", "/app/"]
7
- COPY ["/spec/dummy/Gemfile", "/spec/dummy/Gemfile.lock", "/app/spec/dummy/"]
8
- RUN bundle install --gemfile=spec/dummy/Gemfile
9
-
10
- ENV DISPLAY :99
11
- ENTRYPOINT service xvfd start \
12
- && rake
@@ -1,11 +0,0 @@
1
- lint:
2
- image: dylangrafmyre/docker-lint
3
- working_dir: /app/
4
- volumes:
5
- - '.:/app/'
6
- tests:
7
- build: .
8
- dockerfile: Dockerfile_tests
9
- working_dir: /app/
10
- volumes:
11
- - '.:/app/'