Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
47 changes: 0 additions & 47 deletions packages/makage/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,18 +92,6 @@ Or with recursive patterns:
"copy:all-sql": "makage copy src/**/*.sql dist/sql --flat"
```

### Watching Tests

**Before:**
```json
"test:watch": "nodemon --watch deploy --watch revert --ext sql --exec 'jest'"
```

**After:**
```json
"test:watch": "makage test --watch deploy,revert --ext sql"
```

> **Note:** For convenience, `makage assets` combines copy + footer functionality and is kept for backwards compatibility.

## Assumptions
Expand Down Expand Up @@ -254,41 +242,6 @@ Run from the monorepo root:
makage update-workspace
```

makage update-workspace
```

### `makage test [--runner <cmd>] [--watch <dirs>] [--ext <exts>] [-- <args...>]`

Runs tests using a specified runner (defaults to `jest`). Automatically switches to `nodemon` if watch directories or extensions are specified.

- Use `--runner` to specify a custom test runner (e.g., `vitest`, `node --test`)
- Use `--watch` to enable watch mode. If followed by directories (comma-separated), it uses `nodemon` to watch those directories.
- Use `--ext` to specify file extensions to watch (comma-separated). Implies `nodemon`.
- Use `--` to pass additional arguments to the runner.

```bash
# Default (runs jest)
makage test

# Watch mode (runs jest --watch)
makage test --watch

# Custom runner
makage test --runner vitest

# Watch specific directories (uses nodemon)
makage test --watch dir1,dir2

# Watch specific extensions (uses nodemon)
makage test --ext js,sql,ts

# Complex example: Watch dirs and extensions, run custom command
# Runs: nodemon --watch dir1 --watch dir2 --ext sql,js --exec "vitest --runInBand"
makage test --watch dir1,dir2 --ext sql,js --runner vitest -- --runInBand
```

### `makage update-workspace`

This will:
1. Scan all packages in the `packages/` directory
2. Identify internal package names
Expand Down
4 changes: 1 addition & 3 deletions packages/makage/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,5 @@
"test": "jest",
"test:watch": "jest --watch"
},
"dependencies": {
"nodemon": "^3.1.11"
}
"dependencies": {}
}
5 changes: 0 additions & 5 deletions packages/makage/src/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import { runAssets } from './commands/assets';
import { runBuild } from './commands/build';
import { runBuildTs } from './commands/buildTs';
import { runUpdateWorkspace } from './commands/updateWorkspace';
import { runTest } from './commands/testCommand';

const [, , cmd, ...rest] = process.argv;

Expand Down Expand Up @@ -34,9 +33,6 @@ async function main() {
case 'update-workspace':
await runUpdateWorkspace(rest);
break;
case 'test':
await runTest(rest);
break;
case '-h':
case '--help':
default:
Expand All @@ -61,7 +57,6 @@ Usage:
makage assets
makage build-ts [--dev]
makage update-workspace
makage test [--runner <cmd>] [--watch] [-- <args...>]
`);
}

Expand Down
112 changes: 0 additions & 112 deletions packages/makage/src/commands/testCommand.ts

This file was deleted.

Loading