Remove old build scripts

This commit is contained in:
Tobe O 2018-08-24 08:57:04 -04:00
parent 1f96cfd8d4
commit 7ffb92ac30
4 changed files with 0 additions and 89 deletions

View file

@ -1,7 +0,0 @@
<component name="ProjectRunConfigurationManager">
<configuration default="false" name="postgres::build.dart" type="DartCommandLineRunConfigurationType" factoryName="Dart Command Line Application" singleton="true">
<option name="filePath" value="$PROJECT_DIR$/angel_orm_generator/tool/build.dart" />
<option name="workingDirectory" value="$PROJECT_DIR$/angel_orm_generator" />
<method />
</configuration>
</component>

View file

@ -1,74 +0,0 @@
import 'package:build_runner/build_runner.dart';
import 'package:source_gen/source_gen.dart';
import 'package:angel_orm_generator/angel_orm_generator.dart';
import 'package:angel_serialize_generator/angel_serialize_generator.dart';
const String packageName = 'angel_orm_generator';
const List<String> allModels = const ['test/models/*.dart'];
const List<String> standaloneModels = const [
'test/models/author.dart',
'test/models/car.dart',
'test/models/foot.dart',
'test/models/fruit.dart',
'test/models/order.dart',
'test/models/role.dart'
];
const List<String> dependentModels = const [
'test/models/book.dart',
'test/models/customer.dart',
'test/models/leg.dart',
'test/models/tree.dart',
'test/models/user.dart'
];
final List<BuildAction> actions = [
new BuildAction(
new PartBuilder(const [const JsonModelGenerator()]),
packageName,
inputs: standaloneModels,
),
new BuildAction(
new PartBuilder(const [const JsonModelGenerator()]),
packageName,
inputs: dependentModels,
),
new BuildAction(
new LibraryBuilder(
const PostgresOrmGenerator(),
generatedExtension: '.orm.g.dart',
),
packageName,
inputs: standaloneModels,
),
new BuildAction(
new LibraryBuilder(
const PostgresOrmGenerator(),
generatedExtension: '.orm.g.dart',
),
packageName,
inputs: dependentModels,
),
new BuildAction(
new LibraryBuilder(
const PostgresServiceGenerator(),
generatedExtension: '.service.g.dart',
),
packageName,
inputs: allModels,
),
new BuildAction(
new LibraryBuilder(
const MigrationGenerator(),
generatedExtension: '.migration.g.dart',
),
packageName,
inputs: allModels,
),
new BuildAction(
const SqlMigrationBuilder(
temporary: true,
),
packageName,
inputs: allModels,
),
];

View file

@ -1,4 +0,0 @@
import 'package:build_runner/build_runner.dart';
import 'actions.dart';
main() => build(actions, deleteFilesByDefault: true);

View file

@ -1,4 +0,0 @@
import 'package:build_runner/build_runner.dart';
import 'actions.dart';
main() => watch(actions, deleteFilesByDefault: true);