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 Dec 13, 2024
1 parent cee6015 commit d16f075
Show file tree
Hide file tree
Showing 35 changed files with 11,438 additions and 14,495 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 @@ -420,7 +420,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 @@ -446,7 +446,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 @@ -513,7 +513,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 .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
.turbo
.yarn
dist
node_modules
Expand Down
9 changes: 9 additions & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,16 @@
variables:
YARN_CACHE_FOLDER: "${CI_PROJECT_DIR}/.yarn/cache/"

default:
image: node:18.20.5@sha256:b57ae84fe7880a23b389f8260d726b784010ed470c2ee26d4e2cbdb955d25b12
tags:
- pangea-internal
cache:
key:
files:
- yarn.lock
paths:
- ${YARN_CACHE_FOLDER}

stages:
- build
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 d16f075

Please sign in to comment.