Skip to content

Commit

Permalink
Copy files from 39b6cab4 on https://github.com/palantir/osdk-ts
Browse files Browse the repository at this point in the history
  • Loading branch information
ericanderson committed Oct 9, 2024
1 parent 3e65798 commit 452324f
Show file tree
Hide file tree
Showing 321 changed files with 45,758 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .bulldozer.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Excavator auto-updates this file. Please contribute improvements to the central template.

version: 1
merge:
trigger:
labels: ["merge when ready"]
ignore:
labels: ["do not merge"]
method: squash
options:
squash:
body: pull_request_body
message_delimiter: ==COMMIT_MSG==
delete_after_merge: true
update:
trigger:
labels: ["update me"]
27 changes: 27 additions & 0 deletions .changeset/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"$schema": "https://unpkg.com/@changesets/[email protected]/schema.json",
"changelog": "@changesets/cli/changelog",
"commit": false,
"fixed": [
["@osdk/foundry.*", "@osdk/foundry"],
["@osdk/internal.foundry.*"]
],
"linked": [],
"access": "restricted",
"baseBranch": "main",
"updateInternalDependencies": "patch",
"ignore": [
"@osdk/examples.*",
"@osdk/monorepo.*",
"@osdk/tests.*",
"@osdk/version-updater",
"@osdk/e2e.test.foundry-sdk-generator",
"@osdk/e2e.generated.*",
"@osdk/e2e.sandbox.*"
],
"bumpVersionsWithWorkspaceProtocolOnly": true,
"snapshot": {
"useCalculatedVersion": true
},
"prereleaseTemplate": "{tag}-{datetime}-{commit}"
}
96 changes: 96 additions & 0 deletions .changeset/pre.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,96 @@
{
"mode": "pre",
"tag": "beta",
"initialVersions": {
"@osdk/examples.docs.example": "0.0.1",
"@osdk/examples.next-static-export": "0.0.0",
"@osdk/examples.react": "0.0.0",
"@osdk/examples.react-beta": "0.0.0",
"@osdk/examples.tutorial-todo-aip-app": "0.0.0",
"@osdk/examples.tutorial-todo-app": "0.0.0",
"@osdk/examples.vue": "0.0.0",
"@osdk/api": "2.0.0",
"@osdk/cli": "0.24.0",
"@osdk/cli.cmd.typescript": "0.6.0",
"@osdk/cli.common": "0.4.0",
"@osdk/client": "2.0.0",
"@osdk/client.test.ontology": "2.0.0",
"@osdk/client.unstable": "2.0.0",
"@osdk/client.unstable.osw": "0.2.0",
"@osdk/client.unstable.tpsa": "0.2.0",
"@osdk/create-app": "0.19.0",
"@osdk/create-app.template-packager": "0.1.0",
"@osdk/create-app.template.next-static-export": "0.19.0",
"@osdk/create-app.template.react": "0.19.0",
"@osdk/create-app.template.react.beta": "0.19.0",
"@osdk/create-app.template.tutorial-todo-aip-app": "0.19.0",
"@osdk/create-app.template.tutorial-todo-app": "0.19.0",
"@osdk/create-app.template.vue": "0.19.0",
"@osdk/e2e.generated.1.1.x": "0.3.0",
"@osdk/e2e.generated.api-namespace.dep": "1.0.0-beta.8",
"@osdk/e2e.generated.api-namespace.local": "1.0.0-beta.8",
"@osdk/e2e.generated.catchall": "3.0.0-beta.8",
"@osdk/e2e.sandbox.catchall": "0.3.0-beta.8",
"@osdk/e2e.sandbox.oauth": "0.3.0-beta.8",
"@osdk/e2e.sandbox.oauth.public.react-router": "0.1.0-beta.1",
"@osdk/e2e.sandbox.todoapp": "3.0.0-beta.8",
"@osdk/e2e.test.foundry-sdk-generator": "0.2.0",
"@osdk/example-generator": "0.8.0",
"@osdk/foundry": "2.1.0",
"@osdk/foundry.admin": "2.1.0",
"@osdk/foundry.core": "2.1.0",
"@osdk/foundry.datasets": "2.1.0",
"@osdk/foundry.filesystem": "2.1.0",
"@osdk/foundry.functions": "2.1.0",
"@osdk/foundry.ontologies": "2.1.0",
"@osdk/foundry.orchestration": "2.1.0",
"@osdk/foundry.publicapis": "2.1.0",
"@osdk/foundry.streams": "2.1.0",
"@osdk/foundry.thirdpartyapplications": "2.1.0",
"@osdk/generator": "2.0.0",
"@osdk/generator-converters": "2.0.0",
"@osdk/internal.foundry": "0.5.0",
"@osdk/internal.foundry.core": "0.2.0",
"@osdk/internal.foundry.datasets": "0.2.0",
"@osdk/internal.foundry.geo": "0.1.0",
"@osdk/internal.foundry.ontologies": "0.2.0",
"@osdk/internal.foundry.ontologiesv2": "0.2.0",
"@osdk/maker": "0.8.0",
"@osdk/monorepo.api-extractor": "0.0.0",
"@osdk/monorepo.cspell": "0.0.0",
"@osdk/monorepo.tool.attw": "0.0.0",
"@osdk/monorepo.tool.transpile": "0.0.0",
"@osdk/monorepo.tool.typecheck": "0.0.0",
"@osdk/monorepo.tsconfig": "0.0.0",
"@osdk/monorepo.tsup": "0.0.0",
"@osdk/oauth": "1.0.0",
"@osdk/platform-sdk-generator": "0.5.0",
"@osdk/shared.client": "1.0.0",
"@osdk/shared.client.impl": "1.0.0",
"@osdk/shared.net": "2.0.0",
"@osdk/shared.net.errors": "2.0.0",
"@osdk/shared.net.fetch": "1.0.0",
"@osdk/shared.net.platformapi": "0.3.0",
"@osdk/shared.test": "2.0.0",
"@osdk/tmp-foundry-sdk-generator": "2.0.0",
"@osdk/tool.release": "0.5.0",
"@osdk/version-updater": "0.0.0",
"@osdk/tests.verify-fallback-package-v2": "0.0.3"
},
"changesets": [
"curvy-cups-check",
"few-apes-visit",
"few-gifts-rule",
"green-kids-type",
"lemon-seas-fail",
"old-clouds-wink",
"orange-pigs-pretend",
"pretty-pumpkins-wave",
"selfish-moles-divide",
"selfish-suits-thank",
"smart-garlics-pretend",
"spicy-fishes-matter",
"sweet-ants-pull",
"two-geckos-care"
]
}
6 changes: 6 additions & 0 deletions .envrc.sample
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
export FOUNDRY_USER_TOKEN=
export FOUNDRY_STACK=myhost.mydomain.com
export MAVEN_CONJURE_BASE_PATH="https://somehost/basepath/internal-conjure"
export MAVEN_DIST_RELEASE="https://somehost/basepath/internal-dist-release"

