Skip to content

Commit

Permalink
Migrate to yarn v3
Browse files Browse the repository at this point in the history
All web deps are now committed to the repository enabling zero-install
for the node-based packages
  • Loading branch information
sburba committed Aug 10, 2021
1 parent 2aa12fc commit 77dbaeb
Show file tree
Hide file tree
Showing 2,426 changed files with 79,164 additions and 18,267 deletions.
27 changes: 0 additions & 27 deletions .circleci/config.yml
Expand Up @@ -6,25 +6,6 @@ executors:
docker:
- image: mcr.microsoft.com/playwright:focal
commands:
install_yarn_deps:
description: "Install all yarn dependencies"
parameters:
cache_prefix:
type: string
steps:
- restore_cache:
keys:
# Restore the cache with the exact dependencies,
- << parameters.cache_prefix >>-deps-v3-{{ checksum "yarn.lock" }}
# or, failing that, just the most recent cache entry
- << parameters.cache_prefix >>-deps-v3
- run:
name: Install Deps
command: yarn install
- save_cache:
key: << parameters.cache_prefix >>-deps-v3-{{ checksum "yarn.lock" }}
paths:
- node_modules
release_web:
parameters:
target_name:
Expand All @@ -34,8 +15,6 @@ commands:
steps:
- checkout:
path: ~/repo
- install_yarn_deps:
cache_prefix: web
- run:
name: Build Bundle
command: yarn build
Expand Down Expand Up @@ -98,8 +77,6 @@ jobs:
steps:
- checkout:
path: ~/repo
- install_yarn_deps:
cache_prefix: web
- run:
name: Check Style
command: yarn run checkstyle
Expand Down Expand Up @@ -157,8 +134,6 @@ jobs:
steps:
- checkout:
path: ~/repo
- install_yarn_deps:
cache_prefix: e2e
- run:
name: Typecheck
command: yarn run typecheck
Expand All @@ -171,8 +146,6 @@ jobs:
steps:
- checkout:
path: ~/repo
- install_yarn_deps:
cache_prefix: e2e
- run:
name: Run Integration Tests
environment:
Expand Down
2 changes: 0 additions & 2 deletions README.md
Expand Up @@ -30,8 +30,6 @@ echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo s
cp .env.example .env
# Build all the images
docker-compose build
# Install web dependencies
docker-compose run --rm web yarn install
# Start the development server in the background
docker-compose up -d

Expand Down
2 changes: 2 additions & 0 deletions e2e/.gitattributes
@@ -0,0 +1,2 @@
/.yarn/releases/** binary
/.yarn/plugins/** binary
9 changes: 9 additions & 0 deletions e2e/.gitignore
@@ -1,3 +1,12 @@
test-results
node_modules
yarn-error.log

# https://yarnpkg.com/getting-started/qa#which-files-should-be-gitignored
.yarn/*
!.yarn/cache
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/sdks
!.yarn/versions

0 comments on commit 77dbaeb

Please sign in to comment.