dartweb 1.0.6

  • Readme
  • Changelog
  • Installing
  • 8

#Installation

$ pub global activate dartweb
# or
$ flutter pub global activate dartweb

Usage #

dartweb provide one command: build

dartweb build #

Run builders to build a package.

Usage: dartweb build [arguments]
-h, --help                        Print this usage information.
-o, --output                      A directory to write the result of a build to.
                                 
                                  (defaults to "web:build")
-r, --[no-]release                Build with release mode defaults for builders.
                                  (defaults to on)
-t, --target                      compile entry file

Run "webdev help" to see global options.

1.0.6 #

支持图片,font 图标等资源动态配置文件

1.0.5 #

1.0.3 #

1.0.2 #

1.0.1 #

1. #

Use this package as an executable

1. Install it

You can install the package from the command line:


$ pub global activate dartweb

2. Use it

The package has the following executables:


$ dartweb

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:


dependencies:
  dartweb: ^1.0.6

2. Install it

You can install packages from the command line:

with pub:


$ pub get

Alternatively, your editor might support pub get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:


import 'package:dartweb/executable.dart';
import 'package:dartweb/runner.dart';
  
Popularity:
Describes how popular the package is relative to other packages. [more]
0
Health:
Code health derived from static analysis. [more]
7
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
30
Overall:
Weighted score of the above. [more]
8
Learn more about scoring.

We analyzed this package on Jul 9, 2020, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.8.4
  • pana: 0.13.13

Health issues and suggestions

Fix lib/src/base/process.dart. (-43.75 points)

Analysis of lib/src/base/process.dart failed with 2 errors:

line 528 col 5: The name 'unawaited' is defined in the libraries 'package:dartweb/src/base/common.dart' and 'package:meta/meta.dart'.

line 529 col 5: The name 'unawaited' is defined in the libraries 'package:dartweb/src/base/common.dart' and 'package:meta/meta.dart'.

Fix lib/src/dart/pub.dart. (-25.38 points)

Analysis of lib/src/dart/pub.dart failed with 1 error, 1 hint:

line 342 col 5: The name 'unawaited' is defined in the libraries 'package:dartweb/src/base/common.dart' and 'package:meta/meta.dart'.

line 311 col 12: The value of the local variable 'result' isn't used.

Fix lib/src/compile.dart. (-25 points)

Analysis of lib/src/compile.dart failed with 1 error:

line 710 col 5: The name 'unawaited' is defined in the libraries 'package:dartweb/src/base/common.dart' and 'package:meta/meta.dart'.

Fix additional 57 files with analysis or formatting issues. (-95.58 points)

Additional issues in the following files:

  • lib/src/application_package.dart (23 warnings)
  • lib/src/web/compile.dart (1 warning)
  • lib/src/build_system/targets/dart.dart (11 hints)
  • lib/src/plugins.dart (5 hints)
  • lib/src/project.dart (4 hints)
  • lib/src/runner/flutter_command.dart (4 hints)
  • lib/src/base/io.dart (2 hints)
  • lib/src/build_runner/resident_web_runner.dart (2 hints)
  • lib/src/devfs.dart (2 hints)
  • lib/src/resident_runner.dart (2 hints)
  • bin/dartweb.dart (1 hint)
  • lib/executable.dart (1 hint)
  • lib/runner.dart (1 hint)
  • lib/src/base/build.dart (1 hint)
  • lib/src/base/net.dart (1 hint)
  • lib/src/build_system/build_system.dart (1 hint)
  • lib/src/build_system/targets/assets.dart (1 hint)
  • lib/src/cache.dart (1 hint)
  • lib/src/context_runner.dart (1 hint)
  • lib/src/runner/flutter_command_runner.dart (1 hint)
  • lib/src/web/web_runner.dart (1 hint)
  • lib/src/artifacts.dart (Run flutter format to format lib/src/artifacts.dart.)
  • lib/src/asset.dart (Run flutter format to format lib/src/asset.dart.)
  • lib/src/base/async_guard.dart (Run flutter format to format lib/src/base/async_guard.dart.)
  • lib/src/base/command_help.dart (Run flutter format to format lib/src/base/command_help.dart.)
  • lib/src/base/common.dart (Run flutter format to format lib/src/base/common.dart.)
  • lib/src/base/config.dart (Run flutter format to format lib/src/base/config.dart.)
  • lib/src/base/context.dart (Run flutter format to format lib/src/base/context.dart.)
  • lib/src/base/error_handling_file_system.dart (Run flutter format to format lib/src/base/error_handling_file_system.dart.)
  • lib/src/base/file_system.dart (Run flutter format to format lib/src/base/file_system.dart.)
  • lib/src/base/logger.dart (Run flutter format to format lib/src/base/logger.dart.)
  • lib/src/base/os.dart (Run flutter format to format lib/src/base/os.dart.)
  • lib/src/base/signals.dart (Run flutter format to format lib/src/base/signals.dart.)
  • lib/src/base/template.dart (Run flutter format to format lib/src/base/template.dart.)
  • lib/src/base/terminal.dart (Run flutter format to format lib/src/base/terminal.dart.)
  • lib/src/base/user_messages.dart (Run flutter format to format lib/src/base/user_messages.dart.)
  • lib/src/base/utils.dart (Run flutter format to format lib/src/base/utils.dart.)
  • lib/src/build_info.dart (Run flutter format to format lib/src/build_info.dart.)
  • lib/src/build_runner/devfs_web.dart (Run flutter format to format lib/src/build_runner/devfs_web.dart.)
  • lib/src/build_runner/mustache_template.dart (Run flutter format to format lib/src/build_runner/mustache_template.dart.)
  • lib/src/build_runner/web_compilation_delegate.dart (Run flutter format to format lib/src/build_runner/web_compilation_delegate.dart.)
  • lib/src/build_system/depfile.dart (Run flutter format to format lib/src/build_system/depfile.dart.)
  • lib/src/build_system/file_hash_store.dart (Run flutter format to format lib/src/build_system/file_hash_store.dart.)
  • lib/src/build_system/source.dart (Run flutter format to format lib/src/build_system/source.dart.)
  • lib/src/build_system/targets/desktop.dart (Run flutter format to format lib/src/build_system/targets/desktop.dart.)
  • lib/src/build_system/targets/icon_tree_shaker.dart (Run flutter format to format lib/src/build_system/targets/icon_tree_shaker.dart.)
  • lib/src/build_system/targets/web.dart (Run flutter format to format lib/src/build_system/targets/web.dart.)
  • lib/src/bundle.dart (Run flutter format to format lib/src/bundle.dart.)
  • lib/src/commands/run.dart (Run flutter format to format lib/src/commands/run.dart.)
  • lib/src/convert.dart (Run flutter format to format lib/src/convert.dart.)
  • lib/src/dart/package_map.dart (Run flutter format to format lib/src/dart/package_map.dart.)
  • lib/src/dart/sdk.dart (Run flutter format to format lib/src/dart/sdk.dart.)
  • lib/src/debug_option.dart (Run flutter format to format lib/src/debug_option.dart.)
  • lib/src/flutter_manifest.dart (Run flutter format to format lib/src/flutter_manifest.dart.)
  • lib/src/globals.dart (Run flutter format to format lib/src/globals.dart.)
  • lib/src/platform_plugins.dart (Run flutter format to format lib/src/platform_plugins.dart.)
  • lib/src/template.dart (Run flutter format to format lib/src/template.dart.)

Maintenance issues and suggestions

No valid SDK. (-20 points)

The analysis could not detect a valid SDK that can use this package.

Support latest dependencies. (-20 points)

The version constraint in pubspec.yaml does not support the latest published versions for 2 dependencies (dwds, xml).

The package description is too short. (-20 points)

Add more detail to the description field of pubspec.yaml. Use 60 to 180 characters to describe the package, what it does, and its target use case.

Maintain an example. (-10 points)

Create a short demo in the example/ directory to show how to use this package.

Common filename patterns include main.dart, example.dart, and dartweb.dart. Packages with multiple examples should provide example/README.md.

For more information see the pub package layout conventions.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.7.0 <3.0.0
archive ^2.0.13 2.0.13
args ^1.6.0 1.6.0
async ^2.4.1 2.4.2
build_daemon ^2.1.4 2.1.4
completion ^0.2.2 0.2.2
convert ^2.1.1 2.1.1
crypto ^2.1.4 2.1.5
dwds ^3.0.3 3.1.3 5.0.0
file ^5.1.0 5.2.1
flutter_template_images ^1.0.1 1.0.1
intl ^0.16.1 0.16.1
meta ^1.1.8 1.2.1
mime ^0.9.6+3 0.9.6+3
mustache_template ^1.0.0+1 1.0.0+1
package_config ^1.9.3 1.9.3
path ^1.7.0 1.7.0
platform ^2.2.1 2.2.1
pool ^1.4.0 1.4.0
process ^3.0.12 3.0.13
pub_semver ^1.4.4 1.4.4
quiver ^2.1.3 2.1.3
shelf ^0.7.5 0.7.7
typed_data ^1.1.6 1.2.0 1.3.0-nnbd
usage ^3.4.1 3.4.2
uuid ^2.0.4 2.2.0
vm_service ^4.0.0 4.1.0
xml ^3.7.0 3.7.0 4.2.0
yaml ^2.2.0 2.2.1
Transitive dependencies
browser_launcher 0.1.7
built_collection 4.3.2
built_value 7.1.0
charcode 1.1.3
collection 1.14.13 1.15.0-nnbd
devtools 0.2.5 0.8.0+1
devtools_server 0.2.5 0.8.0+1
devtools_shared 0.2.5 0.8.0+1
fixnum 0.10.11
http 0.12.1
http_multi_server 2.2.0
http_parser 3.1.4
logging 0.11.4
matcher 0.12.8
pedantic 1.9.1
petitparser 3.0.4
shelf_packages_handler 2.0.0
shelf_proxy 0.1.0+7
shelf_static 0.2.8
shelf_web_socket 0.2.3
source_maps 0.10.9
source_span 1.7.0
sse 3.5.0
stack_trace 1.9.5
stream_channel 2.0.0
stream_transform 1.2.0
string_scanner 1.0.5
term_glyph 1.1.0
watcher 0.9.7+15
web_socket_channel 1.1.0
webkit_inspection_protocol 0.7.3