• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

shakacode / react_on_rails
86%
master: 0%

Build:
Build:
LAST BUILD BRANCH: andrey/add-option-method
DEFAULT BRANCH: master
Repo Added 15 Sep 2015 06:23AM UTC
Files 0
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

LAST BUILD ON BRANCH add-generators
branch: add-generators
CHANGE BRANCH
x
Reset
  • add-generators
  • 2.0.0-rc.1
  • 2.0.0-rc.3
  • 2.0.0-rc.4
  • 2.0.2
  • 2.1.0
  • 2.1.1
  • 2.3.0
  • 3.0.0-beta.1
  • 3.0.0-rc.1
  • 3.0.0-rc.2
  • 3.0.1
  • 3.0.2
  • 3.0.3
  • 3.0.4
  • 3.0.5
  • 3.0.6
  • 4.0.0
  • 4.0.0-beta.2
  • 4.0.0-beta.3
  • 4.0.1
  • 4.0.2
  • 5.1.0
  • 5.2.0
  • 6-1-release-notes
  • 6.0.0
  • 6.0.0-beta.4
  • 6.0.0-beta.5
  • 6.0.0-rc.1
  • 6.0.0-rc.5
  • 6.0.0-rc.6
  • 6.0.1
  • 6.0.3
  • 6.0.4
  • 6.0.5
  • 6.1.0
  • 6.1.1
  • 6.1.1-rc.1
  • 6.1.2
  • 6.10.0
  • 6.10.1
  • 6.2.0
  • 6.2.1
  • 6.2.1-rc.1
  • 6.2.1-rc.2
  • 6.2.1-rc.3
  • 6.3.2
  • 6.3.3
  • 6.3.4
  • 6.3.5
  • 6.4.0
  • 6.4.1
  • 6.4.2
  • 6.5.0
  • 6.5.0-beta.1
  • 6.5.1
  • 6.6.0
  • 6.7.1
  • 6.7.2
  • 6.8.0
  • 6.8.1
  • 6.8.2
  • 6.9.0
  • 6.9.1
  • 6.9.2
  • 6.9.3
  • 7.0.0
  • 7.0.1
  • 7.0.3
  • 7.0.4
  • 7.1.0-beta.3
  • 8.0.0
  • 8.0.0-beta.1
  • 8.0.0-beta.2
  • 8.0.0-beta.3
  • 8.0.0-updates
  • 8.0.1
  • Add-CHANGELOG
  • DimaZab-return-react-element
  • SqueezedLight-master
  • TangRufus-add-skip-display-none
  • add-babel-runtime-to-root-package-json
  • add-development-server-message
  • add-image-handling-example
  • add-location-to-redux-store-generator
  • add-projects-pivotal-tracker
  • add-projects-using
  • add-puma
  • add-rails-helper-to-generator
  • add-react-rails-note-to-readme
  • add-unicorn
  • alex/react-router
  • alleycat-at-git-alexey/replace_symlinks_copy
  • andy/169-fix-generator-jquery-config
  • andy/add-help-option-for-generator
  • application-js-fix
  • better-errors
  • bootstrap-as-an-option
  • bug-fix-on-props-serialization-for-string-in-development
  • change-linters-default
  • change-therubyracer-to-mini_racer
  • coveralls-merge
  • default-rake-task-lints
  • doc-updates
  • docker_ci-coveralls-reporting
  • docs
  • docs-overhaul
  • dont-call-to-json-on-props-converted-to-string-already
  • ensure-assets-compiled
  • examples-folder
  • feature/add-node-option-to-generator
  • feature/change-foreman-port-to-3000
  • feature/generator-rewrite
  • feature/merge-server-client-webpack
  • feature/option-removal
  • feature/remove-node-from-generator
  • final-doc-updates
  • fix-broken-gitbook-links
  • fix-ci
  • fix-ci-no-turbolinks
  • fix-controller-redux-store-api
  • fix-coverage
  • fix-coverage-of-generated-apps
  • fix-doc-on-shared-store
  • fix-gem-dependencies
  • fix-gemfile
  • fix-invalid-deprecation-message
  • fix-lint-issue
  • fix-linting-issues
  • fix-missing-new-line
  • fix-performance-regression-parsing-string-props
  • fix-rake-task-names
  • fix-rendering-for-no-turbolinks
  • fix-requires
  • fix-sanitization-server-console-messages
  • fix-sanitization-server-console-messages-2
  • fix-test-failure
  • fix-turbolinks-issue
  • fix-typo-contributing-doc
  • gem-issues
  • hello-world-redux
  • improve-linter-generators
  • improve-package-json-template
  • improve-release-script
  • initialize-redux-store-view-helper
  • jmeek/fix-hmr
  • json-encoding
  • justin/improve-ensure-assets-compiled
  • justin800/allow-router-result-to-return-html-string
  • justin808-6-8-release
  • justin808-6.4-changes-to-docs
  • justin808-6.4-changes-to-docs-1
  • justin808-angular-plus-react
  • justin808-change-logger-error-incorrect-npm-rubygems-combo
  • justin808-ci-failures
  • justin808-doc-fixes
  • justin808-doc-updates
  • justin808-gitbook
  • justin808-inaccurate-build-test-message
  • justin808-patch-1
  • justin808-patch-2
  • justin808-readme-updates
  • justin808-remove-npm-link-spec-dummy
  • justin808-skip-docker
  • justin808-turbo-details
  • justin808-tutorial-updates
  • justin808-tweak-missing-store-message
  • justin808-update-dependencies
  • justin808-update-for-webpack-v2
  • justin808-webpack-docs
  • justin808-yarn-updates
  • justin808/webpacker_integration
  • log-detailed-message-to-console-if-server-js-file-missing
  • mapreal19-fix-generated-linters-task
  • mapreal19-patch-1
  • mario/extract-react-component-options
  • master
  • more-ci-fixes
  • more-turbolinks-items
  • move-contributing-to-top-level
  • new-api-shared-redux-stores
  • npm-react-on-rails-js
  • optimize-ensure-assets-compiled
  • rails-4.2.5
  • recognize-application-scss
  • refactor-logger-middleware-generation
  • remove-dummy-app-bundles-from-sc
  • remove-extra-values-webpacker-config
  • remove-global-variable-for-props
  • remove-templates-client-folder
  • remove-unnecessary-param-basic-install
  • return-react-element
  • rob/fix-symlink-regression
  • rob/improve-ensure-assets-compiled
  • rob/update-docs
  • robwise-patch-1
  • rstudner-patch-1
  • ryanaip-data-tags
  • sergey/fix-nil-json
  • sergey/fix-nil-values-in-pretty-json
  • server-bundle-caching
  • small-error-formatting-fix
  • small-package-change
  • temp-fix-serialization-development
  • the-react-on-rails-doctrine
  • tweaks-for-i18n
  • tweaks-for-webpacker-1.1
  • udpate-readme
  • update-chrome-version-ci
  • update-dependencies
  • update-dependencies-tests-react013
  • update-gems
  • update-linters
  • update-nokogiri
  • update-readme
  • update-readme-changelog
  • update-to-webpack-v2
  • update-webpacker-lite-2.0.3
  • update-yarn-lock
  • use-named-parameters-for-options
  • v1.0.0
  • v1.0.0.pre
  • v1.0.1
  • v1.0.2
  • v1.0.3
  • v1.1.0
  • v1.1.1
  • v1.2.0
  • v1.2.0.rc1
  • v1.2.1
  • v1.2.2
  • v2.0.0.beta.4
  • v2.0.0.rc.1
  • v2.0.0.rc.3
  • v2.0.0.rc.4
  • v2.0.1
  • v2.0.2
  • v2.1.0

