Skip to content

Commit 6e9eb25

Browse files
authored
add presentational details (#27)
1 parent e053f81 commit 6e9eb25

File tree

8 files changed

+79
-20
lines changed

8 files changed

+79
-20
lines changed

.github/workflows/pr-tests.yml

Lines changed: 45 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,38 +4,35 @@ on:
44
pull_request:
55
branches: [main]
66
types: [opened, synchronize, reopened]
7-
# Also run on pushes to main for consistency
8-
push:
9-
branches: [main]
107

118
# Cancel in-progress runs for the same PR
129
concurrency:
1310
group: ${{ github.workflow }}-${{ github.ref }}
1411
cancel-in-progress: true
1512

13+
env:
14+
NODE_VERSION: ${{ vars.NODE_VERSION }}
15+
1616
jobs:
17-
test:
18-
name: Test Suite
17+
# Code quality checks (fast, no build required)
18+
quality:
19+
name: Code Quality
1920
runs-on: ubuntu-latest
20-
timeout-minutes: 15
21-
21+
timeout-minutes: 10
2222
steps:
2323
- name: Checkout code
2424
uses: actions/checkout@v4
2525
with:
26-
# Fetch full history for Nx affected commands (optional optimization)
2726
fetch-depth: 0
2827

2928
- name: Setup Node.js
3029
uses: actions/setup-node@v4
3130
with:
32-
node-version: ${{ vars.NODE_VERSION }}
33-
registry-url: "https://registry.npmjs.org"
31+
node-version: ${{ env.NODE_VERSION }}
3432

3533
- name: Setup pnpm
3634
uses: pnpm/action-setup@v4
3735
with:
38-
version: "10.6.3"
3936
run_install: false
4037

4138
- name: Get pnpm store directory
@@ -63,6 +60,43 @@ jobs:
6360
- name: Check formatting
6461
run: pnpm format:check
6562

63+
# Build and test (slower, runs in parallel with quality)
64+
test:
65+
name: Build & Test
66+
runs-on: ubuntu-latest
67+
timeout-minutes: 15
68+
steps:
69+
- name: Checkout code
70+
uses: actions/checkout@v4
71+
with:
72+
fetch-depth: 0
73+
74+
- name: Setup Node.js
75+
uses: actions/setup-node@v4
76+
with:
77+
node-version: ${{ env.NODE_VERSION }}
78+
79+
- name: Setup pnpm
80+
uses: pnpm/action-setup@v4
81+
with:
82+
run_install: false
83+
84+
- name: Get pnpm store directory
85+
shell: bash
86+
run: |
87+
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
88+
89+
- name: Setup pnpm cache
90+
uses: actions/cache@v4
91+
with:
92+
path: ${{ env.STORE_PATH }}
93+
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
94+
restore-keys: |
95+
${{ runner.os }}-pnpm-store-
96+
97+
- name: Install dependencies
98+
run: pnpm install --frozen-lockfile
99+
66100
- name: Build packages
67101
run: pnpm build
68102

.github/workflows/release.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ on:
99
# Prevent multiple releases from running at the same time
1010
concurrency: ${{ github.workflow }}-${{ github.ref }}
1111

12+
env:
13+
NODE_VERSION: ${{ vars.NODE_VERSION }}
14+
1215
jobs:
1316
release:
1417
name: Release
@@ -31,13 +34,12 @@ jobs:
3134
- name: Setup Node.js
3235
uses: actions/setup-node@v4
3336
with:
34-
node-version: ${{ vars.NODE_VERSION }}
37+
node-version: ${{ env.NODE_VERSION }}
3538
registry-url: "https://registry.npmjs.org"
3639

3740
- name: Setup pnpm
3841
uses: pnpm/action-setup@v4
3942
with:
40-
version: "10.6.3"
4143
run_install: false
4244

4345
- name: Get pnpm store directory

.github/workflows/snapshot.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,7 @@ on:
3232
run-name: "Publishing ${{ inputs.snapshot_tag }} for ${{ inputs.packages }} to ${{ inputs.environment }} by @${{ github.actor }}"
3333

3434
env:
35-
NODE_VERSION: 22.12.0
36-
PNPM_VERSION: 10.7.1
35+
NODE_VERSION: ${{ vars.NODE_VERSION }}
3736
IS_CI: true
3837

3938
permissions:
@@ -52,9 +51,8 @@ jobs:
5251
fetch-depth: 0
5352

5453
# Setup Node.js and pnpm
55-
- uses: pnpm/action-setup@v3
54+
- uses: pnpm/action-setup@v4
5655
with:
57-
version: ${{ env.PNPM_VERSION }}
5856
run_install: false
5957

6058
- name: Install Node.js

README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,22 @@ Modern, secure OAuth connection library for Nylas APIs.
2525
npm install @nylas/connect
2626
```
2727

28+
### [`@nylas/react`](./packages/react/)
29+
30+
React components and hooks for Nylas API integration.
31+
32+
- **TypeScript-first** with full type safety
33+
- Works with React 18 and 19
34+
- Pre-built UI components for email, calendar, and contacts
35+
- OAuth connection hooks and utilities
36+
- Modular exports for tree-shaking
37+
38+
[**📖 Documentation →**](./packages/react/README.md)
39+
40+
```bash
41+
npm install @nylas/react
42+
```
43+
2844
---
2945

3046
## 🛠 Development

nx.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"targetDefaults": {
44
"build": {
55
"cache": true,
6+
"dependsOn": ["^build"],
67
"inputs": ["default", "^default"],
78
"outputs": ["{projectRoot}/dist"]
89
},

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"node": ">=22.0.0",
99
"pnpm": ">=9.0.0"
1010
},
11-
"packageManager": "pnpm@10.6.3",
11+
"packageManager": "pnpm@10.7.1",
1212
"scripts": {
1313
"build": "nx run-many -t build",
1414
"test": "nx run-many -t test",

packages/nylas-connect/package.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,12 @@
4141
],
4242
"repository": {
4343
"type": "git",
44-
"url": "git+https://github.com/nylas/nylas.git"
44+
"url": "git+https://github.com/nylas/javascript.git"
4545
},
46+
"bugs": {
47+
"url": "https://github.com/nylas/javascript/issues"
48+
},
49+
"homepage": "https://github.com/nylas/javascript#readme",
4650
"author": "Nylas Inc.",
4751
"license": "MIT",
4852
"publishConfig": {

packages/react/package.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,12 @@
2020
},
2121
"repository": {
2222
"type": "git",
23-
"url": "git+https://github.com/nylas/nylas.git"
23+
"url": "git+https://github.com/nylas/javascript.git"
2424
},
25+
"bugs": {
26+
"url": "https://github.com/nylas/javascript/issues"
27+
},
28+
"homepage": "https://github.com/nylas/javascript#readme",
2529
"keywords": [
2630
"nylas",
2731
"react",

0 commit comments

Comments
 (0)