mono_repo 1.0.0
mono_repo: ^1.0.0 copied to clipboard
Manage repositories with multiple Dart packages
1.0.0 #
- Add support for configuring top-level Travis options via
mono_repo.yaml.
BREAKING CHANGES
-
The root
mono_config.yamlfile is no longer used to configure which packages are configured. Instead,mono_pkg.yamlis required to be in each target package directory. A package is considered published if it has a value forversioninpubspec.yaml. -
The package configuration file is now
mono_pkg.yaml. If a legacy config file –.mono_repo.yml– is found, the command is canceled and a warning is printed telling the user to rename the file. -
Removed the
initcommand.
0.3.3 #
- Support adding custom cache directories in each project.
- Add custom names for travis jobs based on the actual tasks being ran, as well
as the sdk and subdirectory. The job description portion is configurable with
the new
descriptionkey for jobs within a stage, for example:
stages:
- unit_test:
- description: "chrome"
test: -p chrome
0.3.2+1 #
- Support Dart 2 stable.
0.3.2 #
- Support dependencies that specify an SDK – common with Flutter.
- Require at least Dart 2.0.0-dev.54.
pubcommand now runs with inherited standard IO. You now see colors!- Improved error output with bad configuration.
0.3.1 #
New Features #
-
Added support for the
grouptask, which accepts a list of tasks using the normal format. This can be used to group multiple tasks in a single travis job. All tasks will be ran, but if any of them fail then the whole job will fail.Example usage combining the analyzer/dartfmt tasks:
stages:
- analyze_and_format:
- group:
- dartanalyzer
- dartfmt
0.3.0 #
Breaking Changes #
- Sub-package
.travis.ymlfiles should be replaced with.mono_repo.ymlfiles, which are a simplified format that supports travis build stages. A basic example file might look like this:
# List of the sdk versions you support
dart:
- dev
- stable
# Ordered list of all stages you want to run.
stages:
# A single stage, called `analyze_and_format` which runs the analyzer and
# the formatter only.
- analyze_and_format:
- dartanalyzer: --hints-as-warnings .
- dartfmt: sdk
dart:
- dev # Overrides the top level sdk default
# Assuming everything analyzed correctly, runs a build.
- build:
- command: "pub run build_runner build"
# And finally run tests, these are custom build_runner tests but the regular
# `test` task is also supported.
- unit_test:
- command: "pub run build_runner test"
- command: "pub run build_runner test -- -p chrome"
0.2.2 #
-
traviscommand-
Make numbering more consistent and clean when there is more than one task with a given name.
-
Print out the full command that executed as part of a task.
-
Support a
Listvalue forbefore_script.
-
0.2.1 #
-
traviscommand-
Write ANSI escape sequences in
./tool/travis.shas pre-escaped ASCII literals. -
Added
--[no-]pretty-ansiflag to allow ANSI sequences to be optionally omitted.
-
0.2.0 #
-
Add
before_scriptsupport to thetraviscommand. When that value is set in atravis.ymlfile, we will call the script before running any of the tasks for that package. -
Add
recursiveglobal flag. When set, we will walk all sub-directories looking forpubspec.yamlfiles. -
Support git dependencies in packages.
-
Use
mono_repo.yamlas the configuration file name, instead ofpackages.yaml.
0.1.0 #
- Initial release.