Skip to content

Commit

Permalink
bare bones cli
Browse files Browse the repository at this point in the history
  • Loading branch information
daniellacosse committed Aug 10, 2023
1 parent 6939714 commit 1eb376a
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 13 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/build_and_test_debug.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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:
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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
4 changes: 2 additions & 2 deletions .github/workflows/pull_request_checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
13 changes: 12 additions & 1 deletion outline_apps
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1 +1,12 @@
TODO: cli for working with the different workspaces in this repo
#!/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"
});

0 comments on commit 1eb376a

Please sign in to comment.