File tree Expand file tree Collapse file tree 16 files changed +54
-81
lines changed
Expand file tree Collapse file tree 16 files changed +54
-81
lines changed Original file line number Diff line number Diff line change 11// Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file
22// for details. All rights reserved. Use of this source code is governed by a
33// BSD-style license that can be found in the LICENSE file.
4- library build.example.copy_builder;
5-
64import 'dart:async' ;
75
86import 'package:build/build.dart' ;
@@ -12,7 +10,7 @@ class CopyBuilder extends Builder {
1210 @override
1311 Future build (BuildStep buildStep) async {
1412 var input = buildStep.input;
15- var copy = new Asset (_copiedAssetId (input.id), input.contents );
13+ var copy = new Asset (_copiedAssetId (input.id), input.stringContents );
1614 await buildStep.writeAsString (copy);
1715 }
1816
Original file line number Diff line number Diff line change 11// Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file
22// for details. All rights reserved. Use of this source code is governed by a
33// BSD-style license that can be found in the LICENSE file.
4- library build.example.generate;
5-
64import 'package:build/build.dart' ;
75
86import 'copy_builder.dart' ;
Original file line number Diff line number Diff line change 11// Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file
22// for details. All rights reserved. Use of this source code is governed by a
33// BSD-style license that can be found in the LICENSE file.
4- library build.example.generate;
5-
64import 'package:build/build.dart' ;
75
86import 'package:e2e_example/copy_builder.dart' ;
Original file line number Diff line number Diff line change 11// Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file
22// for details. All rights reserved. Use of this source code is governed by a
33// BSD-style license that can be found in the LICENSE file.
4- library build;
5-
64export 'src/asset/asset.dart' ;
75export 'src/asset/id.dart' ;
86export 'src/builder/build_step.dart' ;
Original file line number Diff line number Diff line change 11// Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file
22// for details. All rights reserved. Use of this source code is governed by a
33// BSD-style license that can be found in the LICENSE file.
4- library build.src.asset.asset;
5-
64import 'id.dart' ;
75
86/// A fully realized asset whose content is available synchronously.
@@ -11,9 +9,9 @@ class Asset {
119 final AssetId id;
1210
1311 /// The content for this asset.
14- final String contents ;
12+ final String stringContents ;
1513
16- Asset (this .id, this .contents );
14+ Asset (this .id, this .stringContents );
1715
1816 String toString () => 'Asset: $id ' ;
1917}
Original file line number Diff line number Diff line change 11// Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file
22// for details. All rights reserved. Use of this source code is governed by a
33// BSD-style license that can be found in the LICENSE file.
4- library build.src.asset.id;
5-
64import 'package:path/path.dart' as pathos;
75
86/// Forked from the `barback` package.
Original file line number Diff line number Diff line change 11// Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file
22// for details. All rights reserved. Use of this source code is governed by a
33// BSD-style license that can be found in the LICENSE file.
4- library build.src.asset.reader;
5-
64import 'dart:async' ;
75import 'dart:convert' ;
86
Original file line number Diff line number Diff line change 11// Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file
22// for details. All rights reserved. Use of this source code is governed by a
33// BSD-style license that can be found in the LICENSE file.
4- library build.src.asset.writer;
5-
64import 'dart:async' ;
75import 'dart:convert' ;
86
Original file line number Diff line number Diff line change 11// Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file
22// for details. All rights reserved. Use of this source code is governed by a
33// BSD-style license that can be found in the LICENSE file.
4- library build.src.builder.build_step;
5-
64import 'dart:async' ;
75import 'dart:collection' ;
86import 'dart:convert' ;
Original file line number Diff line number Diff line change 11// Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file
22// for details. All rights reserved. Use of this source code is governed by a
33// BSD-style license that can be found in the LICENSE file.
4- library build.src.builder.builder;
5-
64import 'dart:async' ;
75
86import '../asset/id.dart' ;
You can’t perform that action at this time.
0 commit comments