Skip to content

Commit

Permalink
chore: update yarn to v4
Browse files Browse the repository at this point in the history
  • Loading branch information
JeremyDolle committed Oct 8, 2024
1 parent bf1c482 commit 14c9153
Show file tree
Hide file tree
Showing 12 changed files with 16,132 additions and 12,688 deletions.
Binary file added .yarn/install-state.gz
Binary file not shown.
1 change: 1 addition & 0 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
nodeLinker: node-modules
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,16 @@ If you love this boilerplate, give us a star, you will be a ray of sunshine in o

Node 18 or greater is required. Development for iOS requires a Mac and Xcode 10 or up, and will target iOS 11 and up.

You also need to install the dependencies required by React Native.
Go to the [React Native environment setup](https://reactnative.dev/docs/environment-setup), then select `React Native CLI Quickstart` tab.
You also need to install the dependencies required by React Native.
Go to the [React Native environment setup](https://reactnative.dev/docs/environment-setup), then select `React Native CLI Quickstart` tab.
Follow instructions for your given `development OS` and `target OS`.

## Quick start

To create a new project using the boilerplate simply run :

```
npx react-native@latest init MyApp --template @thecodingmachine/react-native-boilerplate
npx @react-native-community/cli@latest init MyApp --template @thecodingmachine/react-native-boilerplate
```

Assuming you have all the requirements installed, you can run the project by running:
Expand Down
Binary file added documentation/.yarn/install-state.gz
Binary file not shown.
5 changes: 3 additions & 2 deletions documentation/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@
},
"devDependencies": {
"@docusaurus/eslint-plugin": "3.1.1",
"@docusaurus/types": "3.0.0",
"@docusaurus/module-type-aliases": "3.1.1",
"@docusaurus/tsconfig": "3.0.0",
"@docusaurus/types": "3.0.0",
"@types/react": "^18.2.29",
"@typescript-eslint/eslint-plugin": "^6.21.0",
"@typescript-eslint/parser": "^6.21.0",
Expand All @@ -46,5 +46,6 @@
},
"engines": {
"node": ">=18.0"
}
},
"packageManager": "[email protected]"
}
6 changes: 3 additions & 3 deletions documentation/src/components/Quickstart.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,16 @@ export default function Quickstart() {
title=">_ terminal"
metastring="bash"
>
npx react-native@latest init MyApp --template
@thecodingmachine/react-native-boilerplate
npx @react-native-community/cli@latest init MyApp
--template @thecodingmachine/react-native-boilerplate
</CodeBlock>

<div>
<button
type="button"
className="transition-all ease-in mt-5 hover:bg-green-700 hover:text-white hover:text text-md text-white
font-bold py-3 px-4 rounded bg-green-500 shadow-lg shadow-green-500/50"
onClick={() => { navigator.clipboard.writeText('npx react-native@latest init MyApp --template @thecodingmachine/react-native-boilerplate'); }}
onClick={() => { navigator.clipboard.writeText('npx @react-native-community/cli@latest init MyApp --template @thecodingmachine/react-native-boilerplate'); }}
>
Copy and test it
<span className="ml-3">🧪</span>
Expand Down
26,068 changes: 15,183 additions & 10,885 deletions documentation/yarn.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,5 @@
"kleur": "^4.1.4",
"prompts": "^2.4.1"
},
"devDependencies": {}
"packageManager": "[email protected]"
}
925 changes: 0 additions & 925 deletions template/.yarn/releases/yarn-4.5.0.cjs

This file was deleted.

2 changes: 0 additions & 2 deletions template/.yarnrc.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
nodeLinker: node-modules

yarnPath: .yarn/releases/yarn-4.5.0.cjs
1,745 changes: 898 additions & 847 deletions template/yarn.lock

Large diffs are not rendered by default.

60 changes: 40 additions & 20 deletions yarn.lock
Original file line number Diff line number Diff line change
@@ -1,26 +1,46 @@
# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
# yarn lockfile v1
# This file is generated by running "yarn install" inside your project.
# Manual changes might be lost - proceed with caution!

__metadata:
version: 8
cacheKey: 10c0

kleur@^3.0.3:
version "3.0.3"
resolved "https://registry.yarnpkg.com/kleur/-/kleur-3.0.3.tgz#a79c9ecc86ee1ce3fa6206d1216c501f147fc07e"
integrity sha512-eTIzlVOSUR+JxdDFepEYcBMtZ9Qqdef+rnzWdRZuMbOywu5tO2w2N7rqjoANZ5k9vywhL6Br1VRjUIgTQx4E8w==
"@thecodingmachine/react-native-boilerplate@workspace:.":
version: 0.0.0-use.local
resolution: "@thecodingmachine/react-native-boilerplate@workspace:."
dependencies:
kleur: "npm:^4.1.4"
prompts: "npm:^2.4.1"
languageName: unknown
linkType: soft

"kleur@npm:^3.0.3":
version: 3.0.3
resolution: "kleur@npm:3.0.3"
checksum: 10c0/cd3a0b8878e7d6d3799e54340efe3591ca787d9f95f109f28129bdd2915e37807bf8918bb295ab86afb8c82196beec5a1adcaf29042ce3f2bd932b038fe3aa4b
languageName: node
linkType: hard

kleur@^4.1.4:
version "4.1.5"
resolved "https://registry.yarnpkg.com/kleur/-/kleur-4.1.5.tgz#95106101795f7050c6c650f350c683febddb1780"
integrity sha512-o+NO+8WrRiQEE4/7nwRJhN1HWpVmJm511pBHUxPLtp0BUISzlBplORYSmTclCnJvQq2tKu/sgl3xVpkc7ZWuQQ==
"kleur@npm:^4.1.4":
version: 4.1.5
resolution: "kleur@npm:4.1.5"
checksum: 10c0/e9de6cb49657b6fa70ba2d1448fd3d691a5c4370d8f7bbf1c2f64c24d461270f2117e1b0afe8cb3114f13bbd8e51de158c2a224953960331904e636a5e4c0f2a
languageName: node
linkType: hard

prompts@^2.4.1:
version "2.4.2"
resolved "https://registry.yarnpkg.com/prompts/-/prompts-2.4.2.tgz#7b57e73b3a48029ad10ebd44f74b01722a4cb069"
integrity sha512-NxNv/kLguCA7p3jE8oL2aEBsrJWgAakBpgmgK6lpPWV+WuOmY6r2/zbAVnP+T8bQlA0nzHXSJSJW0Hq7ylaD2Q==
"prompts@npm:^2.4.1":
version: 2.4.2
resolution: "prompts@npm:2.4.2"
dependencies:
kleur "^3.0.3"
sisteransi "^1.0.5"
kleur: "npm:^3.0.3"
sisteransi: "npm:^1.0.5"
checksum: 10c0/16f1ac2977b19fe2cf53f8411cc98db7a3c8b115c479b2ca5c82b5527cd937aa405fa04f9a5960abeb9daef53191b53b4d13e35c1f5d50e8718c76917c5f1ea4
languageName: node
linkType: hard

sisteransi@^1.0.5:
version "1.0.5"
resolved "https://registry.yarnpkg.com/sisteransi/-/sisteransi-1.0.5.tgz#134d681297756437cc05ca01370d3a7a571075ed"
integrity sha512-bLGGlR1QxBcynn2d5YmDX4MGjlZvy2MRBDRNHLJ8VI6l6+9FUiyTFNJ0IveOSP0bcXgVDPRcfGqA0pjaqUpfVg==
"sisteransi@npm:^1.0.5":
version: 1.0.5
resolution: "sisteransi@npm:1.0.5"
checksum: 10c0/230ac975cca485b7f6fe2b96a711aa62a6a26ead3e6fb8ba17c5a00d61b8bed0d7adc21f5626b70d7c33c62ff4e63933017a6462942c719d1980bb0b1207ad46
languageName: node
linkType: hard

0 comments on commit 14c9153

Please sign in to comment.