Skip to content

Commit

Permalink
Ported core packages and examples to Typecript
Browse files Browse the repository at this point in the history
  • Loading branch information
meta-paul committed Dec 7, 2024
1 parent caf8021 commit 0819a83
Show file tree
Hide file tree
Showing 175 changed files with 5,324 additions and 3,953 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/annotated-pkgs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,17 +24,22 @@ jobs:
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2

- uses: actions/setup-node@v4
env:
FORCE_COLOR: 0
with:
node-version: 16
node-version: 20.18.1

- name: Install yarn 3
run: npm i -g yarn

- name: Install package dependencies
run: yarn install
env:
YARN_ENABLE_IMMUTABLE_INSTALLS: false # prevents error YN0028 during build
run: |
yarn cache clean --all
yarn install
- name: Test that docusarus compiles
run: |
Expand Down
59 changes: 37 additions & 22 deletions .github/workflows/cypress-end-to-end-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ jobs:
continue-on-error: true
- uses: actions/setup-node@v4
with:
cache: "yarn"
node-version: 16
cache: yarn
node-version: 20.18.1
- uses: dorny/paths-filter@v3
id: filter
with:
Expand Down Expand Up @@ -91,7 +91,7 @@ jobs:
# - name: 🪨 Setup Node
# uses: actions/setup-node@v4
# with:
# node-version: 16.16.0
# node-version: 20.18.1
#
# - name: 🤖 Install Mephisto
# run: pip install -e .
Expand Down Expand Up @@ -144,7 +144,7 @@ jobs:
# - name: 🪨 Setup Node
# uses: actions/setup-node@v4
# with:
# node-version: 16.16.0
# node-version: 20.18.1
#
# - name: 🤖 Install Mephisto
# run: pip install -e .
Expand Down Expand Up @@ -198,7 +198,7 @@ jobs:
- name: 🪨 Setup Node
uses: actions/setup-node@v4
with:
node-version: 16.16.0
node-version: 20.18.1

- name: 🤖 Install Mephisto
run: pip install -e .
Expand All @@ -213,8 +213,11 @@ jobs:
run: mephisto register inhouse

- name: 📦 Setting up mephisto-core package
env:
YARN_ENABLE_IMMUTABLE_INSTALLS: false # prevents error YN0028 during build
run: |
cd packages/mephisto-core
yarn cache clean --all
yarn install
yarn build
npm link
Expand Down Expand Up @@ -248,7 +251,7 @@ jobs:
- name: 🪨 Setup Node
uses: actions/setup-node@v4
with:
node-version: 16.16.0
node-version: 20.18.1

- name: 🤖 Install Mephisto
run: pip install -e .
Expand All @@ -263,8 +266,11 @@ jobs:
run: mephisto register inhouse

- name: 📦 Setting up mephisto-core package
env:
YARN_ENABLE_IMMUTABLE_INSTALLS: false # prevents error YN0028 during build
run: |
cd packages/mephisto-core
yarn cache clean --all
yarn install
yarn build
npm link
Expand Down Expand Up @@ -298,7 +304,7 @@ jobs:
- name: 🪨 Setup Node
uses: actions/setup-node@v4
with:
node-version: 16.16.0
node-version: 20.18.1

- name: 🤖 Install Mephisto
run: pip install -e .
Expand All @@ -313,8 +319,11 @@ jobs:
run: mephisto register inhouse

- name: 📦 Setting up mephisto-core package
env:
YARN_ENABLE_IMMUTABLE_INSTALLS: false # prevents error YN0028 during build
run: |
cd packages/mephisto-core
yarn cache clean --all
yarn install
yarn build
npm link
Expand Down Expand Up @@ -348,7 +357,7 @@ jobs:
# - name: 🪨 Setup Node
# uses: actions/setup-node@v4
# with:
# node-version: 16.16.0
# node-version: 20.18.1
#
# - name: 🤖 Install Mephisto
# run: pip install -e .
Expand Down Expand Up @@ -401,7 +410,7 @@ jobs:
- name: 🪨 Setup Node
uses: actions/setup-node@v4
with:
node-version: 16.16.0
node-version: 20.18.1

