Publish jael_preprocessor
This commit is contained in:
parent
b643cfc274
commit
091d7c93a3
6 changed files with 30 additions and 41 deletions
|
@ -1,16 +1,19 @@
|
|||
# jael_preprocessor
|
||||
[](https://pub.dartlang.org/packages/jael_preprocessor)
|
||||
[](https://travis-ci.org/angel-dart/jael)
|
||||
# jael3_preprocessor
|
||||
[](https://pub.dartlang.org/packages/jael3_preprocessor)
|
||||
[](https://dart.dev/null-safety)
|
||||
[](https://gitter.im/angel_dart/discussion)
|
||||
|
||||
[](https://github.com/dukefirehawk/angel/tree/angel3/packages/jael/jael_preprocessor/LICENSE)
|
||||
|
||||
A pre-processor for resolving blocks and includes within
|
||||
[Jael](https://github.com/angel-dart/jael) templates.
|
||||
[Jael](https://github.com/dukefirehawk/angel/tree/angel3/packages/jael/jael) templates.
|
||||
|
||||
# Installation
|
||||
In your `pubspec.yaml`:
|
||||
|
||||
```yaml
|
||||
dependencies:
|
||||
jael_prepreprocessor: ^1.0.0-alpha
|
||||
jael3_prepreprocessor: ^4.0.0
|
||||
```
|
||||
|
||||
# Usage
|
||||
|
@ -24,7 +27,7 @@ To keep things simple, just use the `resolve` function, which will
|
|||
take care of inheritance for you.
|
||||
|
||||
```dart
|
||||
import 'package:jael_preprocessor/jael_preprocessor.dart' as jael;
|
||||
import 'package:jael3_preprocessor/jael3_preprocessor.dart' as jael;
|
||||
|
||||
myFunction() async {
|
||||
var doc = await parseTemplateSomehow();
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
import 'dart:async';
|
||||
|
||||
import 'package:file/file.dart';
|
||||
import 'package:jael/jael.dart' as jael;
|
||||
import 'package:jael_preprocessor/jael_preprocessor.dart' as jael;
|
||||
import 'package:jael3/jael3.dart' as jael;
|
||||
import 'package:jael3_preprocessor/jael3_preprocessor.dart' as jael;
|
||||
|
||||
Future<jael.Document?> process(
|
||||
jael.Document doc, Directory dir, errorHandler(jael.JaelError e)) {
|
||||
|
|
|
@ -2,8 +2,8 @@ import 'dart:async';
|
|||
import 'dart:collection';
|
||||
import 'package:collection/collection.dart' show IterableExtension;
|
||||
import 'package:file/file.dart';
|
||||
import 'package:jael/jael.dart';
|
||||
import 'package:symbol_table/symbol_table.dart';
|
||||
import 'package:jael3/jael3.dart';
|
||||
import 'package:angel3_symbol_table/angel3_symbol_table.dart';
|
||||
|
||||
/// Modifies a Jael document.
|
||||
typedef FutureOr<Document>? Patcher(Document? document,
|
|
@ -1,28 +1,14 @@
|
|||
name: jael_preprocessor
|
||||
name: jael3_preprocessor
|
||||
version: 4.0.0
|
||||
description: A pre-processor for resolving blocks and includes within Jael templates.
|
||||
homepage: https://github.com/dukefirehawk/angel
|
||||
publish_to: none
|
||||
homepage: https://github.com/dukefirehawk/angel/tree/angel3/packages/jael/jael_preprocessor
|
||||
environment:
|
||||
sdk: '>=2.12.0 <3.0.0'
|
||||
dependencies:
|
||||
file: ^6.1.0
|
||||
jael:
|
||||
git:
|
||||
url: https://github.com/dukefirehawk/angel.git
|
||||
ref: sdk-2.12.x_nnbd
|
||||
path: packages/jael/jael
|
||||
symbol_table:
|
||||
git:
|
||||
url: https://github.com/dukefirehawk/angel.git
|
||||
ref: sdk-2.12.x_nnbd
|
||||
path: packages/symbol_table
|
||||
collection: ^1.15.0-nullsafety.4
|
||||
jael3: ^4.0.0
|
||||
angel3_symbol_table: ^2.0.0
|
||||
collection: ^1.15.0
|
||||
dev_dependencies:
|
||||
code_buffer:
|
||||
git:
|
||||
url: https://github.com/dukefirehawk/angel.git
|
||||
ref: sdk-2.12.x_nnbd
|
||||
path: packages/code_buffer
|
||||
|
||||
test: ^1.17.3
|
||||
angel3_code_buffer: ^2.0.0
|
||||
test: ^1.17.4
|
|
@ -1,12 +1,12 @@
|
|||
import 'package:code_buffer/code_buffer.dart';
|
||||
import 'package:angel3_code_buffer/angel3_code_buffer.dart';
|
||||
import 'package:file/file.dart';
|
||||
import 'package:file/memory.dart';
|
||||
import 'package:jael/jael.dart' as jael;
|
||||
import 'package:jael_preprocessor/jael_preprocessor.dart' as jael;
|
||||
import 'package:symbol_table/symbol_table.dart';
|
||||
import 'package:jael3/jael3.dart' as jael;
|
||||
import 'package:jael3_preprocessor/jael3_preprocessor.dart' as jael;
|
||||
import 'package:angel3_symbol_table/angel3_symbol_table.dart';
|
||||
import 'package:test/test.dart';
|
||||
|
||||
main() {
|
||||
void main() {
|
||||
late FileSystem fileSystem;
|
||||
|
||||
setUp(() {
|
||||
|
|
|
@ -1,12 +1,12 @@
|
|||
import 'package:code_buffer/code_buffer.dart';
|
||||
import 'package:angel3_code_buffer/angel3_code_buffer.dart';
|
||||
import 'package:file/file.dart';
|
||||
import 'package:file/memory.dart';
|
||||
import 'package:jael/jael.dart' as jael;
|
||||
import 'package:jael_preprocessor/jael_preprocessor.dart' as jael;
|
||||
import 'package:symbol_table/symbol_table.dart';
|
||||
import 'package:jael3/jael3.dart' as jael;
|
||||
import 'package:jael3_preprocessor/jael3_preprocessor.dart' as jael;
|
||||
import 'package:angel3_symbol_table/angel3_symbol_table.dart';
|
||||
import 'package:test/test.dart';
|
||||
|
||||
main() {
|
||||
void main() {
|
||||
late FileSystem fileSystem;
|
||||
|
||||
setUp(() {
|
||||
|
|
Loading…
Reference in a new issue