|
|
@@ -1,39 +1,26 @@
|
|
|
-<!--
|
|
|
-This README describes the package. If you publish this package to pub.dev,
|
|
|
-this README's contents appear on the landing page for your package.
|
|
|
+```markdown
|
|
|
+# 用于将 `string.xml` 自动转换为 `string.gen.dart`
|
|
|
|
|
|
-For information about how to write a good package README, see the guide for
|
|
|
-[writing package pages](https://dart.dev/tools/pub/writing-package-pages).
|
|
|
+## 配置
|
|
|
|
|
|
-For general information about developing packages, see the Dart guide for
|
|
|
-[creating packages](https://dart.dev/guides/libraries/create-packages)
|
|
|
-and the Flutter guide for
|
|
|
-[developing packages and plugins](https://flutter.dev/to/develop-packages).
|
|
|
--->
|
|
|
+### 输入输出配置
|
|
|
|
|
|
-TODO: Put a short description of the package here that helps potential users
|
|
|
-know whether this package might be useful for them.
|
|
|
+可不配置,默认如下:
|
|
|
|
|
|
-## Features
|
|
|
-
|
|
|
-TODO: List what your package can do. Maybe include images, gifs, or videos.
|
|
|
+```yaml
|
|
|
+flutter_string_get:
|
|
|
+ input: assets/string/base/*.xml # 输入目录
|
|
|
+ output: lib/resource/string.gen.dart # 输出文件
|
|
|
+```
|
|
|
|
|
|
-## Getting started
|
|
|
+### 清理build_runner命令
|
|
|
|
|
|
-TODO: List prerequisites and provide or point to information on how to
|
|
|
-start using the package.
|
|
|
+dart run build_runner clean
|
|
|
|
|
|
-## Usage
|
|
|
+### 建议
|
|
|
|
|
|
-TODO: Include short and useful examples for package users. Add longer examples
|
|
|
-to `/example` folder.
|
|
|
+在 `watch` 时使用以下命令,冲突时自动删除:
|
|
|
|
|
|
-```dart
|
|
|
-const like = 'sample';
|
|
|
+```bash
|
|
|
+dart run build_runner watch --delete-conflicting-outputs
|
|
|
```
|
|
|
-
|
|
|
-## Additional information
|
|
|
-
|
|
|
-TODO: Tell users more about the package: where to find more information, how to
|
|
|
-contribute to the package, how to file issues, what response they can expect
|
|
|
-from the package authors, and more.
|