-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
all[chore]: Use turbo repo to build api refs, docs and more (#3511)
* api_refs[chore]: use turbo repo to build api refs and other dependencies * update core docs to also use turbo * cr * use turbo in ci * cr * chore: lint files * cr
- Loading branch information
1 parent
db5f920
commit f289f3d
Showing
12 changed files
with
146 additions
and
113 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{ | ||
"$schema": "https://turbo.build/schema.json", | ||
"extends": ["//"], | ||
"pipeline": { | ||
"build:scripts": { | ||
"outputs": ["public/**"], | ||
"dependsOn": [ | ||
"@langchain/openai#build", | ||
"@langchain/anthropic#build", | ||
"langchain#build" | ||
] | ||
}, | ||
"build:next": { | ||
"outputs": [".next/**", ".vercel/**"], | ||
"dependsOn": ["build:scripts"] | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"$schema": "https://turbo.build/schema.json", | ||
"extends": ["//"], | ||
"pipeline": { | ||
"rimraf:build": { | ||
"dependsOn": ["@langchain/api_refs#build"] | ||
}, | ||
"build:docusaurus": { | ||
"outputs": [".docusaurus/**", "build/**"], | ||
"dependsOn": ["rimraf:build"] | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,12 +19,12 @@ | |
"packageManager": "[email protected]", | ||
"scripts": { | ||
"build": "turbo run build --filter=\"!test-exports-*\" --concurrency 1", | ||
"build:deps": "yarn workspace @langchain/core build && yarn workspace @langchain/anthropic build && yarn workspace @langchain/openai build", | ||
"build:deps": "yarn build --filter=@langchain/openai --filter=@langchain/anthropic --filter=@langchain/core", | ||
"format": "turbo run format", | ||
"format:check": "turbo run format:check", | ||
"lint": "turbo run lint --concurrency 1", | ||
"lint:fix": "yarn lint -- --fix", | ||
"test": "yarn test:unit && yarn workspace @langchain/core build && yarn workspace langchain build && yarn test:exports:docker", | ||
"test": "yarn test:unit && yarn build --filter=langchain && yarn test:exports:docker", | ||
"test:unit": "turbo run test --filter @langchain/core --filter langchain", | ||
"test:int": "yarn run test:int:deps && turbo run test:integration ; yarn run test:int:deps:down", | ||
"test:int:deps": "docker compose -f test-int-deps-docker-compose.yml up -d", | ||
|
@@ -34,8 +34,8 @@ | |
"publish:core": "bash langchain/scripts/release-branch.sh && turbo run --filter @langchain/core build lint test --concurrency 1 && yarn run test:exports:docker && yarn workspace @langchain/core run release && echo 'π Open https://github.com/langchain-ai/langchainjs/compare/release?expand=1 and merge the release PR'", | ||
"example": "yarn workspace examples start", | ||
"precommit": "turbo run precommit", | ||
"docs": "yarn workspace core_docs start", | ||
"docs:api_refs": "yarn workspace api_refs start" | ||
"docs": "yarn workspace @langchain/core_docs start", | ||
"docs:api_refs": "yarn workspace @langchain/api_refs start" | ||
}, | ||
"author": "LangChain", | ||
"license": "MIT", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
f289f3d
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
langchainjs-api-refs β ./docs/api_refs
langchainjs-api-refs-git-main-langchain.vercel.app
langchainjs-api-docs.vercel.app
langchainjs-api-refs-langchain.vercel.app
api.js.langchain.com
f289f3d
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
langchainjs-docs β ./docs/core_docs/
langchainjs-docs-git-main-langchain.vercel.app
js.langchain.com
langchainjs-docs-langchain.vercel.app
langchainjs-docs-ruddy.vercel.app