Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
Front-End
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abdullh.alsoleman
Front-End
Commits
ebdc2cf7
Unverified
Commit
ebdc2cf7
authored
Jul 23, 2019
by
Zachary Anderson
Committed by
GitHub
Jul 23, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[flutter_tool] Add some useful commands to the README.md (#36560)
parent
a632175f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
59 additions
and
6 deletions
+59
-6
README.md
packages/flutter_tools/README.md
+59
-6
No files found.
packages/flutter_tools/README.md
View file @
ebdc2cf7
# Flutter Tools
D
eveloper tools for building Flutter applications.
Command line d
eveloper tools for building Flutter applications.
Be sure to follow the instructions on
[
CONTRIBUTING.md
](
../../CONTRIBUTING.md
)
to setup.
## Working on Flutter Tools
To run the tests, ensure that no devices are connected,
t
hen navigate to
`flutter_tools`
and execute:
Be sure to follow the instructions on
[
CONTRIBUTING.md
](
../../CONTRIBUTING.md
)
t
o set up your development environment.
### Setup
First, ensure that the Dart SDK and other necessary artifacts are available by
invoking the Flutter Tools wrapper script. In this directory run:
```
shell
$
../../bin/flutter
--version
```
### Running
To run Flutter Tools from source, in this directory run:
```
shell
$
../../bin/cache/dart-sdk/bin/dart bin/flutter_tools.dart
```
followed by command line arguments, as usual.
### Analyzing
To run the analyzer on Flutter Tools, in this directory run:
```
shell
$
../../bin/flutter analyze
```
### Testing
To run the tests in the
`test/`
directory, first ensure that there are no
connected devices. Then, in this directory run:
```
shell
$
../../bin/cache/dart-sdk/bin/pub run
test
```
The tests in
`test/integration.shard`
are slower to run than the tests in
`test/general.shard`
. To run only the tests in
`test/general.shard`
, in this
directory run:
```
shell
$
../../bin/cache/dart-sdk/bin/pub run
test test
/general.shard
```
To run the tests in a specific file, run:
```
shell
$
../../bin/cache/dart-sdk/bin/pub run
test test
/general.shard/utils_test.dart
```
When running all of the tests, it is a bit faster to use
`build_runner`
. First,
set
`FLUTTER_ROOT`
to the root of your Flutter checkout. Then, in this directory
run:
```
shell
$
../../bin/cache/dart-sdk/bin/pub run build_runner
test
```
### Forcing snapshot regeneration
To force the Flutter Tools snapshot to be regenerated, delete the following
files:
```
shell
../../bin/cache/dart-sdk/bin/pub run
tes
t
$
rm
../../bin/cache/flutter_tools.stamp ../../bin/cache/flutter_tools.snapsho
t
```
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment