Skip to content

Commit fd978f4

Browse files
author
fern
committed
SDK Generation
1 parent d1c5a00 commit fd978f4

File tree

217 files changed

+2737
-5101
lines changed

Some content is hidden

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

217 files changed

+2737
-5101
lines changed

.github/workflows/ci.yml

Lines changed: 70 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -3,55 +3,73 @@ name: ci
33
on: [push]
44

55
jobs:
6-
compile:
7-
runs-on: ubuntu-latest
8-
9-
steps:
10-
- name: Checkout repo
11-
uses: actions/checkout@v4
12-
13-
- name: Set up node
14-
uses: actions/setup-node@v3
15-
16-
- name: Compile
17-
run: yarn && yarn build
18-
19-
test:
20-
runs-on: ubuntu-latest
21-
22-
steps:
23-
- name: Checkout repo
24-
uses: actions/checkout@v4
25-
26-
- name: Set up node
27-
uses: actions/setup-node@v3
28-
29-
- name: Compile
30-
run: yarn && yarn test
31-
32-
publish:
33-
needs: [ compile, test ]
34-
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/')
35-
runs-on: ubuntu-latest
36-
steps:
37-
- name: Checkout repo
38-
uses: actions/checkout@v4
39-
- name: Set up node
40-
uses: actions/setup-node@v3
41-
- name: Install dependencies
42-
run: yarn install
43-
- name: Build
44-
run: yarn build
45-
46-
- name: Publish to npm
47-
run: |
48-
npm config set //registry.npmjs.org/:_authToken ${NPM_TOKEN}
49-
if [[ ${GITHUB_REF} == *alpha* ]]; then
50-
npm publish --access public --tag alpha
51-
elif [[ ${GITHUB_REF} == *beta* ]]; then
52-
npm publish --access public --tag beta
53-
else
54-
npm publish --access public
55-
fi
56-
env:
57-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
6+
compile:
7+
runs-on: ubuntu-latest
8+
9+
steps:
10+
- name: Checkout repo
11+
uses: actions/checkout@v4
12+
13+
- name: Set up node
14+
uses: actions/setup-node@v3
15+
16+
- name: Install pnpm
17+
uses: pnpm/action-setup@v4
18+
19+
- name: Install dependencies
20+
run: pnpm install
21+
22+
- name: Compile
23+
run: pnpm build
24+
25+
test:
26+
runs-on: ubuntu-latest
27+
28+
steps:
29+
- name: Checkout repo
30+
uses: actions/checkout@v4
31+
32+
- name: Set up node
33+
uses: actions/setup-node@v3
34+
35+
- name: Install pnpm
36+
uses: pnpm/action-setup@v4
37+
38+
- name: Install dependencies
39+
run: pnpm install
40+
41+
- name: Test
42+
run: pnpm test
43+
44+
publish:
45+
needs: [compile, test]
46+
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/')
47+
runs-on: ubuntu-latest
48+
steps:
49+
- name: Checkout repo
50+
uses: actions/checkout@v4
51+
52+
- name: Set up node
53+
uses: actions/setup-node@v3
54+
55+
- name: Install pnpm
56+
uses: pnpm/action-setup@v4
57+
58+
- name: Install dependencies
59+
run: pnpm install
60+
61+
- name: Build
62+
run: pnpm build
63+
64+
- name: Publish to npm
65+
run: |
66+
npm config set //registry.npmjs.org/:_authToken ${NPM_TOKEN}
67+
if [[ ${GITHUB_REF} == *alpha* ]]; then
68+
npm publish --access public --tag alpha
69+
elif [[ ${GITHUB_REF} == *beta* ]]; then
70+
npm publish --access public --tag beta
71+
else
72+
npm publish --access public
73+
fi
74+
env:
75+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

.prettierignore

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
dist
2+
*.tsbuildinfo
3+
_tmp_*
4+
*.tmp
5+
.tmp/
6+
*.log
7+
.DS_Store
8+
Thumbs.db
9+

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,4 +186,4 @@ of any court action, you agree to submit to the exclusive jurisdiction of the co
186186
Notwithstanding this, you agree that Anduril shall still be allowed to apply for injunctive remedies (or an equivalent type of urgent legal
187187
relief) in any jurisdiction.
188188

189-
**April 14, 2025**
189+
**April 14, 2025**

README.md

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -10,25 +10,15 @@ The Lattice SDK TypeScript library provides convenient access to the Lattice SDK
1010

1111
API reference documentation is available [here](https://developer.anduril.com/).
1212

13-
## Requirements
14-
15-
To use the SDK please ensure you have the following installed:
16-
17-
- [NodeJS](https://nodejs.org/en/download/package-manager)
18-
1913
## Installation
2014

2115
```sh
2216
npm i -s @anduril-industries/lattice-sdk
2317
```
2418

25-
## Support
26-
27-
For support with this library, please reach out to your Anduril representative.
28-
2919
## Reference
3020

31-
A full reference for this library is available [here](https://github.com/anduril/lattice-sdk-javascript/blob/HEAD/./reference.md).
21+
A full reference for this library is available [here](./reference.md).
3222

3323
## Usage
3424

jest.config.mjs

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

package.json

Lines changed: 9 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"name": "@anduril-industries/lattice-sdk",
3-
"version": "2.3.0",
3+
"version": "0.0.1",
44
"private": false,
5-
"repository": "github:anduril/lattice-sdk-javascript",
5+
"repository": "github:fern-api/lattice-sdk-javascript",
66
"license": "See LICENSE",
77
"type": "commonjs",
88
"main": "./dist/cjs/index.js",
@@ -31,23 +31,18 @@
3131
],
3232
"scripts": {
3333
"format": "prettier . --write --ignore-unknown",
34-
"build": "yarn build:cjs && yarn build:esm",
34+
"build": "pnpm build:cjs && pnpm build:esm",
3535
"build:cjs": "tsc --project ./tsconfig.cjs.json",
3636
"build:esm": "tsc --project ./tsconfig.esm.json && node scripts/rename-to-esm-files.js dist/esm",
37-
"test": "jest --config jest.config.mjs",
38-
"test:unit": "jest --selectProjects unit",
39-
"test:browser": "jest --selectProjects browser",
40-
"test:wire": "jest --selectProjects wire"
37+
"test": "vitest",
38+
"test:unit": "vitest --project unit",
39+
"test:wire": "vitest --project wire"
4140
},
4241
"devDependencies": {
4342
"webpack": "^5.97.1",
4443
"ts-loader": "^9.5.1",
45-
"jest": "^29.7.0",
46-
"@jest/globals": "^29.7.0",
47-
"@types/jest": "^29.5.14",
48-
"ts-jest": "^29.3.4",
49-
"jest-environment-jsdom": "^29.7.0",
50-
"msw": "^2.8.4",
44+
"vitest": "^3.2.4",
45+
"msw": "2.11.2",
5146
"@types/node": "^18.19.70",
5247
"prettier": "^3.4.2",
5348
"typescript": "~5.7.2"
@@ -58,7 +53,7 @@
5853
"path": false,
5954
"stream": false
6055
},
61-
"packageManager": "[email protected]",
56+
"packageManager": "[email protected]",
6257
"engines": {
6358
"node": ">=18.0.0"
6459
},

0 commit comments

Comments
 (0)