mirror of
https://github.com/danog/dart-sass.git
synced 2024-11-27 04:34:59 +01:00
Format with the latest formatter version (#363)
This commit is contained in:
parent
6e6bfd350c
commit
61eea4abd8
@ -15,7 +15,8 @@ void main() {
|
|||||||
({
|
({
|
||||||
'lib/src/visitor/async_evaluate.dart': 'lib/src/visitor/evaluate.dart',
|
'lib/src/visitor/async_evaluate.dart': 'lib/src/visitor/evaluate.dart',
|
||||||
'lib/src/async_environment.dart': 'lib/src/environment.dart'
|
'lib/src/async_environment.dart': 'lib/src/environment.dart'
|
||||||
}).forEach((sourcePath, targetPath) {
|
})
|
||||||
|
.forEach((sourcePath, targetPath) {
|
||||||
var source = new File(sourcePath).readAsStringSync();
|
var source = new File(sourcePath).readAsStringSync();
|
||||||
var target = new File(targetPath).readAsStringSync();
|
var target = new File(targetPath).readAsStringSync();
|
||||||
|
|
||||||
|
@ -162,8 +162,8 @@ Future<Duration> _benchmark(String executable, List<String> arguments) async {
|
|||||||
|
|
||||||
Future<Duration> _benchmarkOnce(
|
Future<Duration> _benchmarkOnce(
|
||||||
String executable, List<String> arguments) async {
|
String executable, List<String> arguments) async {
|
||||||
var result = await Process
|
var result = await Process.run(
|
||||||
.run("sh", ["-c", "time $executable ${arguments.join(' ')}"]);
|
"sh", ["-c", "time $executable ${arguments.join(' ')}"]);
|
||||||
var match =
|
var match =
|
||||||
new RegExp(r"(\d+)m(\d+)\.(\d+)s").firstMatch(result.stderr as String);
|
new RegExp(r"(\d+)m(\d+)\.(\d+)s").firstMatch(result.stderr as String);
|
||||||
return new Duration(
|
return new Duration(
|
||||||
|
@ -109,8 +109,8 @@ update_chocolatey() async {
|
|||||||
"PUT", Uri.parse("https://push.chocolatey.org/api/v2/package"));
|
"PUT", Uri.parse("https://push.chocolatey.org/api/v2/package"));
|
||||||
request.headers["X-NuGet-Protocol-Version"] = "4.1.0";
|
request.headers["X-NuGet-Protocol-Version"] = "4.1.0";
|
||||||
request.headers["X-NuGet-ApiKey"] = environment("CHOCO_TOKEN");
|
request.headers["X-NuGet-ApiKey"] = environment("CHOCO_TOKEN");
|
||||||
request.files.add(await http.MultipartFile
|
request.files.add(await http.MultipartFile.fromPath(
|
||||||
.fromPath("package", "build/sass.${_chocolateyVersion()}.nupkg"));
|
"package", "build/sass.${_chocolateyVersion()}.nupkg"));
|
||||||
|
|
||||||
var response = await request.send();
|
var response = await request.send();
|
||||||
if (response.statusCode ~/ 100 != 2) {
|
if (response.statusCode ~/ 100 != 2) {
|
||||||
|
Loading…
Reference in New Issue
Block a user