Skip to content

Commit 2d03c00

Browse files
release: v0.2.0 (#9)
* delete old sdk code * [SILO-589] feat!: add handcrafted SDK v0.2.0 #8 * fix: prettier configuration (#10) * feat!: add handcrafted SDK v0.2.0 - added models for each entities - added APIs for all available Plane entities - tests to verify e2e api sanity - examples for reference BREAKING CHANGE: must be carefully upgraded from 0.1.x versions as method signatures are changed * chore: adding prettier config * chore: remove ds store * fix: format all files * chore: package imports --------- Co-authored-by: Surya Prashanth <[email protected]> * feat: add e2e and unit tests (#11) * move existing tests under unit folder * don't fail unit tests when env is not setup * create helpers folder for test helpers * feat: add e2e test to verify project use case * add jest and tsconfig.jest files * feat: add unit tests using jest for all entities * fix: eslint (#12) * chore: eslint config setup * chore: updated the build test workflow * chore: setup pnpm workflow * chore: build errors * chore: updated the push step * ops: update publishing flow for new sdk (#13) * ops: update publishing flow for nw sdk * run only e2e tests in github actions * chore: updated the publish workflow with corepack changes * chore: remove unused imports --------- Co-authored-by: Surya Prashanth <[email protected]>
1 parent 0f78686 commit 2d03c00

File tree

226 files changed

+10430
-27804
lines changed

Some content is hidden

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

226 files changed

+10430
-27804
lines changed

.github/workflows/build-test.yaml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Build and Test Node SDK
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- main
7+
types: ["opened", "synchronize", "reopened"]
8+
jobs:
9+
build-lint:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v4
13+
14+
- name: Set up Node.js
15+
uses: actions/setup-node@v4
16+
17+
- name: Enable corepack
18+
run: corepack enable pnpm
19+
20+
- name: Install dependencies
21+
run: pnpm install --frozen-lockfile
22+
23+
- name: Run lint
24+
run: pnpm run check:lint
25+
26+
- name: Run format
27+
run: pnpm run check:format
28+
29+
- name: Run build
30+
run: pnpm run build
31+
32+
- name: Run tests
33+
run: pnpm run test:e2e

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

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,23 @@ jobs:
88
runs-on: ubuntu-latest
99

1010
steps:
11-
- uses: actions/checkout@v4
12-
- uses: actions/setup-node@v4
13-
with:
14-
node-version: "20"
15-
registry-url: "https://registry.npmjs.org"
11+
- name: Checkout code
12+
uses: actions/checkout@v4
13+
14+
- name: Set up Node.js
15+
uses: actions/setup-node@v4
16+
17+
- name: Enable corepack
18+
run: corepack enable pnpm
19+
20+
- name: Install dependencies
21+
run: pnpm install --frozen-lockfile
1622

17-
- name: Install dependencies and build
18-
run: npm ci
23+
- name: Run Build
24+
run: pnpm build
1925

2026
- name: Publish to npm
21-
run: npm publish --access public
27+
run: pnpm publish --access public
2228
env:
2329
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
2430

.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,9 @@ wwwroot/*.js
22
node_modules
33
typings
44
dist
5+
.openapi-generator
6+
.openapi-generator-ignore
7+
.env
8+
.env.test
9+
env
10+
.DS_Store

.npmignore

Lines changed: 0 additions & 1 deletion
This file was deleted.

.openapi-generator-ignore

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

.openapi-generator/FILES

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

.openapi-generator/VERSION

Lines changed: 0 additions & 1 deletion
This file was deleted.

.prettierignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
out/
2+
dist/
3+
build/
4+
node_modules/

.prettierrc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"printWidth": 120,
3+
"tabWidth": 2,
4+
"trailingComma": "es5"
5+
}

0 commit comments

Comments
 (0)