mirror of https://github.com/flutter/samples.git
[Gallery] Add Travis CI check that l10n command has been run for the gallery (#263)
* Add command to grind to verify that l10n command has ben runpull/288/head
parent
4d6d5660bc
commit
e7f39b1c37
@ -0,0 +1,4 @@
|
||||
# l10n
|
||||
|
||||
A command-line application that converts .arb files to .xml files for
|
||||
translation consumption.
|
@ -0,0 +1,17 @@
|
||||
// Copyright 2019 The Flutter team. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
import 'package:args/args.dart';
|
||||
|
||||
import 'l10n_cli.dart' as l10n_cli;
|
||||
|
||||
void main(List<String> arguments) {
|
||||
final parser = ArgParser()
|
||||
..addFlag(
|
||||
'dry-run',
|
||||
help: 'Write the output to stdout.',
|
||||
);
|
||||
final argResults = parser.parse(arguments);
|
||||
l10n_cli.englishArbsToXmls(isDryRun: argResults['dry-run'] as bool);
|
||||
}
|
@ -1,13 +0,0 @@
|
||||
# Files and directories created by pub
|
||||
.dart_tool/
|
||||
.packages
|
||||
# Remove the following pattern if you wish to check in your lock file
|
||||
pubspec.lock
|
||||
|
||||
# Conventional directory for build outputs
|
||||
build/
|
||||
|
||||
# Directory created by dartdoc
|
||||
doc/api/
|
||||
|
||||
.DS_Store
|
@ -1,3 +0,0 @@
|
||||
## 1.0.0
|
||||
|
||||
- Initial version, created by Stagehand
|
@ -1,7 +0,0 @@
|
||||
# l10n
|
||||
|
||||
A command-line application that converts .arb files to .xml files for
|
||||
translation consumption.
|
||||
|
||||
Created from templates made available by Stagehand under a BSD-style
|
||||
[license](https://github.com/dart-lang/stagehand/blob/master/LICENSE).
|
@ -1,39 +0,0 @@
|
||||
# Defines a default set of lint rules enforced for
|
||||
# projects at Google. For details and rationale,
|
||||
# see https://github.com/dart-lang/pedantic#enabled-lints.
|
||||
include: package:pedantic/analysis_options.yaml
|
||||
|
||||
# For lint rules and documentation, see http://dart-lang.github.io/linter/lints.
|
||||
# Uncomment to specify additional rules.
|
||||
# linter:
|
||||
# rules:
|
||||
# - camel_case_types
|
||||
|
||||
analyzer:
|
||||
# exclude:
|
||||
# - path/to/excluded/files/**
|
||||
|
||||
linter:
|
||||
rules:
|
||||
- avoid_types_on_closure_parameters
|
||||
- avoid_void_async
|
||||
- await_only_futures
|
||||
- camel_case_types
|
||||
- cancel_subscriptions
|
||||
- close_sinks
|
||||
- constant_identifier_names
|
||||
- control_flow_in_finally
|
||||
- empty_statements
|
||||
- hash_and_equals
|
||||
- implementation_imports
|
||||
- non_constant_identifier_names
|
||||
- package_api_docs
|
||||
- package_names
|
||||
- package_prefixed_library_names
|
||||
- test_types_in_equals
|
||||
- throw_in_finally
|
||||
- unnecessary_brace_in_string_interps
|
||||
- unnecessary_getters_setters
|
||||
- unnecessary_new
|
||||
- unnecessary_statements
|
||||
- directives_ordering
|
@ -1,9 +0,0 @@
|
||||
// Copyright 2019 The Flutter team. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
import 'package:l10n_cli/l10n_cli.dart' as l10n_cli;
|
||||
|
||||
main(List<String> arguments) async {
|
||||
await l10n_cli.englishArbsToXmls();
|
||||
}
|
@ -1,11 +0,0 @@
|
||||
name: l10n_cli
|
||||
description: A sample command-line application.
|
||||
# version: 1.0.0
|
||||
# author: Rami Abou Ghanem <raboughanem@google.com>
|
||||
|
||||
environment:
|
||||
sdk: '>=2.2.0 <3.0.0'
|
||||
|
||||
dev_dependencies:
|
||||
pedantic: 1.8.0
|
||||
test: ^1.0.0
|
Loading…
Reference in new issue