Skip to content

Commit f1decc6

Browse files
authored
(chore) Workspace: Pnpm as Dependency Manager
- Use Node 20.10 as Standard Workspace Version. - Use Pnpm as dependency manager from here on out. - Update GitHub CI workflows to accomodate the changes. - Update README accordingly. - Fix typings of `IMemoize` and it's implementation and invocations. - Upgrade Jest to allow new changes to be tested. - Disable Monaco Integration Suite on CI till Environment Setup is figured. - Upgrade Lerna, Babel, Webpack and their corresponding plugins. Fixes: #118 Signed-off-by: Progyan Bhattacharya <[email protected]>
1 parent 00b5f50 commit f1decc6

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+13712
-16269
lines changed

.github/workflows/build.yml

Lines changed: 21 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
12
---
23
name: Build
34
on:
@@ -7,6 +8,7 @@ on:
78
paths:
89
- "*.js"
910
- "*.json"
11+
- "*.yaml"
1012
- "packages/**"
1113
- "!**.md"
1214
- "!examples/**/*.js"
@@ -19,6 +21,7 @@ on:
1921
paths:
2022
- "*.js"
2123
- "*.json"
24+
- "*.yaml"
2225
- "packages/**"
2326
- "!**.md"
2427
- "!examples/**/*.js"
@@ -30,30 +33,30 @@ jobs:
3033
build:
3134
name: Build Artifacts
3235
runs-on: ubuntu-latest
36+
strategy:
37+
matrix:
38+
node-version: ["20.10"]
39+
pnpm-version: [8]
3340
steps:
34-
- uses: actions/checkout@v2
35-
36-
- uses: actions/setup-node@v2
41+
- uses: awalsh128/cache-apt-pkgs-action@latest
3742
with:
38-
node-version: "18.x"
39-
registry-url: "https://registry.npmjs.org"
43+
packages: build-essential libcairo2-dev libpango1.0-dev libjpeg-dev libgif-dev librsvg2-dev
44+
version: 1.0
45+
46+
- uses: actions/checkout@v3
4047

41-
- uses: actions/cache@v2
48+
- uses: pnpm/action-setup@v2
4249
with:
43-
path: |
44-
node_modules
45-
$HOME/.npm
46-
$HOME/.yarn-cache
47-
key: ${{ runner.OS }}-node-${{ hashFiles('**/yarn.lock') }}
48-
restore-keys: |
49-
${{ runner.OS }}-node-
50-
${{ runner.OS }}-
50+
version: ${{ matrix.pnpm-version }}
5151

52-
- name: Install Lerna
53-
run: yarn global add lerna@4
52+
- uses: actions/setup-node@v3
53+
with:
54+
cache: "pnpm"
55+
node-version: ${{ matrix.node-version }}
56+
registry-url: "https://registry.npmjs.org"
5457

5558
- name: Install Dependencies
56-
run: lerna bootstrap --ignore-scripts
59+
run: pnpm install
5760

5861
- name: Build Artifacts
59-
run: yarn build
62+
run: pnpm build

.github/workflows/deploy.yml

Lines changed: 19 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
12
---
23
name: Deployment
34
on:
@@ -9,35 +10,33 @@ jobs:
910
deploy:
1011
name: Deploy Package
1112
runs-on: ubuntu-latest
13+
strategy:
14+
matrix:
15+
node-version: ["20.10"]
16+
pnpm-version: [8]
1217
steps:
13-
- uses: actions/checkout@v2
14-
15-
- name: Setup Node for NPM
16-
uses: actions/setup-node@v2
18+
- uses: awalsh128/cache-apt-pkgs-action@latest
1719
with:
18-
node-version: "18.x"
19-
registry-url: "https://registry.npmjs.org"
20-
scope: "@otjs"
20+
packages: build-essential libcairo2-dev libpango1.0-dev libjpeg-dev libgif-dev librsvg2-dev
21+
version: 1.0
22+
23+
- uses: actions/checkout@v3
2124

22-
- uses: actions/cache@v2
25+
- uses: pnpm/action-setup@v2
2326
with:
24-
path: |
25-
node_modules
26-
$HOME/.npm
27-
$HOME/.yarn-cache
28-
key: ${{ runner.OS }}-node-${{ hashFiles('**/yarn.lock') }}
29-
restore-keys: |
30-
${{ runner.OS }}-node-
31-
${{ runner.OS }}-
27+
version: ${{ matrix.pnpm-version }}
3228

33-
- name: Install Lerna
34-
run: yarn global add lerna@4
29+
- uses: actions/setup-node@v3
30+
with:
31+
cache: "pnpm"
32+
node-version: ${{ matrix.node-version }}
33+
registry-url: "https://registry.npmjs.org"
3534

3635
- name: Install Dependencies
37-
run: lerna bootstrap --ignore-scripts
36+
run: pnpm install
3837

3938
- name: Build Artifacts
40-
run: yarn build
39+
run: pnpm build
4140

4241
- name: Publish to NPM
4342
run: lerna publish from-git --yes --no-verify-access

.github/workflows/quality.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1+
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
12
---
23
name: "Code Quality"
3-
44
on:
55
push:
66
branches:

0 commit comments

Comments
 (0)