Merge pull request #1 from dukefirehawk/feature/upgrade-dependencies
Updated dependencies
This commit is contained in:
commit
e0548f997a
6 changed files with 17 additions and 17 deletions
|
@ -1,5 +1,10 @@
|
|||
# Change Log
|
||||
|
||||
## 6.1.0
|
||||
|
||||
* Updated to `analyzer` 4.x.x
|
||||
* Updated to `lints` 2.x.x
|
||||
|
||||
## 6.0.1
|
||||
|
||||
* Added `angel3-orm-mysql` template for ORM support for MariaDB and MySQL
|
||||
|
|
|
@ -7,16 +7,11 @@ import 'package:args/command_runner.dart';
|
|||
import 'package:angel3_cli/angel3_cli.dart';
|
||||
import 'package:io/ansi.dart';
|
||||
|
||||
final String DOCTOR = 'doctor';
|
||||
//const String doctor = 'doctor';
|
||||
|
||||
void main(List<String> args) async {
|
||||
var runner = CommandRunner(
|
||||
'angel3',
|
||||
asciiArt +
|
||||
'\n\n' +
|
||||
'Command-line tools for the Angel3 framework.' +
|
||||
'\n\n' +
|
||||
'https://angel3-framework.web.app');
|
||||
var runner = CommandRunner('angel3',
|
||||
'$asciiArt\n\nCommand-line tools for the Angel3 framework.\n\nhttps://angel3-framework.web.app');
|
||||
|
||||
runner.argParser
|
||||
.addFlag('verbose', help: 'Print verbose output.', negatable: false);
|
||||
|
|
|
@ -24,7 +24,7 @@ class KeyCommand extends Command {
|
|||
if (await file.exists()) {
|
||||
var contents = await file.readAsString();
|
||||
contents = contents.replaceAll(RegExp(r'jwt_secret:[^\n]+\n?'), '');
|
||||
await file.writeAsString(contents.trim() + '\njwt_secret: "$secret"');
|
||||
await file.writeAsString('${contents.trim()}\njwt_secret: "$secret"');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -7,7 +7,7 @@ String resolvePub() {
|
|||
var exec = File(Platform.resolvedExecutable);
|
||||
var pubPath = exec.parent.uri.resolve('pub').path;
|
||||
if (Platform.isWindows) {
|
||||
pubPath = pubPath.replaceAll(_leadingSlashes, '') + '.bat';
|
||||
pubPath = '${pubPath.replaceAll(_leadingSlashes, '')}.bat';
|
||||
}
|
||||
pubPath = Uri.decodeFull(pubPath);
|
||||
return pubPath;
|
||||
|
|
|
@ -148,7 +148,7 @@ Future renameDartFiles(Directory dir, String oldName, String newName) async {
|
|||
var contents = lineList.fold<String>('', (prev, cur) {
|
||||
var updatedCur = updateImport(cur, oldName, newName);
|
||||
updatedCur = updateMustacheBinding(updatedCur, oldName, newName);
|
||||
return prev + '\n' + updatedCur;
|
||||
return '$prev\n$updatedCur';
|
||||
});
|
||||
await file.writeAsString(fmt.format(contents));
|
||||
|
||||
|
@ -198,7 +198,7 @@ class RenamingVisitor extends RecursiveAstVisitor {
|
|||
if (uri == 'package:$oldName/$oldName.dart') {
|
||||
return 'package:$newName/$newName.dart';
|
||||
} else if (uri.startsWith('package:$oldName/')) {
|
||||
return 'package:$newName/' + uri.replaceFirst('package:$oldName/', '');
|
||||
return 'package:$newName/${uri.replaceFirst('package:$oldName/', '')}';
|
||||
} else {
|
||||
return uri;
|
||||
}
|
||||
|
@ -229,7 +229,7 @@ class RenamingVisitor extends RecursiveAstVisitor {
|
|||
|
||||
if (name.startsWith(oldName)) {
|
||||
replace[[node.offset, node.end]] =
|
||||
'library ' + name.replaceFirst(oldName, newName) + ';';
|
||||
'library ${name.replaceFirst(oldName, newName)};';
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -240,7 +240,7 @@ class RenamingVisitor extends RecursiveAstVisitor {
|
|||
|
||||
if (name.startsWith(oldName)) {
|
||||
replace[[node.offset, node.end]] =
|
||||
'part of ' + name.replaceFirst(oldName, newName) + ';';
|
||||
'part of ${name.replaceFirst(oldName, newName)};';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,12 +1,12 @@
|
|||
name: angel3_cli
|
||||
version: 6.0.1
|
||||
version: 6.1.0
|
||||
description: Command line tools for the Angel3 framework, including scaffolding.
|
||||
homepage: https://angel3-framework.web.app/
|
||||
repository: https://github.com/dukefirehawk/angel3-cli
|
||||
environment:
|
||||
sdk: '>=2.16.0 <3.0.0'
|
||||
dependencies:
|
||||
analyzer: ^3.0.0
|
||||
analyzer: ^4.0.0
|
||||
args: ^2.1.1
|
||||
code_builder: ^4.0.0
|
||||
dart_style: ^2.0.1
|
||||
|
@ -24,6 +24,6 @@ dependencies:
|
|||
watcher: ^1.0.0
|
||||
yaml: ^3.1.0
|
||||
dev_dependencies:
|
||||
lints: ^1.0.0
|
||||
lints: ^2.0.0
|
||||
executables:
|
||||
angel3: angel3
|
||||
|
|
Loading…
Reference in a new issue