Module builders for web, used by package:build_web_compilers
.
This package provides generic module builders which can be used to create
custom web compilation pipelines. It is used by build_web_compilers
package which provides standard builders for DDC and dart2js.
There should be no need to import this package directly unless you are developing
a custom builder for web. See documentation in build_web_compilers
for more details on building your Dart code with DDC and dart2js.
MetaModuleCleanBuilder
and metaModuleCleanExtension
publicly for
usage in tests and manual build scripts.Clean up .module
and summary files from the output and server.
Add new ModuleBuilder
strategies. By default the coarse
strategy is used
for all non-root packages and will create a minimum number of modules. This
strategy can not be overridden. However, for the root package, the fine
strategy will be used which creates a module for each strongly
connected component. You can override this behavior by providing coarse
to the strategy
option.
Example configuration:
targets:
$default:
builders:
build_modules|modules:
options:
strategy: coarse
Module.computeTransitiveDependencies
whereType
in MissingModulesException
,
https://github.com/dart-lang/build/issues/1123.MissingModulesException
,
https://github.com/dart-lang/build/issues/1092.computeTransitiveDependencies
now throws a MissingModulesException
instead
of logging a warning if it discovers a missing module.terminateWorkers
. This only really surfaces in test
environments.dart.
build_web_compilers
.Add this to your package's pubspec.yaml file:
dependencies:
build_modules: "^0.2.2+1"
You can install packages from the command line:
with pub:
$ pub get
with Flutter:
$ flutter packages get
Alternatively, your editor might support pub get
or packages get
.
Check the docs for your editor to learn more.
Now in your Dart code, you can use:
import 'package:build_modules/build_modules.dart';
Version | Uploaded | Documentation | Archive |
---|---|---|---|
0.2.2+1 | Apr 25, 2018 | failed |
|
0.2.2 | Apr 25, 2018 | failed |
|
0.2.1 | Apr 19, 2018 | failed |
|
0.2.0+2 | Mar 8, 2018 |
|
|
0.2.0+1 | Mar 6, 2018 |
|
|
0.2.0 | Mar 1, 2018 |
|
|
0.1.0+2 | Feb 9, 2018 |
|
|
0.1.0+1 | Feb 9, 2018 |
|
|
0.1.0 | Feb 6, 2018 |
|
|
We analyzed this package on Apr 25, 2018, and provided a score, details, and suggestions below. Analysis was completed with status completed using:
Popularity:
Describes how popular the package is relative to other packages.
[more]
|
62 | / 100 |
Health:
Code health derived from static analysis.
[more]
|
100 | / 100 |
Maintenance:
Reflects how tidy and up-to-date the package is.
[more]
|
100 | / 100 |
Overall score:
Weighted score of the above.
[more]
|
81 |
Detected platforms: Flutter, other
Primary library:
package:build_modules/build_modules.dart
with components:io
,isolate
,build
.
The description is too short.
Add more detail about the package, what it does and what is its target use case. Try to write at least 60 characters.
Package is pre-v1 release.
While there is nothing inherently wrong with versions of
0.*.*
, it usually means that the author is still experimenting with the general direction API.
Maintain an example.
Create a short demo in the
example/
directory to show how to use this package. Common file name patterns include:main.dart
,example.dart
or you could also usebuild_modules.dart
.
Package | Constraint | Resolved | Available |
---|---|---|---|
Direct dependencies | |||
Dart SDK | >=2.0.0-dev.48 <2.0.0 | ||
analyzer | >0.30.0 <0.32.0 | 0.31.1 | 0.31.2-alpha.1 |
bazel_worker | ^0.1.4 | 0.1.9 | |
build | ^0.12.3 | 0.12.3 | |
build_config | ^0.2.1 | 0.2.6+1 | |
cli_util | ^0.1.2 | 0.1.2+1 | |
glob | ^1.0.0 | 1.1.5 | |
graphs | ^0.1.0 | 0.1.2 | |
json_annotation | ^0.2.2 | 0.2.3 | |
logging | ^0.11.2 | 0.11.3+1 | |
path | ^1.4.2 | 1.5.1 | |
scratch_space | ^0.0.1 | 0.0.2+1 | |
Transitive dependencies | |||
args | 1.4.3 | ||
async | 2.0.6 | ||
charcode | 1.1.1 | ||
collection | 1.14.9 | ||
convert | 2.0.1 | ||
crypto | 2.0.2+1 | ||
csslib | 0.14.1 | ||
fixnum | 0.10.7 | ||
front_end | 0.1.0-alpha.9 | 0.1.0-alpha.11 | |
html | 0.13.3 | ||
isolate | 1.1.0 | 2.0.0 | |
kernel | 0.3.0-alpha.9 | 0.3.0-alpha.11 | |
meta | 1.1.2 | ||
package_config | 1.0.3 | ||
plugin | 0.2.0+2 | ||
pool | 1.3.4 | ||
protobuf | 0.7.2 | ||
source_span | 1.4.0 | ||
stack_trace | 1.9.2 | ||
string_scanner | 1.0.2 | ||
typed_data | 1.1.5 | ||
utf | 0.9.0+4 | ||
watcher | 0.9.7+7 | ||
yaml | 2.1.13 | ||
Dev dependencies | |||
a | |||
b | |||
build_runner | ^0.8.4 | ||
build_test | ^0.10.0 | ||
json_serializable | ^0.5.0 | ||
source_gen | ^0.8.0 | ||
test | ^0.12.24 |