export NEXT_FONT_GOOGLE_MOCKED_RESPONSES=$PWD/google-font-mocked-response.js
16 changes: 16 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
version: 2
updates:
- package-ecosystem: "npm"
directory: "/"
schedule:
interval: "daily"
groups:
typescript-eslint:
applies-to: version-updates
patterns:
- "typescript-eslint"
- "@typescript-eslint/*"
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "daily"
110 changes: 110 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,110 @@
name: CI

env:
DO_NOT_TRACK: 1

on:
push:
branches:
- main
- release/*
- next
pull_request:
types: [opened, synchronize, reopened]

jobs:
cspell:
name: Check spelling
timeout-minutes: 5
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v4
with:
fetch-depth: 0

- uses: pnpm/action-setup@v4

- name: Setup Node.js environment
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
cache: "pnpm"

- name: Install dependencies
run: pnpm install

- name: Check spelling
run: pnpm exec turbo run ci:cspell

changesets:
name: Check for changesets
if: ${{ github.event_name == 'pull_request' }}
timeout-minutes: 15
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v4
with:
fetch-depth: 0

- uses: pnpm/action-setup@v4

- name: Setup Node.js environment
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
cache: "pnpm"

- name: Install dependencies
run: pnpm install

- name: Check for changesets
run: |
git fetch origin main:main
git checkout ${GITHUB_HEAD_REF}
pnpm exec changeset status --since=main
build:
name: Build and Test
timeout-minutes: 15
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
issues: write
strategy:
matrix:
node: [18, 20, 22]

steps:
- name: Check out code
uses: actions/checkout@v4
with:
fetch-depth: 2

- uses: pnpm/action-setup@v4

- name: Setup Node.js environment
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
cache: "pnpm"

- name: Install dependencies
run: pnpm install

- name: Transpile, typecheck, Lint and test
run: pnpm check

# catches some of the examples that don't have transpile/typecheck tasks
- name: Build
run: pnpm build

- name: Verify nothing changed
run: git diff --exit-code

- name: Verify nothing added
run: u="$(git ls-files --others --exclude-standard)" && test -z "$u"

90 changes: 90 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
name: Release

env:
DO_NOT_TRACK: 1

on:
push:
branches:
- main
- release/*
- next

concurrency: ${{ github.workflow }}-${{ github.ref }}

jobs:
release:
name: Release
runs-on: ubuntu-latest
if: ${{ github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/heads/release/') }}
permissions:
contents: write
pull-requests: write
steps:
- name: Checkout Repo
uses: actions/checkout@v4

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

- name: Setup Node.js environment
uses: actions/setup-node@v4
with:
node-version: 18
registry-url: 'https://registry.npmjs.org'
cache: "pnpm"

- name: Install dependencies
run: pnpm install

- name: Publish packages
run: pnpm ci:publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: Save publish data
uses: actions/upload-artifact@v4
with:
name: published-packages
path: pnpm-publish-summary.json

# snapshot:
# name: Snapshot
# needs: release
# if: ${{ !failure() && !cancelled() }} # when none of the needed jobs fail or are cancelled (skipped or successful jobs are ok).
# runs-on: ubuntu-latest
# steps:
# - name: Checkout Repo
# uses: actions/checkout@v4

# - name: Setup PNPM
# uses: pnpm/action-setup@v4
# with:
# version: 8.7.4

# - name: Setup Node.js environment
# uses: actions/setup-node@v4
# with:
# node-version: 18
# registry-url: 'https://registry.npmjs.org'
# cache: "pnpm"

# - name: Install dependencies
# run: pnpm install

# - name: Build code
# run: pnpm exec turbo run build

# - name: Update versions for snapshots
# run: pnpm exec changeset version --snapshot ${GITHUB_REF_NAME//\//__}

# - name: Make sure code is up to date
# run: pnpm exec turbo run postVersioning

# - name: Rebuild things
# run: pnpm exec turbo run build

# - name: Publish results
# run: pnpm exec changeset publish --no-git-tag --tag next-${GITHUB_REF_NAME//\//__}
# env:
# NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
Loading

0 comments on commit 452324f

Please sign in to comment.