mirror of https://github.com/AMT-Cheif/drift.git
Prepare moor 4.6.0 release
This commit is contained in:
parent
3cc17b0a45
commit
7d41e42c78
|
@ -1,6 +1,6 @@
|
||||||
---
|
---
|
||||||
name: Bug report
|
name: Bug report
|
||||||
about: Create a report to help improve moor
|
about: Create a report to help improve drift and moor
|
||||||
title: ''
|
title: ''
|
||||||
labels: ''
|
labels: ''
|
||||||
assignees: ''
|
assignees: ''
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
contact_links:
|
contact_links:
|
||||||
- name: Discussions
|
- name: Discussions
|
||||||
url: https://github.com/simolus3/moor/discussions
|
url: https://github.com/simolus3/moor/discussions
|
||||||
about: "For questions on how to use moor, prefer a Q&A discussion over issues"
|
about: "For questions on how to use drift and moor, prefer a Q&A discussion over issues"
|
||||||
- name: Gitter community
|
- name: Gitter community
|
||||||
url: https://gitter.im/moor-dart/community
|
url: https://gitter.im/moor-dart/community
|
||||||
about: "Chat room for quick questions"
|
about: "Chat room for quick questions"
|
||||||
|
|
|
@ -40,7 +40,7 @@ environments:
|
||||||
base_url: "http://localhost:8080/"
|
base_url: "http://localhost:8080/"
|
||||||
preview:
|
preview:
|
||||||
minify: true
|
minify: true
|
||||||
base_url: "https://moor.simonbinder.eu/"
|
base_url: "https://drift.simonbinder.eu/"
|
||||||
prod:
|
prod:
|
||||||
minify: true
|
minify: true
|
||||||
base_url: "https://moor.simonbinder.eu/"
|
base_url: "https://drift.simonbinder.eu/"
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
## 1.0.0
|
## 1.0.1
|
||||||
|
|
||||||
This is the initial release of the `drift_dev` package (formally known as `moor_generator`).
|
This is the initial release of the `drift_dev` package (formally known as `moor_generator`).
|
||||||
For an overview of old `moor` releases, see its [changelog](https://pub.dev/packages/moor_generator/changelog).
|
For an overview of old `moor` releases, see its [changelog](https://pub.dev/packages/moor_generator/changelog).
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
# moor Generator
|
# Drift Generator
|
||||||
|
|
||||||
This library contains the generator that turns your `Table` classes from drift
|
This library contains the generator that turns your `Table` classes from drift
|
||||||
into database code.
|
into database code.
|
||||||
|
It should be used as a development dependency when using the `drift` package.
|
||||||
|
|
||||||
Please see the homepage of [drift](https://drift.simonbinder.eu/) for details on how to use this package.
|
Please see the homepage of [drift](https://drift.simonbinder.eu/) for details on how to use this package.
|
||||||
|
|
|
@ -42,7 +42,7 @@ class MigrateCommand extends MoorCommand {
|
||||||
await _applyToFile(file);
|
await _applyToFile(file);
|
||||||
}
|
}
|
||||||
|
|
||||||
final isRunningFlutter = argResults.arguments.contains('flutter');
|
final isRunningFlutter = Platform.executable == 'flutter';
|
||||||
final formatCommand =
|
final formatCommand =
|
||||||
isRunningFlutter ? 'flutter format .' : 'dart format .';
|
isRunningFlutter ? 'flutter format .' : 'dart format .';
|
||||||
final pubGetCommand = isRunningFlutter ? 'flutter pub get' : 'dart pub get';
|
final pubGetCommand = isRunningFlutter ? 'flutter pub get' : 'dart pub get';
|
||||||
|
@ -55,7 +55,12 @@ class MigrateCommand extends MoorCommand {
|
||||||
print(' - Changed files might need formatting - run `$formatCommand`');
|
print(' - Changed files might need formatting - run `$formatCommand`');
|
||||||
print(' - Download drift with `$pubGetCommand`');
|
print(' - Download drift with `$pubGetCommand`');
|
||||||
print(' - Re-run the build with `$buildCommand`');
|
print(' - Re-run the build with `$buildCommand`');
|
||||||
print('Thanks for using ${styleCrossedOut.wrap('moor')} drift');
|
|
||||||
|
if (ansiOutputEnabled) {
|
||||||
|
print('Thanks for using ${styleCrossedOut.wrap('moor')} drift');
|
||||||
|
} else {
|
||||||
|
print('Thanks for using drift');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Future<void> _applyToFile(File file) async {
|
Future<void> _applyToFile(File file) async {
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
name: drift_dev
|
name: drift_dev
|
||||||
description: Dev-dependency for users of drift. Contains a the generator and development tools.
|
description: Dev-dependency for users of drift. Contains a the generator and development tools.
|
||||||
version: 1.0.0
|
version: 1.0.1
|
||||||
repository: https://github.com/simolus3/moor
|
repository: https://github.com/simolus3/moor
|
||||||
homepage: https://drift.simonbinder.eu/
|
homepage: https://drift.simonbinder.eu/
|
||||||
issue_tracker: https://github.com/simolus3/moor/issues
|
issue_tracker: https://github.com/simolus3/moor/issues
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
name: moor
|
name: moor
|
||||||
description: Moor is a safe and reactive persistence library for Dart applications
|
description: Moor is a safe and reactive persistence library for Dart applications
|
||||||
version: 4.6.0-dev
|
version: 4.6.0
|
||||||
repository: https://github.com/simolus3/moor
|
repository: https://github.com/simolus3/moor
|
||||||
homepage: https://moor.simonbinder.eu/
|
homepage: https://moor.simonbinder.eu/
|
||||||
issue_tracker: https://github.com/simolus3/moor/issues
|
issue_tracker: https://github.com/simolus3/moor/issues
|
||||||
|
@ -12,7 +12,7 @@ dependencies:
|
||||||
async: ^2.5.0
|
async: ^2.5.0
|
||||||
convert: ^3.0.0
|
convert: ^3.0.0
|
||||||
collection: ^1.15.0
|
collection: ^1.15.0
|
||||||
drift: ^4.6.0
|
drift: ^1.0.0
|
||||||
meta: ^1.3.0
|
meta: ^1.3.0
|
||||||
stream_channel: ^2.1.0
|
stream_channel: ^2.1.0
|
||||||
sqlite3: ^1.0.0
|
sqlite3: ^1.0.0
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
name: moor_generator
|
name: moor_generator
|
||||||
description: Dev-dependency to generate table and dataclasses together with the moor package.
|
description: Dev-dependency to generate table and dataclasses together with the moor package.
|
||||||
version: 4.5.1
|
version: 4.6.0
|
||||||
repository: https://github.com/simolus3/moor
|
repository: https://github.com/simolus3/moor
|
||||||
homepage: https://moor.simonbinder.eu/
|
homepage: https://moor.simonbinder.eu/
|
||||||
issue_tracker: https://github.com/simolus3/moor/issues
|
issue_tracker: https://github.com/simolus3/moor/issues
|
||||||
|
@ -10,6 +10,9 @@ environment:
|
||||||
|
|
||||||
dependencies:
|
dependencies:
|
||||||
drift_dev: ^1.0.0
|
drift_dev: ^1.0.0
|
||||||
|
# When users depend on the latest moor_generator, they should also get the latest moor for
|
||||||
|
# the migration to work
|
||||||
|
moor: ^4.6.0
|
||||||
|
|
||||||
executables:
|
executables:
|
||||||
moor_generator:
|
moor_generator:
|
||||||
|
|
|
@ -5,7 +5,13 @@
|
||||||
|
|
||||||
[[redirects]]
|
[[redirects]]
|
||||||
from = "https://moor.netlify.app/*"
|
from = "https://moor.netlify.app/*"
|
||||||
to = "https://moor.simonbinder.eu/:splat"
|
to = "https://drift.simonbinder.eu/:splat"
|
||||||
|
status = 301
|
||||||
|
force = true
|
||||||
|
|
||||||
|
[[redirects]]
|
||||||
|
from = "https://moor.simonbinder.eu/*"
|
||||||
|
to = "https://drift.simonbinder.eu/:splat"
|
||||||
status = 301
|
status = 301
|
||||||
force = true
|
force = true
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue