You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Centralized tooling for Dart projects. Consistent interface across projects.
@@ -25,10 +25,8 @@ Easily configurable.
25
25
26
26
Add `dart_dev` as a dev dependency in your project:
27
27
28
-
```yaml
29
-
# pubspec.yaml
30
-
dev_dependencies:
31
-
dart_dev: ^3.0.0
28
+
```bash
29
+
dart pub add --dev dart_dev
32
30
```
33
31
34
32
By default, this provides three core tasks:
@@ -93,7 +91,7 @@ With `dart_dev`, we attempt to address #1 by providing a way to configure all of
93
91
these common developer tasks at the project level, and #2 by composing
94
92
additional functionality around existing tools.
95
93
96
-
This package is built with configurability and extensiblity in mind, with the
94
+
This package is built with configurability and extensibility in mind, with the
97
95
hope that you and your teams will find value in creating your own tools and
98
96
shared configurations. Ideally, you or your team can settle on a shared
99
97
configuration that individual projects can consume; projects with unique
@@ -119,7 +117,7 @@ With `dart_dev`, this can be accomplished like so:
119
117
```dart
120
118
// tool/dart_dev/config.dart
121
119
import 'package:dart_dev/dart_dev.dart';
122
-
import 'pacakge:glob/glob.dart';
120
+
import 'package:glob/glob.dart';
123
121
124
122
final config = {
125
123
'format': FormatTool()
@@ -307,7 +305,7 @@ For additional reference on how the watcher is set up, see [JetBrains File Watch
307
305
1. __The Name:__ Webstorm treats this like the process name, so it's the identifier that will be used to display any output that the process is running. It can be whatever you like!
308
306
1. __File Type:__ `Dart`, since that's what the formatter was built for.
309
307
1. __Scope:__ `Project Files` will produce the desired effect, but if a different option works better for you then feel free! For more information on scoping, see [the docs](file-watcher-docs).
310
-
1. __Program:__ The exutable to run. In this case, it can just be `pub`. If there are any issues, providing a full path to the executable may have the desired outcome. For pub, this is most likely `/usr/local/bin/pub`.
308
+
1. __Program:__ The executable to run. In this case, it can just be `pub`. If there are any issues, providing a full path to the executable may have the desired outcome. For pub, this is most likely `/usr/local/bin/pub`.
311
309
1. __Arguments:__ The rest of the command, and by default should be `run dart_dev hackFastFormat "$FilePathRelativeToProjectRoot$"`. Here's the breakdown:
312
310
- `run dart_dev hackFastFormat`: Simply the process to run.
313
311
- `"$FilePathRelativeToProjectRoot$"`: The environment variable that will target only the changed file.
0 commit comments