Skip to content

Instantly share code, notes, and snippets.

@sumitngupta
Last active January 26, 2019 19:06
Show Gist options
  • Save sumitngupta/664d50a29d781eb6ccea47b58dd25eb9 to your computer and use it in GitHub Desktop.
Save sumitngupta/664d50a29d781eb6ccea47b58dd25eb9 to your computer and use it in GitHub Desktop.
Tracking all the changes we're making
  • Readme

  • Ruby Gems

  • Application.rb configs

  • GraphQL gem

NEED TO ADD

  • Git repo initialization

  • Heroku setup

  • Websockets

    • ActionCable preferred
  • JWT's

  • Ensure that Node version is installed

  • Specify node version - 11.8.0 -- Add to Package.json

  • Set "nvm use 11.8.0"

Yarn Packages

yarn add apollo-boost react-apollo graphql mineral-ui emotion@9.2.9 emotion-theming@9.2.9 react-emotion@9.2.9 yarn add eslint eslint-config-airbnb eslint-import-resolver-webpack eslint-plugin-import eslint-plugin-jsx-a11y eslint-plugin-react enzyme enzyme-adapter-react-16 jest jest-enzyme babel-jest @babel/preset-env @babel/core @babel/preset-react @babel/polyfill faker why-did-you-update --dev

in babelrc add:

"@babel/preset-env",
"@babel/preset-react"

and remove "react"

Copy package.json updates / Do a diff on them, it'll be easiest

Setup Enzyme

  • create a spec/javascript/testHelpers.js
@mikecx
Copy link

mikecx commented Jan 26, 2019

Create Procfile and Procfile.dev

@mikecx
Copy link

mikecx commented Jan 26, 2019

Remove the default rails page.

@sumitngupta
Copy link
Author

sumitngupta commented Jan 26, 2019

Add StaticController#index + routing as root path

@sumitngupta
Copy link
Author

Install React App loading into layout file

@sumitngupta
Copy link
Author

Convert erb layout into haml

@sumitngupta
Copy link
Author

remove old application erb layout

@sumitngupta
Copy link
Author

add generic app.jsx to attach to layout
include " = javascript_pack_tag 'app'" into layout
add app.jsx to manifest.js

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment