Skip to content

Commit

Permalink
build: upgrade yarn and node engines (#3)
Browse files Browse the repository at this point in the history
* build: upgrade yarn and node engines

* build: fix formatting
  • Loading branch information
sbolel authored Jan 29, 2024
1 parent 9c65674 commit 57b064e
Show file tree
Hide file tree
Showing 10 changed files with 7,301 additions and 7,847 deletions.
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
19
20.11.0
541 changes: 0 additions & 541 deletions .yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs

This file was deleted.

9 changes: 0 additions & 9 deletions .yarn/plugins/@yarnpkg/plugin-typescript.cjs

This file was deleted.

28 changes: 0 additions & 28 deletions .yarn/plugins/@yarnpkg/plugin-workspace-tools.cjs

This file was deleted.

874 changes: 0 additions & 874 deletions .yarn/releases/yarn-3.6.1.cjs

This file was deleted.

893 changes: 893 additions & 0 deletions .yarn/releases/yarn-4.0.2.cjs

Large diffs are not rendered by default.

12 changes: 5 additions & 7 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
compressionLevel: mixed

enableGlobalCache: false

nodeLinker: node-modules

packageExtensions:
Expand All @@ -12,15 +16,9 @@ packageExtensions:
react-dom: '*'

plugins:
- path: .yarn/plugins/@yarnpkg/plugin-workspace-tools.cjs
spec: '@yarnpkg/plugin-workspace-tools'
- path: .yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs
spec: '@yarnpkg/plugin-interactive-tools'
- path: .yarn/plugins/@yarnpkg/plugin-outdated.cjs
spec: 'https://mskelton.dev/yarn-outdated/v3'
- path: .yarn/plugins/@yarnpkg/plugin-engines.cjs
spec: 'https://raw.githubusercontent.com/devoto13/yarn-plugin-engines/main/bundles/%40yarnpkg/plugin-engines.js'
- path: .yarn/plugins/@yarnpkg/plugin-typescript.cjs
spec: '@yarnpkg/plugin-typescript'

yarnPath: .yarn/releases/yarn-3.6.1.cjs
yarnPath: .yarn/releases/yarn-4.0.2.cjs
21 changes: 18 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@

## Overview

This project contains the application's UI built with React, Vite, TypeScript, and SWC.
This project contains the application's UI built with React, Vite, TypeScript, and SWC. It requires Node.js v20, [nvm](https://github.com/nvm-sh/nvm) (or [n](https://github.com/tj/n)), and Yarn v4.

## System Requirements

- [Node 19](https://nodejs.org/en/download)
- [Node 20](https://nodejs.org/en/download)
- [Yarn](https://yarnpkg.com/getting-started/install)
- [GitLeaks](https://github.com/gitleaks/gitleaks/tree/master#installing)

Expand All @@ -20,7 +20,22 @@ git clone [email protected]:aquia/template-vite-react`
cd template-vite-react
```

2. Install dependencies:
2. Setup Node.js and Yarn

```shell
# using nvm
nvm install --latest-npm
nvm use
# using n
n install auto
n use auto
# enable corepack
corepack enable yarn
```

3. Install dependencies:

```shell
yarn
Expand Down
12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,12 @@
"Sinan Bolel"
],
"type": "module",
"packageManager": "[email protected]",
"engines": {
"node": "20.11.0",
"npm": "please-use-yarn",
"yarn": "4.0.2"
},
"scripts": {
"start": "yarn run dev",
"dev": "vite",
Expand All @@ -37,12 +43,6 @@
"storybook": "storybook dev -p 6006",
"build-storybook": "storybook build"
},
"packageManager": "[email protected]",
"engines": {
"node": "19",
"npm": "please-use-yarn",
"yarn": "3.6.1"
},
"dependencies": {
"@emotion/react": "^11.11.1",
"@emotion/styled": "^11.11.0",
Expand Down
Loading

0 comments on commit 57b064e

Please sign in to comment.