-
Notifications
You must be signed in to change notification settings - Fork 87
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor build.dart into separate project.
- Loading branch information
Showing
9 changed files
with
74 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
## 1.0.0 | ||
|
||
- Initial version. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# dev | ||
A cli helper tool for realm_dart development | ||
|
||
## Install | ||
Either run `melos setup` or change to the directory of this README, then: | ||
```shell | ||
dart pub global activate --source path . | ||
``` | ||
As for all dart tools ensure that `~/.pub_cache/bin` is in your path |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../../analysis_options.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
// Copyright 2024 MongoDB, Inc. | ||
// SPDX-License-Identifier: Apache-2.0 | ||
|
||
import 'package:dev/dev.dart' as dev; | ||
|
||
void main(List<String> arguments) => dev.main(arguments); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
// Copyright 2024 MongoDB, Inc. | ||
// SPDX-License-Identifier: Apache-2.0 | ||
|
||
import 'dart:io' as io; | ||
|
||
import 'package:args/command_runner.dart'; | ||
|
||
import 'src/build.dart'; | ||
|
||
Future<void> main(List<String> arguments) async { | ||
final runner = CommandRunner<int>('dev', 'Helper tool for building realm_dart') | ||
..addCommand(BuildNativeCommand()) | ||
..addCommand(PossibleTargets()) | ||
..argParser.addFlag('verbose', abbr: 'v', help: 'Print verbose output', defaultsTo: false); | ||
try { | ||
final exitCode = await runner.run(arguments); | ||
io.exit(exitCode ?? 0); | ||
} on UsageException catch (error) { | ||
logger.err('$error'); | ||
io.exit(64); // Exit code 64 indicates a usage error. | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
name: dev | ||
description: A sample command-line application. | ||
version: 1.0.0 | ||
|
||
publish_to: none | ||
|
||
environment: | ||
sdk: ^3.3.1 | ||
|
||
dependencies: | ||
args: ^2.4.2 | ||
async: ^2.11.0 | ||
collection: ^1.18.0 | ||
mason_logger: ^0.2.12 | ||
|
||
dev_dependencies: | ||
lints: ^3.0.0 | ||
test: ^1.24.0 | ||
|
||
executables: | ||
dev: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters