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