Skip to content
This repository has been archived by the owner on May 31, 2021. It is now read-only.

Commit

Permalink
Use pkg:build_runner (#507)
Browse files Browse the repository at this point in the history
  • Loading branch information
kevmoo authored May 18, 2018
1 parent 47f496e commit 67c71f0
Show file tree
Hide file tree
Showing 24 changed files with 362 additions and 231 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ env: # important: w/o this top-level env, no job will be allowed to fail.
- DISPLAY=:99.0
matrix:
- CI_TASK=tool/travis.sh
- CI_TASK=tool/version-check-and-update.sh
- CI_TASK=tool/version-check.sh
- CI_TASK=tool/build-check.sh
- CI_TASK=tool/web-angular-test.sh

Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 2.0.2

- Internal cleanup.

## 2.0.1

- All `web-` templates:
Expand Down
23 changes: 23 additions & 0 deletions build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Read about `build.yaml` at https://pub.dartlang.org/packages/build_config
targets:
$default:
sources:
include:
- tool/**
- pubspec.yaml
- lib/**
- templates/**
builders:
stagehand:
generate_for:
- lib/src/cli_app.dart
- lib/generators/*.dart
enabled: true

builders:
stagehand:
# See https://github.com/dart-lang/build/issues/1423
import: "../../../tool/builder.dart"
builder_factories: ["stagehandBuilder"]
build_extensions: {".dart": [".g.dart"]}
build_to: source
4 changes: 2 additions & 2 deletions lib/generators/console_full.dart
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
// license that can be found in the LICENSE file.

import '../src/common.dart';
import 'console_full_data.dart';
part 'console_full.g.dart';

/// A generator for a hello world command-line application.
class ConsoleFullGenerator extends DefaultGenerator {
ConsoleFullGenerator()
: super('console-full', 'Console Application',
'A command-line application sample.',
categories: const ['dart', 'console']) {
for (var file in decodeConcatenatedData(data)) {
for (var file in decodeConcatenatedData(_data)) {
addTemplateFile(file);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,19 @@
// All rights reserved. Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

const List<String> data = const [
// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'console_full.dart';

// **************************************************************************
// Generator: DataGenerator
// **************************************************************************

const _data = const <String>[
'.gitignore',
'text',
'''IyBGaWxlcyBhbmQgZGlyZWN0b3JpZXMgY3JlYXRlZCBieSBwdWIKLmRhcnRfdG9vbC8KLnBhY2th
'''
IyBGaWxlcyBhbmQgZGlyZWN0b3JpZXMgY3JlYXRlZCBieSBwdWIKLmRhcnRfdG9vbC8KLnBhY2th
Z2VzCi5wdWIvCmJ1aWxkLwojIFJlbW92ZSB0aGUgZm9sbG93aW5nIHBhdHRlcm4gaWYgeW91IHdp
c2ggdG8gY2hlY2sgaW4geW91ciBsb2NrIGZpbGUKcHVic3BlYy5sb2NrCgojIERpcmVjdG9yeSBj
cmVhdGVkIGJ5IGRhcnRkb2MKZG9jL2FwaS8K''',
Expand All @@ -14,13 +23,15 @@ cmVhdGVkIGJ5IGRhcnRkb2MKZG9jL2FwaS8K''',
'IyMgMS4wLjAKCi0gSW5pdGlhbCB2ZXJzaW9uLCBjcmVhdGVkIGJ5IFN0YWdlaGFuZAo=',
'README.md',
'text',
'''IyBfX3Byb2plY3ROYW1lX18KCkEgc2FtcGxlIGNvbW1hbmQtbGluZSBhcHBsaWNhdGlvbi4KCkNy
'''
IyBfX3Byb2plY3ROYW1lX18KCkEgc2FtcGxlIGNvbW1hbmQtbGluZSBhcHBsaWNhdGlvbi4KCkNy
ZWF0ZWQgZnJvbSB0ZW1wbGF0ZXMgbWFkZSBhdmFpbGFibGUgYnkgU3RhZ2VoYW5kIHVuZGVyIGEg
QlNELXN0eWxlCltsaWNlbnNlXShodHRwczovL2dpdGh1Yi5jb20vZGFydC1sYW5nL3N0YWdlaGFu
ZC9ibG9iL21hc3Rlci9MSUNFTlNFKS4K''',
'analysis_options.yaml',
'text',
'''YW5hbHl6ZXI6CiAg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jb21tYW5kLWxpbmUg
YXBwbGljYXRpb24uCiMgdmVyc2lvbjogMS4wLjAKIyBob21lcGFnZTogaHR0cHM6Ly93d3cuZXhh
bXBsZS5jb20KIyBhdXRob3I6IF9fYXV0aG9yX18gPGVtYWlsQGV4YW1wbGUuY29tPgoKZW52aXJv
bm1lbnQ6CiAgc2RrOiAnPj0yLjAuMC1kZXYuNTEuMCA8Mi4wLjAnCgojZGVwZW5kZW5jaWVzOgoj
ICBwYXRoOiBeMS40LjEKCmRldl9kZXBlbmRlbmNpZXM6CiAgdGVzdDogXjAuMTIuMzAK''',
'test/__projectName___test.dart',
'text',
'''aW1wb3J0ICdwYWNrYWdlOl9fcHJvamVjdE5hbWVfXy9fX3Byb2plY3ROYW1lX18uZGFydCc7Cmlt
'''
aW1wb3J0ICdwYWNrYWdlOl9fcHJvamVjdE5hbWVfXy9fX3Byb2plY3ROYW1lX18uZGFydCc7Cmlt
cG9ydCAncGFja2FnZTp0ZXN0L3Rlc3QuZGFydCc7Cgp2b2lkIG1haW4oKSB7CiAgdGVzdCgnY2Fs
Y3VsYXRlJywgKCkgewogICAgZXhwZWN0KGNhbGN1bGF0ZSgpLCA0Mik7CiAgfSk7Cn0K'''
];
4 changes: 2 additions & 2 deletions lib/generators/package_simple.dart
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
// license that can be found in the LICENSE file.

import '../src/common.dart';
import 'package_simple_data.dart';
part 'package_simple.g.dart';

/// A generator for a pub library.
class PackageSimpleGenerator extends DefaultGenerator {
PackageSimpleGenerator()
: super('package-simple', 'Dart Package',
'A starting point for Dart libraries or applications.',
categories: const ['dart']) {
for (var file in decodeConcatenatedData(data)) {
for (var file in decodeConcatenatedData(_data)) {
addTemplateFile(file);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,19 @@
// All rights reserved. Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

const List<String> data = const [
// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'package_simple.dart';

// **************************************************************************
// Generator: DataGenerator
// **************************************************************************

const _data = const <String>[
'.gitignore',
'text',
'''IyBGaWxlcyBhbmQgZGlyZWN0b3JpZXMgY3JlYXRlZCBieSBwdWIKLmRhcnRfdG9vbC8KLnBhY2th
'''
IyBGaWxlcyBhbmQgZGlyZWN0b3JpZXMgY3JlYXRlZCBieSBwdWIKLmRhcnRfdG9vbC8KLnBhY2th
Z2VzCi5wdWIvCmJ1aWxkLwojIFJlbW92ZSB0aGUgZm9sbG93aW5nIHBhdHRlcm4gaWYgeW91IHdp
c2ggdG8gY2hlY2sgaW4geW91ciBsb2NrIGZpbGUKcHVic3BlYy5sb2NrCgojIERpcmVjdG9yeSBj
cmVhdGVkIGJ5IGRhcnRkb2MKZG9jL2FwaS8K''',
Expand All @@ -14,7 +23,8 @@ cmVhdGVkIGJ5IGRhcnRkb2MKZG9jL2FwaS8K''',
'IyMgMS4wLjAKCi0gSW5pdGlhbCB2ZXJzaW9uLCBjcmVhdGVkIGJ5IFN0YWdlaGFuZAo=',
'README.md',
'text',
'''IyBfX3Byb2plY3ROYW1lX18KCkEgbGlicmFyeSBmb3IgRGFydCBkZXZlbG9wZXJzLgoKQ3JlYXRl
'''
IyBfX3Byb2plY3ROYW1lX18KCkEgbGlicmFyeSBmb3IgRGFydCBkZXZlbG9wZXJzLgoKQ3JlYXRl
ZCBmcm9tIHRlbXBsYXRlcyBtYWRlIGF2YWlsYWJsZSBieSBTdGFnZWhhbmQgdW5kZXIgYSBCU0Qt
c3R5bGUKW2xpY2Vuc2VdKGh0dHBzOi8vZ2l0aHViLmNvbS9kYXJ0LWxhbmcvc3RhZ2VoYW5kL2Js
b2IvbWFzdGVyL0xJQ0VOU0UpLgoKIyMgVXNhZ2UKCkEgc2ltcGxlIHVzYWdlIGV4YW1wbGU6Cgog
Expand All @@ -25,7 +35,8 @@ Z3MgYXQgdGhlIFtpc3N1ZSB0cmFja2VyXVt0cmFja2VyXS4KClt0cmFja2VyXTogaHR0cDovL2V4
YW1wbGUuY29tL2lzc3Vlcy9yZXBsYWNlbWUK''',
'analysis_options.yaml',
'text',
'''YW5hbHl6ZXI6CiAgc3Ryb25nLW1vZGU6IHRydWUKIyAgIGV4Y2x1ZGU6CiMgICAgIC0gcGF0aC90
'''
YW5hbHl6ZXI6CiAgc3Ryb25nLW1vZGU6IHRydWUKIyAgIGV4Y2x1ZGU6CiMgICAgIC0gcGF0aC90
by9leGNsdWRlZC9maWxlcy8qKgoKIyBMaW50IHJ1bGVzIGFuZCBkb2N1bWVudGF0aW9uLCBzZWUg
aHR0cDovL2RhcnQtbGFuZy5naXRodWIuaW8vbGludGVyL2xpbnRzCmxpbnRlcjoKICBydWxlczoK
ICAgIC0gY2FuY2VsX3N1YnNjcmlwdGlvbnMKICAgIC0gaGFzaF9hbmRfZXF1YWxzCiAgICAtIGl0
Expand All @@ -34,31 +45,36 @@ ZF90eXBlCiAgICAtIHRlc3RfdHlwZXNfaW5fZXF1YWxzCiAgICAtIHVucmVsYXRlZF90eXBlX2Vx
dWFsaXR5X2NoZWNrcwogICAgLSB2YWxpZF9yZWdleHBzCg==''',
'example/__projectName___example.dart',
'text',
'''aW1wb3J0ICdwYWNrYWdlOl9fcHJvamVjdE5hbWVfXy9fX3Byb2plY3ROYW1lX18uZGFydCc7Cgpt
'''
aW1wb3J0ICdwYWNrYWdlOl9fcHJvamVjdE5hbWVfXy9fX3Byb2plY3ROYW1lX18uZGFydCc7Cgpt
YWluKCkgewogIHZhciBhd2Vzb21lID0gbmV3IEF3ZXNvbWUoKTsKICBwcmludCgnYXdlc29tZTog
JHthd2Vzb21lLmlzQXdlc29tZX0nKTsKfQo=''',
'lib/__projectName__.dart',
'text',
'''Ly8vIFN1cHBvcnQgZm9yIGRvaW5nIHNvbWV0aGluZyBhd2Vzb21lLgovLy8KLy8vIE1vcmUgZGFy
'''
Ly8vIFN1cHBvcnQgZm9yIGRvaW5nIHNvbWV0aGluZyBhd2Vzb21lLgovLy8KLy8vIE1vcmU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Ol9fcHJvamVjdE5hbWVfXy9fX3Byb2plY3ROYW1lX18uZGFydCc7Cmlt
'''
aW1wb3J0ICdwYWNrYWdlOl9fcHJvamVjdE5hbWVfXy9fX3Byb2plY3ROYW1lX18uZGFydCc7Cmlt
cG9ydCAncGFja2FnZTp0ZXN0L3Rlc3QuZGFydCc7Cgp2b2lkIG1haW4oKSB7CiAgZ3JvdXAoJ0Eg
Z3JvdXAgb2YgdGVzdHMnLCAoKSB7CiAgICBBd2Vzb21lIGF3ZXNvbWU7CgogICAgc2V0VXAoKCkg
ewogICAgICBhd2Vzb21lID0gbmV3IEF3ZXNvbWUoKTsKICAgIH0pOwoKICAgIHRlc3QoJ0ZpcnN0
Expand Down
4 changes: 2 additions & 2 deletions lib/generators/server_shelf.dart
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
// license that can be found in the LICENSE file.

import '../src/common.dart';
import 'server_shelf_data.dart';
part 'server_shelf.g.dart';

/// A generator for a server app built on `package:shelf`.
class ServerShelfGenerator extends DefaultGenerator {
ServerShelfGenerator()
: super('server-shelf', 'Web Server',
'A web server built using the shelf package.',
categories: const ['dart', 'shelf', 'server']) {
for (var file in decodeConcatenatedData(data)) {
for (var file in decodeConcatenatedData(_data)) {
addTemplateFile(file);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,19 @@
// All rights reserved. Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

const List<String> data = const [
// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'server_shelf.dart';

// **************************************************************************
// Generator: DataGenerator
// **************************************************************************

const _data = const <String>[
'.gitignore',
'text',
'''IyBGaWxlcyBhbmQgZGlyZWN0b3JpZXMgY3JlYXRlZCBieSBwdWIKLmRhcnRfdG9vbC8KLnBhY2th
'''
IyBGaWxlcyBhbmQgZGlyZWN0b3JpZXMgY3JlYXRlZCBieSBwdWIKLmRhcnRfdG9vbC8KLnBhY2th
Z2VzCi5wdWIvCmJ1aWxkLwojIF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yX18gPGVtYWlsQGV4YW1wbGUuY29t
PgoKZW52aXJvbm1lbnQ6CiAgc2RrOiAnPj0yLjAuMC1kZXYuNTEuMCA8Mi4wLjAnCgpkZXBlbmRl
Expand Down
4 changes: 2 additions & 2 deletions lib/generators/web_angular.dart
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
// license that can be found in the LICENSE file.

import '../src/common.dart';
import 'web_angular_data.dart';
part 'web_angular.g.dart';

/// A generator for an Angular 2 application.
class WebAngularGenerator extends DefaultGenerator {
WebAngularGenerator()
: super('web-angular', 'AngularDart Web App',
'A web app with material design components.',
categories: const ['dart', 'web']) {
for (var file in decodeConcatenatedData(data)) {
for (var file in decodeConcatenatedData(_data)) {
addTemplateFile(file);
}

Expand Down
Loading

0 comments on commit 67c71f0

Please sign in to comment.