Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CRA template tweaks and tidy up for full production #2023

Closed
willmcvay opened this issue Jul 9, 2020 · 3 comments · Fixed by #2234 or #2244
Closed

CRA template tweaks and tidy up for full production #2023

willmcvay opened this issue Jul 9, 2020 · 3 comments · Fixed by #2234 or #2244
Assignees
Labels
create-react-app-template feature New feature or request front-end Relates to front end issues react-app-scaffolder Relates to React App Scaffolder package

Comments

@willmcvay
Copy link
Contributor

willmcvay commented Jul 9, 2020

Background context or User story:

For the app scaffolder, we are migrating to CRA for external users. As such, we will need to tidy up the code and deprecate the old scaffolder.

Specification or Acceptance Criteria:

  • CRA template should have minimum number of NPM dependencies as possible
  • Should be tested in all browsers to IE11
  • Should have simple, slimmed down configs with minimal opinionated additions eg Jest, ESLint, TSConfig
  • Scaffolder should have a final stable version of current build deployed to NPM, v1.0.0.
  • When we are ready to switch off the old scaffolder, add a deprecation notice to README.md before deploying another minor release - should redirect users to the CRA template.
  • Scaffolder should be simplified when deprecation notice is live to only output internal scaffolds, external code to be deprecated and removed
  • Internal scaffold to use new Auth Module
@willmcvay willmcvay added feature New feature or request react-app-scaffolder Relates to React App Scaffolder package front-end Relates to front end issues labels Jul 9, 2020
@willmcvay willmcvay added this to the NPM Packages Stable Release milestone Jul 9, 2020
@willmcvay willmcvay changed the title The react app scaffolder should have an internal redux option CRA template tweaks and tidy up for full production Jul 21, 2020
@phmngocnghia
Copy link
Contributor

phmngocnghia commented Jul 22, 2020

@willmcvay Could you help me to clarify this part of requirement:

Scaffolder should be simplified when deprecation notice is live to only output internal scaffolds, external code to be deprecated and removed

Internal scaffolder: I will create a difference folder, start integrating another CRA-template as internal scaffolder?

@willmcvay
Copy link
Contributor Author

No, for internals we can use what we have - it's all set up to use our scripts. It just won't be an external NPM package

phmngocnghia pushed a commit that referenced this issue Jul 22, 2020
@phmngocnghia phmngocnghia removed their assignment Jul 22, 2020
@willmcvay willmcvay self-assigned this Jul 30, 2020
@willmcvay
Copy link
Contributor Author

Issues that came out of testing;

  • Add connect session to package.json
  • Remove context for connect session as no longer exported
  • Add react router to package.json
  • Rename client id and oauth url in window.config - should match the connect session conventions to be clearer
  • Should have an example service that shows the fetching from the api via a hook and the platform API - am thinking just to hit the swagger endpoint as an example
  • Do the error messages do anything? I think this constants don't pass
  • Tests don’t pass - window config error - we should include a config.json in the scaffold - people can manually add their client id but we should provide this. For this package only will rename it reapit.config.json so it is not gitignored

willmcvay added a commit that referenced this issue Jul 31, 2020
* fix: tweaks to go live with NPM

* fix: fixed defintions
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
create-react-app-template feature New feature or request front-end Relates to front end issues react-app-scaffolder Relates to React App Scaffolder package
Projects
None yet
3 participants