refactor(repo): add /tooling folder (#1457)

This commit is contained in:
Lucas Fernandes Nogueira
2021-04-12 01:59:25 -03:00
committed by GitHub
parent a6def7066e
commit aea614587b
242 changed files with 159 additions and 6315 deletions

View File

@@ -8,8 +8,8 @@ on:
paths:
- '.github/workflows/artifacts-updater.yml'
- 'core/tauri/**'
- 'cli/core/**'
- 'cli/tauri-bundler/**'
- 'tooling/cli.rs/**'
- 'tooling/bundler/**'
- 'examples/updater/**'
jobs:
@@ -32,18 +32,18 @@ jobs:
run: |
sudo apt-get update
sudo apt-get install -y webkit2gtk-4.0
- run: cargo install --path ./cli/core --force
- run: cargo install --path ./tooling/cli.rs --force
- name: install cli deps via yarn
working-directory: ./cli/tauri.js
working-directory: ./tooling/cli.js
run: yarn
- name: build cli
working-directory: ./cli/tauri.js
working-directory: ./tooling/cli.js
run: yarn build
- name: build sample artifacts (updater)
working-directory: ./examples/updater
run: |
yarn install
node ../../cli/tauri.js/bin/tauri build
node ../../tooling/cli.js/bin/tauri build
env:
TAURI_PRIVATE_KEY: dW50cnVzdGVkIGNvbW1lbnQ6IHJzaWduIGVuY3J5cHRlZCBzZWNyZXQga2V5ClJXUlRZMEl5YTBGV3JiTy9lRDZVd3NkL0RoQ1htZmExNDd3RmJaNmRMT1ZGVjczWTBKZ0FBQkFBQUFBQUFBQUFBQUlBQUFBQWdMekUzVkE4K0tWQ1hjeGt1Vkx2QnRUR3pzQjVuV0ZpM2czWXNkRm9hVUxrVnB6TUN3K1NheHJMREhQbUVWVFZRK3NIL1VsMDBHNW5ET1EzQno0UStSb21nRW4vZlpTaXIwZFh5ZmRlL1lSN0dKcHdyOUVPclVvdzFhVkxDVnZrbHM2T1o4Tk1NWEU9Cg==
- uses: actions/upload-artifact@v2

View File

@@ -30,5 +30,5 @@ jobs:
steps:
- uses: actions/checkout@v2
- name: yarn audit
working-directory: cli/tauri.js
working-directory: tooling/cli.js
run: yarn audit

View File

@@ -71,10 +71,10 @@ jobs:
sudo apt-get update
sudo apt-get install -y webkit2gtk-4.0
- name: yarn install for cli
working-directory: tauri/cli/tauri.js
working-directory: tauri/tooling/cli.js
run: yarn
- name: build tauri.js
working-directory: tauri/cli/tauri.js
- name: build cli.js
working-directory: tauri/tooling/cli.js
run: |
yarn build-release
yarn global add $PWD

View File

@@ -10,7 +10,7 @@ on:
- '.github/workflows/core-lint-fmt.yml'
- 'core/**'
- 'examples/**'
- 'cli/core/**'
- 'tooling/cli.rs/**'
jobs:
workspace_clippy_fmt_check:
@@ -48,7 +48,7 @@ jobs:
- uses: actions-rs/clippy-check@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
args: --manifest-path ./cli/core/Cargo.toml --all-targets --all-features -- -D warnings
args: --manifest-path ./tooling/cli.rs/Cargo.toml --all-targets --all-features -- -D warnings
name: cli
- uses: actions-rs/toolchain@v1
with:
@@ -59,7 +59,7 @@ jobs:
- uses: actions-rs/cargo@v1
with:
command: fmt
args: --manifest-path ./cli/core/Cargo.toml --all -- --check
args: --manifest-path ./tooling/cli.rs/Cargo.toml --all -- --check
core_clippy_check:
runs-on: ubuntu-latest

View File

@@ -106,8 +106,8 @@ jobs:
fail-fast: false
matrix:
package:
- name: tauri.js
registryName: tauri
- name: cli.js
registryName: \@tauri-apps/cli
- name: tauri-bundler
registryName: tauri-bundler
- name: tauri-utils

View File

@@ -8,7 +8,7 @@ on:
pull_request:
paths:
- '.github/workflows/js-lint.yml'
- 'cli/tauri.js/**'
- 'tooling/cli.js/**'
jobs:
eslint-check:
@@ -19,11 +19,11 @@ jobs:
with:
node-version: '12'
- name: install deps via yarn
working-directory: ./cli/tauri.js/
working-directory: ./tooling/cli.js/
run: yarn
- name: run eslint
working-directory: ./cli/tauri.js/
working-directory: ./tooling/cli.js/
run: yarn lint
- name: run prettier
working-directory: ./cli/tauri.js/
working-directory: ./tooling/cli.js/
run: yarn format:check

View File

@@ -8,7 +8,7 @@ on:
pull_request:
paths:
- '.github/workflows/test-bundler.yml'
- 'cli/tauri-bundler/**'
- 'tooling/bundler/**'
env:
RUST_BACKTRACE: 1
@@ -34,7 +34,7 @@ jobs:
sudo apt-get install -y webkit2gtk-4.0
- name: test
run: |
cd ./cli/tauri-bundler
cd ./tooling/bundler
cargo test
clippy-fmt-check:
@@ -52,7 +52,7 @@ jobs:
uses: actions-rs/clippy-check@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
args: --manifest-path ./cli/tauri-bundler/Cargo.toml --all-targets -- -D warnings
args: --manifest-path ./tooling/bundler/Cargo.toml --all-targets -- -D warnings
name: bundler
- name: install rustfmt
uses: actions-rs/toolchain@v1
@@ -65,4 +65,4 @@ jobs:
uses: actions-rs/cargo@v1
with:
command: fmt
args: --manifest-path ./cli/tauri-bundler/Cargo.toml --all -- --check
args: --manifest-path ./tooling/bundler/Cargo.toml --all -- --check

View File

@@ -55,13 +55,13 @@ jobs:
toolchain: stable
override: true
- name: build api
working-directory: ./api
working-directory: ./tooling/api
run: yarn && yarn build
- name: build CLI
uses: actions-rs/cargo@v1
with:
command: build
args: --manifest-path ./cli/core/Cargo.toml
args: --manifest-path ./tooling/cli.rs/Cargo.toml
test-tauri-js-cli:
runs-on: ${{ matrix.platform }}
@@ -81,10 +81,10 @@ jobs:
- name: test
timeout-minutes: 30
run: |
cd ./cli/tauri.js
cd ./tooling/cli.js
yarn
yarn test
- name: run release build
timeout-minutes: 15
working-directory: cli/tauri.js
working-directory: tooling/cli.js
run: yarn build-release

View File

@@ -9,8 +9,8 @@ on:
paths:
- '.github/workflows/udeps.yml'
- 'core/**'
- 'cli/tauri-bundler/**'
- 'cli/core/**'
- 'tooling/bundler/**'
- 'tooling/cli.rs/**'
jobs:
udeps:
@@ -45,13 +45,13 @@ jobs:
- name: Cache bundler cargo target
uses: actions/cache@v2
with:
path: cli/tauri-bundler/target
path: tooling/bundler/target
key: ubuntu-latest-nightly-cargo-build-bundler-target-${{ hashFiles('**/Cargo.toml') }}
- name: Cache CLI cargo target
uses: actions/cache@v2
with:
path: cli/core/target
path: tooling/cli.rs/target
key: ubuntu-latest-nightly-cargo-build-cli-target-${{ hashFiles('**/Cargo.toml') }}
- uses: actions-rs/cargo@v1
@@ -72,9 +72,9 @@ jobs:
- uses: actions-rs/cargo@v1
with:
command: udeps
args: --manifest-path ./cli/tauri-bundler/Cargo.toml --all-targets --all-features
args: --manifest-path ./tooling/bundler/Cargo.toml --all-targets --all-features
- uses: actions-rs/cargo@v1
with:
command: udeps
args: --manifest-path ./cli/core/Cargo.toml --all-targets --all-features
args: --manifest-path ./tooling/cli.rs/Cargo.toml --all-targets --all-features

View File

@@ -47,7 +47,7 @@ jobs:
- name: run typedocusaurus
uses: tauri-apps/typedocusaurus/github-action@v1
with:
originPath: ./tauri/api/
originPath: ./tauri/tooling/api/
sidebarFile: sidebars.json
targetPath: en/api/js
docusaurusPath: ./tauri-docs/