- name: 🤖 Install Mephisto
run: |
Expand All @@ -418,8 +427,11 @@ jobs:
run: mephisto register inhouse

- name: 📦 Setting up mephisto-core package
env:
YARN_ENABLE_IMMUTABLE_INSTALLS: false # prevents error YN0028 during build
run: |
cd packages/mephisto-core
yarn cache clean --all
yarn install
yarn build
npm link
Expand Down Expand Up @@ -452,7 +464,7 @@ jobs:
- name: 🪨 Setup Node
uses: actions/setup-node@v4
with:
node-version: 16.16.0
node-version: 20.18.1

- name: 🤖 Install Mephisto
run: |
Expand All @@ -469,8 +481,11 @@ jobs:
run: mephisto register inhouse

- name: 📦 Setting up mephisto-core package
env:
YARN_ENABLE_IMMUTABLE_INSTALLS: false # prevents error YN0028 during build
run: |
cd packages/mephisto-core
yarn cache clean --all
yarn install
yarn build
npm link
Expand All @@ -495,6 +510,7 @@ jobs:
steps:
- name: 🔀 Checking out repo
uses: actions/checkout@v2

- name: 🐍 Installing python
uses: actions/setup-python@v5
with:
Expand All @@ -503,7 +519,7 @@ jobs:
- name: 🪨 Setup Node
uses: actions/setup-node@v4
with:
node-version: 16.16.0
node-version: 20.18.1

- name: 🤖 Install Mephisto
run: |
Expand All @@ -520,15 +536,21 @@ jobs:
run: mephisto register inhouse

- name: 📦 Setting up mephisto-core package
env:
YARN_ENABLE_IMMUTABLE_INSTALLS: false # prevents error YN0028 during build
run: |
cd packages/mephisto-core
yarn cache clean --all
yarn install
yarn build
npm link
- name: 📦 Setting up mephisto-addons package
env:
YARN_ENABLE_IMMUTABLE_INSTALLS: false # prevents error YN0028 during build
run: |
cd packages/mephisto-addons
yarn cache clean --all
yarn install
yarn build
npm link
Expand All @@ -548,17 +570,10 @@ jobs:

- name: 🔪 Killing the web server
run: |
lsof -nPi :3000
lsof -i -P -n | grep LISTEN | grep python | awk '{print $2}'
kill -INT $(lsof -i -P -n | grep LISTEN | grep python | awk '{print $2}')
echo "killed 1"
sleep 0.5
kill -INT $(lsof -i -P -n | grep LISTEN | grep python | awk '{print $2}')
echo "killed 2"
lsof -i -P -n | grep LISTEN | grep node | awk '{print $2}'
kill -INT $(lsof -i -P -n | grep LISTEN | grep node | awk '{print $2}')
sleep 30
echo "30 seconds passed"
sudo apt install procps -y # Installing `pkill`
pkill -9 python
pkill -9 node
echo "Web server killed"
- name: 🥛 Expiring units
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/deploy-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ jobs:
env:
FORCE_COLOR: 0
with:
node-version: 16.16.0
cache: yarn
node-version: 20.18.1
- uses: actions/setup-python@v5
with:
python-version: 3.8
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-deploy-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-node@v4
with:
node-version: 16.16.0
cache: yarn
node-version: 20.18.1
- uses: actions/setup-python@v5
with:
python-version: 3.8
Expand Down
17 changes: 9 additions & 8 deletions .yarn/releases/yarn-3.2.4.cjs

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ initFields:

initScope: annotated

nodeLinker: node-modules

packageExtensions:
"@docusaurus/core@*":
dependencies:
Expand Down
Loading

0 comments on commit 0819a83

Please sign in to comment.