-
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.
Merge branch 'chore/update-jan-docs' of https://github.com/janhq/jan …
…into chore/update-jan-docs
- Loading branch information
Showing
175 changed files
with
39,832 additions
and
1,985 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,23 +10,23 @@ REPORT_PORTAL_DESCRIPTION ?= "Jan App report" | |
all: | ||
@echo "Specify a target to run" | ||
|
||
# Builds the UI kit | ||
build-joi: | ||
ifeq ($(OS),Windows_NT) | ||
cd joi && yarn config set network-timeout 300000 && yarn install && yarn build | ||
else | ||
cd joi && yarn install && yarn build | ||
endif | ||
# Config yarn version | ||
|
||
config-yarn: | ||
corepack enable | ||
corepack prepare [email protected] --activate | ||
yarn --version | ||
yarn config set -H enableImmutableInstalls false | ||
|
||
# Installs yarn dependencies and builds core and extensions | ||
install-and-build: build-joi | ||
install-and-build: config-yarn | ||
ifeq ($(OS),Windows_NT) | ||
yarn config set network-timeout 300000 | ||
echo "skip" | ||
endif | ||
yarn global add [email protected] | ||
yarn install | ||
yarn build:joi | ||
yarn build:core | ||
yarn build:server | ||
yarn install | ||
yarn build:extensions | ||
|
||
check-file-counts: install-and-build | ||
|
@@ -117,9 +117,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 +130,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 +145,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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
[Desktop Entry] | ||
Name=Jan | ||
Comment=Local AI Assistant that runs 100% offline | ||
Exec=run.sh | ||
Icon=ai.menlo.jan | ||
Type=Application | ||
Categories=Development; | ||
Keywords=AI;Assistant;LLM;ChatGPT;Local;Offline; | ||
StartupNotify=true |
Oops, something went wrong.