Skip to content

Commit

Permalink
5 extensions added and ready. CI set up. (#1)
Browse files Browse the repository at this point in the history
* Move extensions and templates from Jarvis main repo to this

* Disable CI

* Enable overlay for my ip extension

* Migrate qrcode from sveltekit to svelte, to fix multi page. Also supported overlay title bar style

* Improve twitter video downloader

* Clean vue ext template

* Remove youtube ext

* Update @jarvis/api-ui to @jarvis/api/ui

* Change @jarvis/api to jarvis-api, because @jarvis is not available on npm

* Migrate jarvis.ext.json to package.json

* move jarvis-api version from workspace:* to latest

* Add build.sh and entrypoint.sh for building and packing packages

* Turn this repo into  a turbo mono repo with pnpm, enable CI

* Fix a package name bug

* Add files field in package.json to reduce bundle size. Include docker build CI

* Add ext json schema to all package.json

* Remove inlineCmds from package.json

* Use tauri http client

* Fix myip identifier

* Update schema url

* chore: Add ci for extension build and upload

* Run prettier to format all

* Add CI

* Disable upload CI for PR

* chore: Update workflow name to reflect extension upload

* chore: Update branch filter in upload-extensions workflow

* Fix duplicate extension skip upload bug

* Improve extension build and upload efficiency

* Run CI to upload extensions

* chore: Update upload-extensions workflow to install dependencies with pnpm

* chore: Update build-upload script to use a single Docker build process. Fix S3 Client

* Increase docker build pool size

* Change My IP extension name

* Update pnpm lock

* chore: Remove commented out code in Search.svelte

* Add demo images upload support

* chore: Update QRCode component with improved links

* Update Extension package.json to follow new schema

* Update build and upload code to work with latest DB design

* Update according to new schema

* Fix package.json format

* Fix typo

* Add git-skyline model extension

* Fix CI

* Add permission declaration to extensions

* chore: Update jarvis-api dependency to version 0.0.2-alpha.7

* chore: Update jarvis-api dependency to version 0.0.2-alpha.8

* Update jarvis-api dependency to version 0.0.2-alpha.8

* Fix UI display issue for twitter downloader and git-skyline

---------

Co-authored-by: Huakun Shen <huaukun.shen@huakunshen.com>
  • Loading branch information
HuakunShen and Huakun Shen committed May 31, 2024
1 parent 8a10a9c commit 8d85c8b
Show file tree
Hide file tree
Showing 464 changed files with 35,773 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
github: [HuakunShen]
29 changes: 29 additions & 0 deletions .github/workflows/ci-pack.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: CI Build and Pack

on:
push:
branches: ["main", "dev"]
pull_request:
branches: ["main"]
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [20.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/

steps:
- uses: actions/checkout@v4
with:
submodules: "true"
- uses: pnpm/action-setup@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: "pnpm"
- run: npm run build:docker
30 changes: 30 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: CI Build & Test

on:
push:
branches: ["main", "dev"]
pull_request:
branches: ["main"]
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [20.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/

steps:
- uses: actions/checkout@v4
with:
submodules: "true"
- uses: pnpm/action-setup@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: "pnpm"
- run: pnpm i
- run: pnpm build
34 changes: 34 additions & 0 deletions .github/workflows/upload-extensions.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: CI Build & Upload Extensions

on:
push:
branches: ["main", "dev"]
workflow_dispatch:

jobs:
upload-extensions:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: "true"
- uses: pnpm/action-setup@v4
- name: Use Node.js 20.x
uses: actions/setup-node@v3
with:
node-version: 20.x
cache: "pnpm"
- uses: oven-sh/setup-bun@v1
with:
bun-version: 1.1.10
- run: pnpm i
- name: Docker Build and Uplad Extensions
env:
SUPABASE_PROJECT_REF: ${{ secrets.SUPABASE_PROJECT_REF }}
SUPABASE_URL: ${{ secrets.SUPABASE_URL }}
SUPABASE_SERVICE_ROLE_KEY: ${{ secrets.SUPABASE_SERVICE_ROLE_KEY }}
S3_ENDPOINT: ${{ secrets.S3_ENDPOINT }}
S3_ACCESS_KEY_ID: ${{ secrets.S3_ACCESS_KEY_ID }}
S3_SECRET_ACCESS_KEY: ${{ secrets.S3_SECRET_ACCESS_KEY }}
run: |
pnpm --filter ci build-upload
177 changes: 177 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,177 @@
# Based on https://raw.githubusercontent.com/github/gitignore/main/Node.gitignore

# Logs

logs
_.log
npm-debug.log_
yarn-debug.log*
yarn-error.log*
lerna-debug.log*
.pnpm-debug.log*

# Caches

.cache

# Diagnostic reports (https://nodejs.org/api/report.html)

report.[0-9]_.[0-9]_.[0-9]_.[0-9]_.json

# Runtime data

pids
_.pid
_.seed
*.pid.lock

# Directory for instrumented libs generated by jscoverage/JSCover

lib-cov

# Coverage directory used by tools like istanbul

coverage
*.lcov

# nyc test coverage

.nyc_output

# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)

.grunt

# Bower dependency directory (https://bower.io/)

bower_components

# node-waf configuration

.lock-wscript

# Compiled binary addons (https://nodejs.org/api/addons.html)

build/Release

# Dependency directories

node_modules/
jspm_packages/

# Snowpack dependency directory (https://snowpack.dev/)

web_modules/

# TypeScript cache

*.tsbuildinfo

# Optional npm cache directory

.npm

# Optional eslint cache

.eslintcache

# Optional stylelint cache

.stylelintcache

# Microbundle cache

.rpt2_cache/
.rts2_cache_cjs/
.rts2_cache_es/
.rts2_cache_umd/

# Optional REPL history

.node_repl_history

# Output of 'npm pack'

*.tgz

# Yarn Integrity file

.yarn-integrity

# dotenv environment variable files

.env
.env.development.local
.env.test.local
.env.production.local
.env.local

# parcel-bundler cache (https://parceljs.org/)

.parcel-cache

# Next.js build output

.next
out

# Nuxt.js build / generate output

.nuxt
dist

# Gatsby files

# Comment in the public line in if your project uses Gatsby and not Next.js

# https://nextjs.org/blog/next-9-1#public-directory-support

# public

# vuepress build output

.vuepress/dist

# vuepress v2.x temp and cache directory

.temp

# Docusaurus cache and generated files

.docusaurus

# Serverless directories

.serverless/

# FuseBox cache

.fusebox/

# DynamoDB Local files

.dynamodb/

# TernJS port file

.tern-port

# Stores VSCode versions used for testing VSCode extensions

.vscode-test

# yarn v2

.yarn/cache
.yarn/unplugged
.yarn/build-state.yml
.yarn/install-state.gz
.pnp.*

# IntelliJ based IDEs
.idea

# Finder (MacOS) folder config
.DS_Store
.turbo
.vscode
Loading

0 comments on commit 8d85c8b

Please sign in to comment.