Viewing version 0.0.2. Open the latest package page.

build_barback

0.0.2

Utilities for translating between builders and transformers.

Download archive

Readme

Build Status Coverage Status

build_barback

Allows wrapping up a Builder as a Transformer so that it can be run in pub or vice-versa.

Using a Builder from Pub

Wrap the Builder instance with new BuilderTransformer(builder) and use it like any other Transformer. The Builder used this way must follow the rules of other Transformers, it cannot use inputs from outside the package where the Transformer is specified in pubspec.yaml

Using an exisiting Transformer with package:build

Wrap the Transformer instance with new TransformerBuilder(transformer) and run as any other Builder. The Transformer instance used this way must follow the rules of other Builders:

  • It cannot overwrite files it uses as inputs.
  • It must know before building what the outputs will be (it must be a DeclaringTransformer).

Features and bugs

Please file feature requests and bugs at the issue tracker.

Changelog

0.0.2

  • Fix a bug forwarding logs from a BuilderTransformer

0.0.1

  • Initial separate release - split off from build package.

Installing

export PUB_HOSTED_URL=https://pub.mirror.p-hatan.ir
flutter pub add 'build_barback:0.0.2'
pubspec.yaml
name: build_barback
version: 0.0.2
description: Utilities for translating between builders and transformers.
author: Dart Team <misc@dartlang.org>
homepage: https://github.com/dart-lang/build

environment:
  sdk: '>=1.9.1 <2.0.0'

dependencies:
  analyzer: ">=0.27.1 <0.30.0"
  build: ^0.6.0
  barback: ^0.15.0
  code_transformers: ">=0.4.2+3 <0.6.0"
  crypto: ">=0.9.2 <3.0.0"
  logging: ^0.11.2
  glob: ^1.1.0
  path: ^1.1.0
  shelf: ^0.6.5
  shelf_static: ^0.2.3
  stack_trace: ^1.6.0
  watcher: ^0.9.7
  yaml: ^2.1.0

dev_dependencies:
  build_test:
    path: ../build_test
  test: ^0.12.0
  transformer_test: ^0.2.0

Version history

VersionPublishedArchiveSHA-256
0.0.1Cached · Upstream SHA-256 matchedDownloaddfb8cfdb…f407c3
0.0.2Cached · Upstream SHA-256 matchedDownload646d02f1…3fef1c
0.0.3Cached · Upstream SHA-256 matchedDownload6b532f2f…3c3bd0
0.1.0Cached · Upstream SHA-256 matchedDownloaddceb9fa0…6ebec2
0.1.1Cached · Upstream SHA-256 matchedDownload1c9fd2c3…b2a687
0.1.2Cached · Upstream SHA-256 matchedDownloadc7e47fec…007b33
0.2.0Cached · Upstream SHA-256 matchedDownload0726479c…964cb7
0.2.2Cached · Upstream SHA-256 matchedDownload81f27124…e45118
0.3.0Cached · Upstream SHA-256 matchedDownload15c8f33e…85c540
0.4.0Cached · Upstream SHA-256 matchedDownload5317d965…dcf4e8
0.4.0+1Cached · Upstream SHA-256 matchedDownloadb96fc395…502958
0.4.0+2Cached · Upstream SHA-256 matchedDownload88ffd147…1baea4
0.5.0Cached · Upstream SHA-256 matchedDownload46657a87…2e6210
0.5.0+1Cached · Upstream SHA-256 matchedDownload19f8dbe0…1eab9d
0.5.0+2Cached · Upstream SHA-256 matchedDownload11a779f3…391b3b
0.5.0+3Cached · Upstream SHA-256 matchedDownload8704f762…b29c6d
0.5.0+4Cached · Upstream SHA-256 matchedDownloadc74c9ec3…d8bffd

Dependencies

analyzer "\u003e=0.27.1 \u003c0.30.0"

barback "^0.15.0"

build "^0.6.0"

code_transformers "\u003e=0.4.2+3 \u003c0.6.0"

crypto "\u003e=0.9.2 \u003c3.0.0"

glob "^1.1.0"

logging "^0.11.2"

path "^1.1.0"

shelf "^0.6.5"

shelf_static "^0.2.3"

stack_trace "^1.6.0"

watcher "^0.9.7"

yaml "^2.1.0"