{"push_id":853469271,"size":1,"distinct_size":1,"ref":"refs/heads/add-generators","head":"fc94c85bb328b616cf4ca60419b35e922b7c265b","before":"ff23a49782fdea2b561c6cd9eed504e3a226b8b0","commits":[{"sha":"fc94c85bb328b616cf4ca60419b35e922b7c265b","author":{"email":"1960dffb98c250f85d796b15018b9f5ca3778940@outlook.com","name":"Rob Wise"},"message":"Add Generators\n\nAdds a Rails generator for installing everything needed to get up and running.\nThe generator includes a \"Hello World\" example that allows the user to see an\nexample of working code. All examples represent our current best practices\nat Shaka Code.\n\nThe generator is invoked as follows:\n\n`rails generate react_on_rails:install`\n\nThe generator can also be passed several options:\n\n- `--redux` (alias: `-R`): uses Redux in the Hello World example client code\n- `--server-rendering` (alias: `S`): include files needed for server rendering\n\nThese options can be combined:\n\n`rails generate react_on_rails:install --redux --server-rendering`\n\nAll generator code is inside of lib/generators/react_on_rails\n\nAll generator specs are included inside of the spec/react_on_rails/generators\nfolder. These tests will create a dummy folder specifically for testing the generators.\nAny files that the generator expects to already be existing when run will need to be\nmanually created as part of the setup phase for each test.\n\nThe install generator relies on several other react_on_rails generators that are\nhidden from the user via the special `!hide` command at the beginning of the\ngenerator's definition. These generators are invoked from the install generator\naccording to the options passed from the user.\n\nBecause of the multiple unique combinations of options that can be passed from\nthe user, it was necessary to split template files into several sub-folders based\non those options. Files common to all builds are inside of the templates/base\nfolder and files specific to non-redux or redux buildes are in similarly-named\nfolders. Within each, there may or not be further folders depending\non whether or not the user has chosen to also pass server-rendering as an option.\n\nThis commit was the work of several developers:\n\n- Aaron Van Bokhoven (original committer)\n- Rob Wise (generator code, enhancments, tests, revisions, documentation)\n- Blaine Hatab (bug fixes and revisions)\n- Justin Gordon (extensive code reviews, revisions, documentation)\n\nAdd link to blog post in README\n\nImplement Redux generation\n\nPut screenshot of client-side versus server-side react component in README\n\nChange name of Generator Testing Script to generator_testing_script.md\n\ndo not include other hello world example along with Redux hello world example\n\nMake 'basic' example demonstrate state'\n\nMake naming more consistent across different versions of generation\n\nadded prerender false if it isnt built with server rendering\n\nprevent user from running genertor with uncommitted changes\n\nConvert no-redux components to es2015 class syntax\n\nUse 'static' keyword for displayName in redux components\n\nAvoid using constructor to set initial state in non-redux generator\n\nAdd trailing comma to base webpack config\n\nadded check for development to reload server bundle ever time it changes. changed links in readme from shell to markdown links. moved linters order\n\nAdd heroku_development_generator\n\nCreate a Rails Sass helper file\n\nRename pre and post bootstrap partials and improve comments\n\nSwitch to Alex's suggested React syntax and add client readme\n\nForce git to use capital filenames where appropriate\n\nMake exception for eslinter for e and _ variables\n\nAdd comment about differing production and dev builds to middleware\n\nChange Redux alias to -R from -d\n\nRearrange README section ordering as directed by JG\n\nAdd styling to post-bootstrap to prove it's working","distinct":true,"url":"https://api.github.com/repos/shakacode/react_on_rails/commits/fc94c85bb328b616cf4ca60419b35e922b7c265b"}]}