From 1eb376a1859a9068da60a0ca1725cff1d87531d5 Mon Sep 17 00:00:00 2001 From: Daniel LaCosse <3759828+daniellacosse@users.noreply.github.com> Date: Thu, 10 Aug 2023 15:25:51 -0400 Subject: [PATCH] bare bones cli --- .github/workflows/build_and_test_debug.yml | 20 ++++++++++---------- .github/workflows/pull_request_checks.yml | 4 ++-- outline_apps | 13 ++++++++++++- 3 files changed, 24 insertions(+), 13 deletions(-) mode change 100644 => 100755 outline_apps diff --git a/.github/workflows/build_and_test_debug.yml b/.github/workflows/build_and_test_debug.yml index 60885af72d..f298cb0da0 100644 --- a/.github/workflows/build_and_test_debug.yml +++ b/.github/workflows/build_and_test_debug.yml @@ -32,13 +32,13 @@ jobs: run: cd outline_client && npm ci - name: Run Linter - run: cd outline_client && npm run action lint + run: ./outline_apps outline_client lint - name: Build Web App - run: cd outline_client && npm run action www/build + run: ./outline_apps outline_client www/build - name: Test Web App - run: cd outline_client && npm run action www/test + run: ./outline_apps outline_client www/test - uses: codecov/codecov-action@v3 with: @@ -64,7 +64,7 @@ jobs: run: cd outline_client && npm ci - name: Build Linux Client - run: cd outline_client && npm run action electron/build linux + run: ./outline_apps outline_client electron/build linux windows_debug_build: name: Windows Debug Build @@ -88,7 +88,7 @@ jobs: run: cd outline_client && npm ci - name: Build Windows Client - run: cd outline_client && npm run action electron/build windows + run: ./outline_apps outline_client electron/build windows macos_debug_build: name: MacOS Debug Build @@ -112,10 +112,10 @@ jobs: run: cd outline_client && npm ci - name: Test OutlineAppleLib - run: cd outline_client && npm run action cordova/test macos + run: ./outline_apps outline_client cordova/test macos - name: Build MacOS Client - run: cd outline_client && npm run action cordova/build macos + run: ./outline_apps outline_client cordova/build macos - uses: codecov/codecov-action@v3 with: @@ -145,10 +145,10 @@ jobs: run: cd outline_client && npm ci - name: Test OutlineAppleLib - run: cd outline_client && npm run action cordova/test ios + run: ./outline_apps outline_client cordova/test ios - name: Build iOS Client - run: cd outline_client && npm run action cordova/build ios + run: ./outline_apps outline_client cordova/build ios - uses: codecov/codecov-action@v3 with: @@ -183,4 +183,4 @@ jobs: run: bash ./outline_client/tools/build/setup_linux_android.sh - name: Build Android Client - run: cd outline_client && npm run action cordova/build android -- --verbose + run: ./outline_apps outline_client cordova/build android -- --verbose diff --git a/.github/workflows/pull_request_checks.yml b/.github/workflows/pull_request_checks.yml index f093e2f810..5b4e187f81 100644 --- a/.github/workflows/pull_request_checks.yml +++ b/.github/workflows/pull_request_checks.yml @@ -36,8 +36,8 @@ jobs: - name: Ensure Commitizen Format uses: JulienKode/pull-request-name-linter-action@98794a8b815ec05560813c42e55fd8d32d3fd248 - widh: - config: ./outline_client/commitlint.config.js + with: + configuration-path: ./outline_client/commitlint.config.js size_label: name: Change Size Label diff --git a/outline_apps b/outline_apps old mode 100644 new mode 100755 index 2a5cd2b138..b506f18795 --- a/outline_apps +++ b/outline_apps @@ -1 +1,12 @@ -TODO: cli for working with the different workspaces in this repo \ No newline at end of file +#!/usr/bin/env node --trace-uncaught + +// TODO: cli to interact with different workspaces. bare bones for now +const childProcess = require("child_process"); + +const [cwd, ...args] = process.argv.slice(2); + +childProcess.execSync(`npm run action ${args.join(' ')}`, { + cwd, + env: process.env, + stdio: "inherit" +});