forked from dart-archive/angular_components_example
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuilders.dart
More file actions
20 lines (17 loc) · 948 Bytes
/
builders.dart
File metadata and controls
20 lines (17 loc) · 948 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
import 'package:build/build.dart';
import 'package:angular_gallery/builder/gallery_app_builder.dart';
import 'package:angular_gallery/builder/gallery_lib_builder.dart';
/// Builders used to generate files in the gallery app target.
Builder galleryAppBuilder(BuilderOptions options) => MultiplexingBuilder([
GalleryWebBuilder(options.config['galleryTitle'] ?? 'Example Gallery'),
HomeDartBuilder(),
]);
/// Builder used to generate files in the gallery library target.
Builder galleryLibBuilder(BuilderOptions options) => GalleryLibBuilder(
options.config['galleryTitle'] ?? 'Example Gallery',
options.config['styleUrls'].cast<String>(),
(options.config['examples'] as String).split(','),
);