Skip to content

mkomaiha/NHSWebsite

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NHSWebsite

How to project setup

https://dev.to/brunolemos/tutorial-100-code-sharing-between-ios-android--web-using-react-native-web-andmonorepo-4pej

Starting a new React Native project

react-native init nhs cd nhs git init && git add . -A && git commit -m "Initial commit"

Turning our folder structure into a monorepo

  • cd {project_root}
  • rm yarn.lock && rm -rf node_modules
  • mkdir -p packages/components/src packages/mobile packages/web
  • Move all the files (except .git) to the packages/mobile folder
  • Edit the name field on packages/mobile/package.json from nhs to mobile
  • Create this package.json at the root directory to enable Yarn Workspaces:
  • Create a .gitignore at the root directory
  • yarn

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages