Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

major poc #2137

Draft
wants to merge 74 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
74 commits
Select commit Hold shift + click to select a range
ef49ab6
setup nx releases separate packages
zaidarain1 Sep 3, 2024
f2e5292
update yarn.lock
zaidarain1 Sep 3, 2024
1306b35
test commit
zaidarain1 Sep 3, 2024
300fd57
update release config
zaidarain1 Sep 3, 2024
eec2b25
pnpm, tsup migration and fix builds/errors
zaidarain1 Sep 16, 2024
c0112db
undo public hoisting for jest types
zaidarain1 Sep 16, 2024
5dd552a
fix broken builds
zaidarain1 Sep 16, 2024
f3620d5
migrate workspaces commands from yarn to pnpm
zaidarain1 Sep 16, 2024
45a7d65
fix syncpack and test command
zaidarain1 Sep 17, 2024
2c3d4f1
fix examples
zaidarain1 Sep 17, 2024
e5df778
fix orderbook breaking build
zaidarain1 Sep 17, 2024
ba68145
fix and update syncpack
zaidarain1 Sep 17, 2024
efb1089
fix react type error and passport test
zaidarain1 Sep 18, 2024
8b38ec7
update playwright configs and fix zkevm tests
zaidarain1 Sep 18, 2024
6d6d994
fix checkout require exports
zaidarain1 Sep 18, 2024
b07a65d
install playwright and prepare sdk correctly
zaidarain1 Sep 18, 2024
151a5ae
update playwright install and fix zkevm func tests
zaidarain1 Sep 18, 2024
e334e6b
remove setup-node caching
zaidarain1 Sep 18, 2024
0e65aa4
use setup-node cache
zaidarain1 Sep 18, 2024
4a37fde
add main conditional exports to @imtbl/sdk
zaidarain1 Sep 18, 2024
12c7163
add build step to preparing sdk
zaidarain1 Sep 18, 2024
6e89e06
build examples before testing
zaidarain1 Sep 18, 2024
6778df4
bump up concurrency and combine examples steps together
zaidarain1 Sep 19, 2024
981607b
retrigger checks
zaidarain1 Sep 19, 2024
c8e0629
update lockfile
zaidarain1 Sep 19, 2024
123e03e
set sdk team as codeowners for package.json
zaidarain1 Sep 19, 2024
30f22ea
update publish workflow to nx release, clean up and allow pre publish…
zaidarain1 Sep 20, 2024
5adac77
change workflow trigger
zaidarain1 Sep 20, 2024
b75cb89
change workflow trigger
zaidarain1 Sep 20, 2024
40e1262
fix release syntax error
zaidarain1 Sep 20, 2024
2dc9794
fix release syntax error
zaidarain1 Sep 20, 2024
77adb7e
fix major permission check
zaidarain1 Sep 20, 2024
b551e15
add more conditions for major release
zaidarain1 Sep 20, 2024
d225a60
fix build release command
zaidarain1 Sep 20, 2024
3603f3f
fix build release command
zaidarain1 Sep 20, 2024
b3c9d0b
fix attestations
zaidarain1 Sep 20, 2024
01029ba
fix attestation dirs
zaidarain1 Sep 20, 2024
57ee330
set attestation for sdk
zaidarain1 Sep 20, 2024
5b76219
ignore node modules for attestations
zaidarain1 Sep 20, 2024
1516426
specify sdk attestations
zaidarain1 Sep 20, 2024
cf54503
update sdk attestions paths
zaidarain1 Sep 20, 2024
375c26c
early return on dry run
zaidarain1 Sep 20, 2024
4f5cb38
cleanup publish workflow file
zaidarain1 Sep 20, 2024
b33b229
revert codeowners change
zaidarain1 Sep 23, 2024
ee9615e
update pnpm lock
zaidarain1 Sep 23, 2024
b5e93a7
remove unneeded fallback prepatch for release type
zaidarain1 Sep 23, 2024
88b97ce
update lockfile
zaidarain1 Sep 23, 2024
d2962b6
update lockfile
zaidarain1 Sep 23, 2024
d53bb3e
update lockfile
zaidarain1 Sep 24, 2024
5d339cb
fix passport tests
zaidarain1 Sep 25, 2024
e4713ee
update lock
zaidarain1 Sep 25, 2024
b010b0e
update lock
zaidarain1 Sep 26, 2024
e0737ba
fix missing semver dep in checkout
zaidarain1 Sep 26, 2024
51b6934
update lock after rebase
zaidarain1 Sep 26, 2024
bd6084b
add semver types
zaidarain1 Sep 26, 2024
65aa52e
fix playwright webserver commands
zaidarain1 Sep 26, 2024
b78ed3a
speed up prepare sdk, examples and tests for local sdk npm emulation
zaidarain1 Sep 27, 2024
28f6337
update pnpm lock
zaidarain1 Sep 27, 2024
cc3cfae
fix func-tests
zaidarain1 Sep 27, 2024
fa5df20
update checkout build process, update publish process to handle sdk v…
zaidarain1 Oct 2, 2024
f8a720c
update lock
zaidarain1 Oct 2, 2024
b712255
fix node type error
zaidarain1 Oct 2, 2024
6abe81c
update lock
zaidarain1 Oct 2, 2024
cd7de25
fix react-app-rewired builds
zaidarain1 Oct 2, 2024
0b462bc
update dev mode to instant refresh for all packages, support jest lis…
zaidarain1 Oct 3, 2024
111baa6
update lockfile
zaidarain1 Oct 3, 2024
714ba91
fix build errors
zaidarain1 Oct 4, 2024
5c2e979
install prepared deps correctly
zaidarain1 Oct 4, 2024
6f4aafa
fix pr workflow for func tests and prepped deps
zaidarain1 Oct 4, 2024
aa7fdd9
ignore non-workspace @imtbl deps when prepping deps
zaidarain1 Oct 4, 2024
3a6096c
cleanup babel from checkout
zaidarain1 Oct 7, 2024
c7c2d29
update lock
zaidarain1 Oct 7, 2024
8246ecc
updatwe lock
zaidarain1 Oct 7, 2024
8bf5e2c
Update readmes and contributing docs
zaidarain1 Oct 14, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
"**sample-app**/",
"**playground**/",
"*.cjs",
"tests/func-tests/"
"tests/func-tests/",
"tsup.*"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
Expand Down
13 changes: 5 additions & 8 deletions .github/actions/setup-playwright/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,17 @@ runs:
- name: Playwright versions in sync check
shell: bash
run: |
versions=$(yarn why --json @playwright/test | grep -h 'workspace:.' | jq --raw-output '.children[].locator' | sed -e 's/@playwright\/test@.*://')
versions=$(pnpm ls -r --json --depth 0 @playwright/test | jq --raw-output '.[] | select(.devDependencies["@playwright/test"]) | .devDependencies["@playwright/test"].version')
unique_versions=$(echo "$versions" | sort | uniq)
if [ $(echo "$unique_versions" | wc -l) -ne 1 ]; then
echo "Playwright versions are not in sync:"
echo "$unique_versions"
exit 1
else
echo "All Playwright versions are in sync."
echo "PLAYWRIGHT_VERSION=$unique_versions" >> $GITHUB_ENV
fi

- name: Get Playwright version
shell: bash
run: echo "PLAYWRIGHT_VERSION=$(node -e "console.log(require('playwright/package.json').version)")" >> $GITHUB_ENV


- name: Cache Playwright Browsers
id: cache-playwright-browsers
uses: actions/cache@v4
Expand All @@ -31,9 +28,9 @@ runs:
- name: Install Playwright with dependencies
shell: bash
if: steps.cache-playwright-browsers.outputs.cache-hit != 'true'
run: yarn dlx playwright@${{ env.PLAYWRIGHT_VERSION }} install --with-deps
run: pnpm dlx playwright@${{ env.PLAYWRIGHT_VERSION }} install --with-deps

- name: Install Playwright dependencies
shell: bash
if: steps.cache-playwright-browsers.outputs.cache-hit == 'true'
run: yarn dlx playwright@${{ env.PLAYWRIGHT_VERSION }} install-deps
run: pnpm dlx playwright@${{ env.PLAYWRIGHT_VERSION }} install-deps
19 changes: 6 additions & 13 deletions .github/actions/setup/action.yaml
Original file line number Diff line number Diff line change
@@ -1,29 +1,22 @@
name: "Setup"
description: "Do necessary setup for NX, node, yarn cache and deps install"
description: "Do necessary setup for NX, node, pnpm cache and deps install"

runs:
using: "composite"
steps:
- name: Derive appropriate SHAs for base and head for `nx affected` commands
uses: nrwl/nx-set-shas@v3

- name: Setup pnpm
uses: pnpm/action-setup@v4

- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version-file: ".nvmrc"
registry-url: https://registry.npmjs.org/
cache: "yarn"

- name: Restore cached node_modules
id: restore-cache-node_modules
uses: actions/cache@v4
with:
path: |
**/node_modules
.yarn/install-state.gz
key: ${{ runner.os }}-build-cache-deps-${{ hashFiles('yarn.lock') }}
cache: "pnpm"

- name: install dependencies
if: steps.restore-cache-node_modules.outputs.cache-hit != 'true'
shell: bash
run: yarn install --immutable
run: pnpm install --frozen-lockfile
7 changes: 4 additions & 3 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
### Hi👋, please prefix this PR's title with:
<!-- This will give consistant Release changelog to the public -->
- [ ] `breaking-change:` if you have introduced modification that necessitates immediate adjustments by this SDK's users to their applications, clients, or integrations to avert disruptions to existing features or functionalities.
- [ ] `feat:`, `fix:`, `refactor:`, `docs:`, or `chore:`.
<!-- This will allow for auto-generated changelog entries in Github releases -->
<!-- Valid types: feat, fix, refactor, style, test, docs, build, ops, chore -->
- [ ] PR is titled with conventional commit style naming: `type(scope): message`. For example: `feat(passport): my new feature`
- [ ] If you have introduced modification that necessitates immediate adjustments by this SDK's users to their applications, clients, or integrations to avert disruptions to existing features or functionalities, add a `!` after the `type(scope)`, for example `feat(passport)!: my new breaking feature`

# Summary
<!-- Keep it short. This is publicly viewable as part of the Changelog / Releases. -->
Expand Down
22 changes: 0 additions & 22 deletions .github/scripts/check-team-membership.sh

This file was deleted.

10 changes: 0 additions & 10 deletions .github/scripts/delete-local-tags.sh

This file was deleted.

Loading