-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: upgrade to turbo v2 and reduce ci quality gate runtime (#4324)
* chore: upgrade to turbo v2 and reduce ci quality gate runtime * chore: upgrade to yarn v4 and deprecate turborepo * chore: reconfigure modules and fix tests * chore: switch to github-hosted runner * fix: dependency resolving * chore: clean redundant step * chore: headless test * chore: remove headed param * fix: resolve dependency version * fix: ubuntu no-sandbox test --------- Co-authored-by: Hien To <[email protected]> Co-authored-by: Louis <[email protected]>
- Loading branch information
1 parent
da4336c
commit bd0e525
Showing
48 changed files
with
30,330 additions
and
299 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: Publish plugin models Package to npmjs | ||
name: Publish core Package to npmjs | ||
on: | ||
push: | ||
tags: ["v[0-9]+.[0-9]+.[0-9]+-core"] | ||
|
@@ -45,7 +45,7 @@ jobs: | |
node-version: "20.x" | ||
registry-url: "https://registry.npmjs.org" | ||
|
||
- run: cd core && yarn install && yarn build | ||
- run: cd core && corepack enable && corepack prepare [email protected] --activate && yarn --version && yarn install && yarn build | ||
|
||
- run: cd core && yarn publish --access public | ||
if: github.event_name == 'push' | ||
|
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: Publish plugin models Package to npmjs | ||
name: Publish joi Package to npmjs | ||
on: | ||
push: | ||
tags: ["v[0-9]+.[0-9]+.[0-9]+-joi"] | ||
|
@@ -45,7 +45,7 @@ jobs: | |
node-version: "20.x" | ||
registry-url: "https://registry.npmjs.org" | ||
|
||
- run: cd joi && yarn install && yarn build | ||
- run: cd joi && corepack enable && corepack prepare [email protected] --activate && yarn --version && yarn install && yarn build | ||
|
||
- run: cd joi && yarn publish --access public | ||
if: github.event_name == 'push' | ||
|
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,3 @@ | ||
nmHoistingLimits: workspaces | ||
nodeLinker: node-modules | ||
checksumBehavior: update |
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 |
---|---|---|
|
@@ -10,20 +10,23 @@ REPORT_PORTAL_DESCRIPTION ?= "Jan App report" | |
all: | ||
@echo "Specify a target to run" | ||
|
||
# Config yarn version | ||
|
||
config-yarn: | ||
corepack enable | ||
corepack prepare [email protected] --activate | ||
yarn --version | ||
yarn config set -H enableImmutableInstalls false | ||
|
||
# Builds the UI kit | ||
build-joi: | ||
ifeq ($(OS),Windows_NT) | ||
cd joi && yarn config set network-timeout 300000 && yarn install && yarn build | ||
else | ||
build-joi: config-yarn | ||
cd joi && yarn install && yarn build | ||
endif | ||
|
||
# Installs yarn dependencies and builds core and extensions | ||
install-and-build: build-joi | ||
ifeq ($(OS),Windows_NT) | ||
yarn config set network-timeout 300000 | ||
echo "skip" | ||
endif | ||
yarn global add [email protected] | ||
yarn build:core | ||
yarn build:server | ||
yarn install | ||
|
@@ -117,9 +120,8 @@ build: check-file-counts | |
|
||
clean: | ||
ifeq ($(OS),Windows_NT) | ||
-powershell -Command "Get-ChildItem -Path . -Include node_modules, .next, dist, build, out, .turbo -Recurse -Directory | Remove-Item -Recurse -Force" | ||
-powershell -Command "Get-ChildItem -Path . -Include package-lock.json -Recurse -File | Remove-Item -Recurse -Force" | ||
-powershell -Command "Get-ChildItem -Path . -Include yarn.lock -Recurse -File | Remove-Item -Recurse -Force" | ||
-powershell -Command "Get-ChildItem -Path . -Include node_modules, .next, dist, build, out, .turbo, .yarn -Recurse -Directory | Remove-Item -Recurse -Force" | ||
-powershell -Command "Get-ChildItem -Path . -Include package-lock.json, tsconfig.tsbuildinfo -Recurse -File | Remove-Item -Recurse -Force" | ||
-powershell -Command "Remove-Item -Recurse -Force ./pre-install/*.tgz" | ||
-powershell -Command "Remove-Item -Recurse -Force ./extensions/*/*.tgz" | ||
-powershell -Command "Remove-Item -Recurse -Force ./electron/pre-install/*.tgz" | ||
|
@@ -131,8 +133,8 @@ else ifeq ($(shell uname -s),Linux) | |
find . -name "build" -type d -exec rm -rf '{}' + | ||
find . -name "out" -type d -exec rm -rf '{}' + | ||
find . -name ".turbo" -type d -exec rm -rf '{}' + | ||
find . -name ".yarn" -type d -exec rm -rf '{}' + | ||
find . -name "packake-lock.json" -type f -exec rm -rf '{}' + | ||
find . -name "yarn.lock" -type f -exec rm -rf '{}' + | ||
find . -name "package-lock.json" -type f -exec rm -rf '{}' + | ||
rm -rf ./pre-install/*.tgz | ||
rm -rf ./extensions/*/*.tgz | ||
|
@@ -146,8 +148,8 @@ else | |
find . -name "build" -type d -exec rm -rf '{}' + | ||
find . -name "out" -type d -exec rm -rf '{}' + | ||
find . -name ".turbo" -type d -exec rm -rf '{}' + | ||
find . -name ".yarn" -type d -exec rm -rf '{}' + | ||
find . -name "package-lock.json" -type f -exec rm -rf '{}' + | ||
find . -name "yarn.lock" -type f -exec rm -rf '{}' + | ||
rm -rf ./pre-install/*.tgz | ||
rm -rf ./extensions/*/*.tgz | ||
rm -rf ./electron/pre-install/*.tgz | ||
|
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 |
---|---|---|
|
@@ -8,8 +8,9 @@ | |
], | ||
"homepage": "https://jan.ai", | ||
"license": "AGPL-3.0", | ||
"browser": "dist/core.es5.js", | ||
"main": "dist/core.es5.js", | ||
"module": "dist/core.cjs.js", | ||
"module": "dist/index.cjs.js", | ||
"typings": "dist/types/index.d.ts", | ||
"files": [ | ||
"dist", | ||
|
@@ -36,18 +37,24 @@ | |
"lint": "tslint --project tsconfig.json -t codeFrame 'src/**/*.ts' 'test/**/*.ts'", | ||
"test": "jest", | ||
"prebuild": "rimraf dist", | ||
"build": "tsc --module commonjs && rollup -c rollup.config.ts", | ||
"start": "rollup -c rollup.config.ts -w" | ||
"build": "rollup -c rollup.config.ts" | ||
}, | ||
"devDependencies": { | ||
"@npmcli/arborist": "^9.0.0", | ||
"@rollup/plugin-replace": "^5.0.5", | ||
"@types/jest": "^29.5.12", | ||
"@types/node": "^20.11.4", | ||
"@types/jest": "^29.5.14", | ||
"@types/node": "^22.10.0", | ||
"@types/pacote": "^11.1.8", | ||
"@types/request": "^2.48.12", | ||
"electron": "33.2.1", | ||
"eslint": "8.57.0", | ||
"eslint-plugin-jest": "^27.9.0", | ||
"jest": "^29.7.0", | ||
"jest-junit": "^16.0.0", | ||
"jest-runner": "^29.7.0", | ||
"pacote": "^21.0.0", | ||
"request": "^2.88.2", | ||
"request-progress": "^3.0.0", | ||
"rimraf": "^3.0.2", | ||
"rollup": "^2.38.5", | ||
"rollup-plugin-commonjs": "^9.1.8", | ||
|
@@ -62,5 +69,6 @@ | |
"dependencies": { | ||
"rxjs": "^7.8.1", | ||
"ulidx": "^2.3.0" | ||
} | ||
}, | ||
"packageManager": "[email protected]" | ||
} |
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
Oops, something went wrong.