pending completion
360

push

travis-ci

robwise
Add Generators

Adds a Rails generator for installing everything needed to get up and running.
The generator includes a "Hello World" example that allows the user to see an
example of working code. All examples represent our current best practices
at Shaka Code.

The generator is invoked as follows:

`rails generate react_on_rails:install`

The generator can also be passed several options:

- `--redux` (alias: `-R`): uses Redux in the Hello World example client code
- `--server-rendering` (alias: `S`): include files needed for server rendering

These options can be combined:

`rails generate react_on_rails:install --redux --server-rendering`

All generator code is inside of lib/generators/react_on_rails

All generator specs are included inside of the spec/react_on_rails/generators
folder. These tests will create a dummy folder specifically for testing the generators.
Any files that the generator expects to already be existing when run will need to be
manually created as part of the setup phase for each test.

The install generator relies on several other react_on_rails generators that are
hidden from the user via the special `!hide` command at the beginning of the
generator's definition. These generators are invoked from the install generator
according to the options passed from the user.

Because of the multiple unique combinations of options that can be passed from
the user, it was necessary to split template files into several sub-folders based
on those options. Files common to all builds are inside of the templates/base
folder and files specific to non-redux or redux buildes are in similarly-named
folders. Within each, there may or not be further folders depending
on whether or not the user has chosen to also pass server-rendering as an option.

This commit was the work of several developers:

- Aaron Van Bokhoven (original committer)
- Rob Wise (generator code, enhancments, tests, revisions, documentation)
- Blaine Hatab (bug fixes and revisions)... (continued)

215 of 215 new or added lines in 10 files covered. (100.0%)

293 of 339 relevant lines covered (86.43%)

19.68 hits per line

Relevant lines Covered
Build:
Build:
339 RELEVANT LINES 293 COVERED LINES
19.68 HITS PER LINE
Source Files on add-generators
  • List 0
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
360 add-generators Add Generators Adds a Rails generator for installing everything needed to get up and running. The generator includes a "Hello World" example that allows the user to see an example of working code. All examples represent our current best practices... push 05 Nov 2015 02:24AM UTC robwise travis-ci pending completion  
358 add-generators Add Generators Adds a Rails generator for installing everything needed to get up and running. The generator includes a "Hello World" example that allows the user to see an example of working code. All examples represent our current best practices... push 05 Nov 2015 01:56AM UTC robwise travis-ci pending completion  
355 add-generators Add Generators Adds a Rails generator for installing everything needed to get up and running. The generator includes a "Hello World" example that allows the user to see an example of working code. All examples represent our current best practices... push 05 Nov 2015 01:43AM UTC robwise travis-ci pending completion  
354 add-generators Fix additional issues in README push 05 Nov 2015 01:11AM UTC robwise travis-ci pending completion  
351 add-generators Fix bug occurring from change to inline variables in component rendering push 04 Nov 2015 07:20PM UTC robwise travis-ci pending completion  
346 add-generators Make exception for eslinter for e and _ variables push 04 Nov 2015 05:40AM UTC robwise travis-ci pending completion  
344 add-generators Force git to use capital filenames where appropriate push 04 Nov 2015 03:59AM UTC robwise travis-ci pending completion  
335 add-generators Pass linters push 03 Nov 2015 03:47AM UTC robwise travis-ci pending completion  
333 add-generators move server bundle modification check code to ServerRenderingPool push 03 Nov 2015 03:32AM UTC robwise travis-ci pending completion  
331 add-generators Pass failing linter tests push 02 Nov 2015 08:10AM UTC robwise travis-ci pending completion  
See All Builds (3347)
  • Repo on GitHub
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc