Skip to content

Commit

Permalink
chore: create a workspace for examples and pangea-node-sdk
Browse files Browse the repository at this point in the history
  • Loading branch information
kenany committed Oct 29, 2024
1 parent defab3c commit 8c36547
Show file tree
Hide file tree
Showing 33 changed files with 14,030 additions and 14,610 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ jobs:
with:
node-version: 20
cache: yarn
cache-dependency-path: ./packages/pangea-node-sdk/yarn.lock
cache-dependency-path: yarn.lock

- name: Install dependencies
run: yarn install --immutable
Expand Down Expand Up @@ -352,7 +352,7 @@ jobs:
with:
node-version: ${{ matrix.node-version }}
cache: yarn
cache-dependency-path: ./packages/pangea-node-sdk/yarn.lock
cache-dependency-path: yarn.lock

- name: Install dependencies
run: yarn install --immutable
Expand All @@ -378,7 +378,7 @@ jobs:
with:
node-version: 20
cache: yarn
cache-dependency-path: ./packages/pangea-node-sdk/yarn.lock
cache-dependency-path: yarn.lock

- name: Install dependencies
run: yarn install --immutable
Expand Down Expand Up @@ -445,7 +445,7 @@ jobs:
with:
node-version: 22
cache: yarn
cache-dependency-path: ./examples/react-audit-log-viewer/yarn.lock
cache-dependency-path: yarn.lock

- name: Install dependencies
run: yarn install --immutable
Expand Down
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
.tshy
dist
node_modules
storybook-static
3 changes: 2 additions & 1 deletion examples/.examples-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@ examples-tests:
- popd
script:
- cd examples/${TEST_FOLDER}
- yarn install --frozen-lockfile
- corepack enable
- yarn install --immutable
- bash ../../dev/run_all_examples.sh
rules:
- if: $CI_COMMIT_BRANCH
Expand Down
10 changes: 5 additions & 5 deletions examples/audit/package.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
"name": "audit_examples",
"version": "2.0.0",
"description": "Pangea audit examples",
"name": "@pangeacyber/audit-examples",
"version": "0.0.0-development",
"description": "Pangea Secure Audit Log examples",
"private": true,
"author": "Pangea",
"license": "MIT",
"packageManager": "yarn@1.22.22",
"packageManager": "yarn@4.5.1",
"dependencies": {
"pangea-node-sdk": "4.1.0"
"pangea-node-sdk": "workspace:^"
}
}
127 changes: 0 additions & 127 deletions examples/audit/yarn.lock

This file was deleted.

13 changes: 5 additions & 8 deletions examples/authn/package.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,12 @@
{
"name": "authn_examples",
"version": "3.0.0",
"name": "@pangeacyber/authn-examples",
"version": "0.0.0-development",
"description": "Pangea AuthN examples",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"private": true,
"author": "Pangea",
"license": "MIT",
"packageManager": "yarn@1.22.22",
"packageManager": "yarn@4.5.1",
"dependencies": {
"pangea-node-sdk": "4.1.0"
"pangea-node-sdk": "workspace:^"
}
}
127 changes: 0 additions & 127 deletions examples/authn/yarn.lock

This file was deleted.

15 changes: 6 additions & 9 deletions examples/authz/package.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,12 @@
{
"name": "authz_examples",
"version": "2.0.0",
"description": "Pangea AuthZ example",
"main": "authz_cycle.mjs",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"name": "@pangeacyber/authz-examples",
"version": "0.0.0-development",
"description": "Pangea AuthZ examples",
"private": true,
"author": "Pangea",
"license": "MIT",
"packageManager": "yarn@1.22.22",
"packageManager": "yarn@4.5.1",
"dependencies": {
"pangea-node-sdk": "file:../../packages/pangea-node-sdk"
"pangea-node-sdk": "workspace:^"
}
}
Loading

0 comments on commit 8c36547

Please sign in to comment.