workbook

Creator: coderz1093

Last updated:

0 purchases

workbook Image
workbook Images

Languages

Categories

Add to Cart

Description:

workbook

Workbook #
Make programs do something automatically with workbook. Write in pure dart.
Features #
Define tasks in dart and run them.
Getting started #
See example for the full example.
Add dependency #
Add workbook to pubspec.yaml dev_dependencies.
dev_dependencies:
workbook: <version>
copied to clipboard
Create script #
Create you script anywhere. (like scripts/main.dart)
├─lib
│ *.dart
└─scripts
main.dart
copied to clipboard
Make entry #
Add workbook to pubspec.yaml. And write down where you script is in workbook.entry. (like scripts/main.dart)
workbook:
entry: scripts/main.dart
copied to clipboard

workbook.entry has a default value scripts/main.dart

Define your tasks #
Define your tasks in your script.
import 'package:workbook/workbook.dart';

@task
void init() {
print('init');
}

@DefaultTask()
@Dependency(init)
void build() {
print('build');
}
copied to clipboard
Usage #
Run flutter pub run workbook (with flutter) or pub run workbook (only dart).
Preview version #
The package is not stable yet, and it won't be stable in a long time.

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.