Use yarn berry (#1726)

This commit is contained in:
Erik Michelson 2021-12-30 18:45:04 +01:00 committed by GitHub
parent 4089f0c6ed
commit 68a7546a5d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 14335 additions and 10330 deletions

3
.gitattributes vendored Normal file
View file

@ -0,0 +1,3 @@
/.yarn/releases/** binary
/.yarn/plugins/** binary

View file

@ -22,7 +22,7 @@ jobs:
uses: actions/checkout@v2 uses: actions/checkout@v2
- name: Get yarn cache directory path - name: Get yarn cache directory path
id: yarn-cache-dir-path id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)" run: echo "::set-output name=dir::$(yarn config get cacheFolder)"
- name: Cache yarn cache - name: Cache yarn cache
uses: actions/cache@v2 uses: actions/cache@v2
id: yarn-cache id: yarn-cache
@ -36,7 +36,7 @@ jobs:
with: with:
node-version: ${{ matrix.node }} node-version: ${{ matrix.node }}
- name: Install dependencies - name: Install dependencies
run: yarn install --frozen-lockfile --prefer-offline run: yarn install --immutable
- name: Test Project - name: Test Project
run: yarn test:ci run: yarn test:ci
- name: Build project - name: Build project

View file

@ -28,7 +28,7 @@ jobs:
- name: Get yarn cache directory path - name: Get yarn cache directory path
id: yarn-cache-dir-path id: yarn-cache-dir-path
if: steps.build-cache.outputs.cache-hit != 'true' if: steps.build-cache.outputs.cache-hit != 'true'
run: echo "::set-output name=dir::$(yarn cache dir)" run: echo "::set-output name=dir::$(yarn config get cacheFolder)"
- name: Cache yarn cache - name: Cache yarn cache
uses: actions/cache@v2 uses: actions/cache@v2
@ -48,7 +48,7 @@ jobs:
- name: Install dependencies - name: Install dependencies
if: steps.build-cache.outputs.cache-hit != 'true' if: steps.build-cache.outputs.cache-hit != 'true'
run: yarn install --frozen-lockfile --prefer-offline run: yarn install --immutable
- name: Build test production build - name: Build test production build
if: steps.build-cache.outputs.cache-hit != 'true' if: steps.build-cache.outputs.cache-hit != 'true'

View file

@ -20,7 +20,7 @@ jobs:
- name: Get yarn cache directory path - name: Get yarn cache directory path
id: yarn-cache-dir-path id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)" run: echo "::set-output name=dir::$(yarn config get cacheFolder)"
- name: Cache yarn cache - name: Cache yarn cache
uses: actions/cache@v2 uses: actions/cache@v2
@ -36,7 +36,7 @@ jobs:
with: with:
node-version: 16 node-version: 16
- name: Install dependencies - name: Install dependencies
run: yarn install --frozen-lockfile --prefer-offline run: yarn install --immutable
- name: Lint code - name: Lint code
run: yarn lint run: yarn lint
format: format:
@ -48,7 +48,7 @@ jobs:
- name: Get yarn cache directory path - name: Get yarn cache directory path
id: yarn-cache-dir-path id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)" run: echo "::set-output name=dir::$(yarn config get cacheFolder)"
- name: Cache yarn cache - name: Cache yarn cache
uses: actions/cache@v2 uses: actions/cache@v2
@ -64,6 +64,6 @@ jobs:
with: with:
node-version: 16 node-version: 16
- name: Install dependencies - name: Install dependencies
run: yarn install --frozen-lockfile --prefer-offline run: yarn install --immutable
- name: Lint code - name: Lint code
run: yarn format run: yarn format

10
.gitignore vendored
View file

@ -7,7 +7,15 @@
# dependencies # dependencies
/node_modules /node_modules
/.pnp /.pnp
.pnp.js .pnp.*
# package manager
.yarn/*
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/sdks
!.yarn/versions
# testing # testing
/coverage /coverage

View file

@ -31,6 +31,18 @@ Files: public/robots.txt
Copyright: 2021 The HedgeDoc developers (see AUTHORS file) Copyright: 2021 The HedgeDoc developers (see AUTHORS file)
License: CC0-1.0 License: CC0-1.0
Files: .yarnrc.yml
Copyright: 2021 The HedgeDoc developers (see AUTHORS file)
License: CC0-1.0
Files: .yarn/**
Copyright: Yarn contributors
License: BSD-2-Clause
Files: .gitattributes
Copyright: 2021 The HedgeDoc developers (see AUTHORS file)
License: CC0-1.0
Files: .idea/** Files: .idea/**
Copyright: 2021 The HedgeDoc developers (see AUTHORS file) Copyright: 2021 The HedgeDoc developers (see AUTHORS file)
License: CC0-1.0 License: CC0-1.0

BIN
.yarn/releases/yarn-3.1.1.cjs vendored Executable file

Binary file not shown.

3
.yarnrc.yml Normal file
View file

@ -0,0 +1,3 @@
yarnPath: .yarn/releases/yarn-3.1.1.cjs
nodeLinker: node-modules

25
LICENSES/BSD-2-Clause.txt Normal file
View file

@ -0,0 +1,25 @@
BSD 2-Clause License
Copyright (c) <year> <copyright holder>.
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

View file

@ -152,5 +152,6 @@
"ts-mockery": "1.2.0", "ts-mockery": "1.2.0",
"ts-node": "10.4.0", "ts-node": "10.4.0",
"typescript": "4.5.4" "typescript": "4.5.4"
} },
"packageManager": "yarn@3.1.1"
} }

24593
yarn.lock

File diff suppressed because it is too large Load diff