Skip to content

Commit a93263f

Browse files
authored
Merge pull request #212 from thedanchez/monorepo
feat: restructure project into proper monorepo
2 parents 58254b9 + 8825512 commit a93263f

File tree

224 files changed

+18436
-28097
lines changed

Some content is hidden

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

224 files changed

+18436
-28097
lines changed

.github/workflows/ci.yaml

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,26 @@ jobs:
1414
runs-on: ubuntu-latest
1515
steps:
1616
- name: Checkout
17-
uses: actions/checkout@v4
17+
uses: actions/checkout@v5
18+
- name: Install pnpm
19+
uses: pnpm/action-setup@v4
20+
with:
21+
version: 10.18.0
22+
run_install: false
1823
- name: Setup Node
19-
uses: actions/setup-node@v3
24+
uses: actions/setup-node@v6
2025
with:
2126
node-version: "22.20.0"
27+
cache: "pnpm"
2228
- name: Install Dependencies
23-
run: npm install
29+
run: pnpm install
30+
- name: Types Check
31+
run: pnpm run typecheck
2432
- name: Format Check
25-
run: npm run format
33+
run: pnpm run format
34+
- name: Lint Check (Packages)
35+
run: pnpm run lint:packages
36+
- name: Test (Packages)
37+
run: pnpm run test:packages
38+
- name: Build (Packages)
39+
run: pnpm run build:packages

.github/workflows/react-sdk-build.yml

Lines changed: 0 additions & 37 deletions
This file was deleted.

.github/workflows/react-sdk-publish-action.yml

Lines changed: 18 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,20 +6,27 @@ jobs:
66
publish:
77
runs-on: ubuntu-latest
88
steps:
9-
- uses: actions/checkout@v3
10-
# Setup .npmrc file to publish to npm
11-
- uses: actions/setup-node@v3
9+
- name: Checkout
10+
uses: actions/checkout@v5
11+
- name: Install pnpm
12+
uses: pnpm/action-setup@v4
13+
with:
14+
version: 10.18.0
15+
run_install: false
16+
- name: Setup Node
17+
uses: actions/setup-node@v6
1218
with:
1319
node-version: "22.20.0"
20+
cache: "pnpm"
1421
registry-url: "https://registry.npmjs.org"
15-
- name: Install dependencies
16-
run: npm install
17-
working-directory: featurehub-react-sdk
18-
- name: Install peer dependencies
19-
run: npm install featurehub-javascript-client-sdk react
20-
working-directory: featurehub-react-sdk
22+
- name: Install Dependencies
23+
run: pnpm install
24+
working-directory: packages/react
25+
- name: Install Peer Dependencies
26+
run: pnpm install featurehub-javascript-client-sdk react
27+
working-directory: packages/react
2128
- name: Compile sources and Publish to NPM
22-
run: npm run release
23-
working-directory: featurehub-react-sdk
29+
run: pnpm run release
30+
working-directory: packages/react
2431
env:
2532
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

.github/workflows/solid-sdk-build.yml

Lines changed: 0 additions & 37 deletions
This file was deleted.

.github/workflows/solid-sdk-publish-action.yml

Lines changed: 18 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,20 +6,27 @@ jobs:
66
publish:
77
runs-on: ubuntu-latest
88
steps:
9-
- uses: actions/checkout@v3
10-
# Setup .npmrc file to publish to npm
11-
- uses: actions/setup-node@v3
9+
- name: Checkout
10+
uses: actions/checkout@v5
11+
- name: Install pnpm
12+
uses: pnpm/action-setup@v4
13+
with:
14+
version: 10.18.0
15+
run_install: false
16+
- name: Setup Node
17+
uses: actions/setup-node@v6
1218
with:
1319
node-version: "22.20.0"
20+
cache: "pnpm"
1421
registry-url: "https://registry.npmjs.org"
15-
- name: Install dependencies
16-
run: npm install
17-
working-directory: featurehub-solid-sdk
18-
- name: Install peer dependencies
19-
run: npm install featurehub-javascript-client-sdk solid-js
20-
working-directory: featurehub-solid-sdk
22+
- name: Install Dependencies
23+
run: pnpm install
24+
working-directory: packages/solid
25+
- name: Install Peer Dependencies
26+
run: pnpm install featurehub-javascript-client-sdk solid-js
27+
working-directory: packages/solid
2128
- name: Compile sources and Publish to NPM
22-
run: npm run release
23-
working-directory: featurehub-solid-sdk
29+
run: pnpm run release
30+
working-directory: packages/solid
2431
env:
2532
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

.github/workflows/typescript-client-build.yml

Lines changed: 0 additions & 38 deletions
This file was deleted.

.github/workflows/typescript-client-sdk-publish-action.yml

Lines changed: 18 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -6,23 +6,27 @@ jobs:
66
publish:
77
runs-on: ubuntu-latest
88
steps:
9-
- uses: actions/checkout@v3
10-
# Setup .npmrc file to publish to npm
11-
- uses: actions/setup-node@v3
9+
- name: Checkout
10+
uses: actions/checkout@v5
11+
- name: Install pnpm
12+
uses: pnpm/action-setup@v4
13+
with:
14+
version: 10.18.0
15+
run_install: false
16+
- name: Setup Node
17+
uses: actions/setup-node@v6
1218
with:
1319
node-version: "22.20.0"
20+
cache: "pnpm"
1421
registry-url: "https://registry.npmjs.org"
15-
- name: Install dependencies
16-
run: npm install
17-
working-directory: featurehub-javascript-client-sdk
18-
- name: Ensure tests are working
19-
run: npm run test
20-
working-directory: featurehub-javascript-client-sdk
21-
- name: Ensure everything is linted correctly
22-
run: npm run lint
23-
working-directory: featurehub-javascript-client-sdk
22+
- name: Install Dependencies
23+
run: pnpm install
24+
working-directory: packages/js
25+
- name: Run Tests
26+
run: pnpm run test
27+
working-directory: packages/js
2428
- name: Compile sources and Publish to NPM
25-
run: npm run release
26-
working-directory: featurehub-javascript-client-sdk
29+
run: pnpm run release
30+
working-directory: packages/js
2731
env:
2832
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

.github/workflows/typescript-node-build.yml

Lines changed: 0 additions & 38 deletions
This file was deleted.

.github/workflows/typescript-node-sdk-publish-action.yml

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,20 +6,24 @@ jobs:
66
publish:
77
runs-on: ubuntu-latest
88
steps:
9-
- uses: actions/checkout@v3
10-
# Setup .npmrc file to publish to npm
11-
- uses: actions/setup-node@v3
9+
- name: Checkout
10+
uses: actions/checkout@v5
11+
- name: Install pnpm
12+
uses: pnpm/action-setup@v4
13+
with:
14+
version: 10.18.0
15+
run_install: false
16+
- name: Setup Node
17+
uses: actions/setup-node@v6
1218
with:
1319
node-version: "22.20.0"
20+
cache: "pnpm"
1421
registry-url: "https://registry.npmjs.org"
15-
- name: Install dependencies
16-
run: npm install
17-
working-directory: featurehub-javascript-node-sdk
18-
- name: Ensure everything is linted correctly
19-
run: npm run lint
20-
working-directory: featurehub-javascript-node-sdk
22+
- name: Install Dependencies
23+
run: pnpm install
24+
working-directory: packages/node
2125
- name: Compile sources and Publish to NPM
22-
run: npm run release
23-
working-directory: featurehub-javascript-node-sdk
26+
run: pnpm run release
27+
working-directory: packages/node
2428
env:
2529
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

.prettierignore

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,9 @@ dist
33
build
44
coverage
55
node_modules
6-
.nyc_output
6+
.nyc_output
7+
8+
# Lock files (auto-generated, should not be formatted)
9+
pnpm-lock.yaml
10+
package-lock.json
11+
yarn.lock

0 commit comments

Comments
 (0)