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
|
# jael3_preprocessor
|
||||||
[![Pub](https://img.shields.io/pub/v/jael_preprocessor.svg)](https://pub.dartlang.org/packages/jael_preprocessor)
|
[![version](https://img.shields.io/badge/pub-v4.0.0-brightgreen)](https://pub.dartlang.org/packages/jael3_preprocessor)
|
||||||
[![build status](https://travis-ci.org/angel-dart/jael.svg)](https://travis-ci.org/angel-dart/jael)
|
[![Null Safety](https://img.shields.io/badge/null-safety-brightgreen)](https://dart.dev/null-safety)
|
||||||
|
[![Gitter](https://img.shields.io/gitter/room/angel_dart/discussion)](https://gitter.im/angel_dart/discussion)
|
||||||
|
|
||||||
|
[![License](https://img.shields.io/github/license/dukefirehawk/angel)](https://github.com/dukefirehawk/angel/tree/angel3/packages/jael/jael_preprocessor/LICENSE)
|
||||||
|
|
||||||
A pre-processor for resolving blocks and includes within
|
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
|
# Installation
|
||||||
In your `pubspec.yaml`:
|
In your `pubspec.yaml`:
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
dependencies:
|
dependencies:
|
||||||
jael_prepreprocessor: ^1.0.0-alpha
|
jael3_prepreprocessor: ^4.0.0
|
||||||
```
|
```
|
||||||
|
|
||||||
# Usage
|
# Usage
|
||||||
|
@ -24,7 +27,7 @@ To keep things simple, just use the `resolve` function, which will
|
||||||
take care of inheritance for you.
|
take care of inheritance for you.
|
||||||
|
|
||||||
```dart
|
```dart
|
||||||
import 'package:jael_preprocessor/jael_preprocessor.dart' as jael;
|
import 'package:jael3_preprocessor/jael3_preprocessor.dart' as jael;
|
||||||
|
|
||||||
myFunction() async {
|
myFunction() async {
|
||||||
var doc = await parseTemplateSomehow();
|
var doc = await parseTemplateSomehow();
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
import 'dart:async';
|
import 'dart:async';
|
||||||
|
|
||||||
import 'package:file/file.dart';
|
import 'package:file/file.dart';
|
||||||
import 'package:jael/jael.dart' as jael;
|
import 'package:jael3/jael3.dart' as jael;
|
||||||
import 'package:jael_preprocessor/jael_preprocessor.dart' as jael;
|
import 'package:jael3_preprocessor/jael3_preprocessor.dart' as jael;
|
||||||
|
|
||||||
Future<jael.Document?> process(
|
Future<jael.Document?> process(
|
||||||
jael.Document doc, Directory dir, errorHandler(jael.JaelError e)) {
|
jael.Document doc, Directory dir, errorHandler(jael.JaelError e)) {
|
||||||
|
|
|
@ -2,8 +2,8 @@ import 'dart:async';
|
||||||
import 'dart:collection';
|
import 'dart:collection';
|
||||||
import 'package:collection/collection.dart' show IterableExtension;
|
import 'package:collection/collection.dart' show IterableExtension;
|
||||||
import 'package:file/file.dart';
|
import 'package:file/file.dart';
|
||||||
import 'package:jael/jael.dart';
|
import 'package:jael3/jael3.dart';
|
||||||
import 'package:symbol_table/symbol_table.dart';
|
import 'package:angel3_symbol_table/angel3_symbol_table.dart';
|
||||||
|
|
||||||
/// Modifies a Jael document.
|
/// Modifies a Jael document.
|
||||||
typedef FutureOr<Document>? Patcher(Document? document,
|
typedef FutureOr<Document>? Patcher(Document? document,
|
|
@ -1,28 +1,14 @@
|
||||||
name: jael_preprocessor
|
name: jael3_preprocessor
|
||||||
version: 4.0.0
|
version: 4.0.0
|
||||||
description: A pre-processor for resolving blocks and includes within Jael templates.
|
description: A pre-processor for resolving blocks and includes within Jael templates.
|
||||||
homepage: https://github.com/dukefirehawk/angel
|
homepage: https://github.com/dukefirehawk/angel/tree/angel3/packages/jael/jael_preprocessor
|
||||||
publish_to: none
|
|
||||||
environment:
|
environment:
|
||||||
sdk: '>=2.12.0 <3.0.0'
|
sdk: '>=2.12.0 <3.0.0'
|
||||||
dependencies:
|
dependencies:
|
||||||
file: ^6.1.0
|
file: ^6.1.0
|
||||||
jael:
|
jael3: ^4.0.0
|
||||||
git:
|
angel3_symbol_table: ^2.0.0
|
||||||
url: https://github.com/dukefirehawk/angel.git
|
collection: ^1.15.0
|
||||||
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
|
|
||||||
dev_dependencies:
|
dev_dependencies:
|
||||||
code_buffer:
|
angel3_code_buffer: ^2.0.0
|
||||||
git:
|
test: ^1.17.4
|
||||||
url: https://github.com/dukefirehawk/angel.git
|
|
||||||
ref: sdk-2.12.x_nnbd
|
|
||||||
path: packages/code_buffer
|
|
||||||
|
|
||||||
test: ^1.17.3
|
|
|
@ -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/file.dart';
|
||||||
import 'package:file/memory.dart';
|
import 'package:file/memory.dart';
|
||||||
import 'package:jael/jael.dart' as jael;
|
import 'package:jael3/jael3.dart' as jael;
|
||||||
import 'package:jael_preprocessor/jael_preprocessor.dart' as jael;
|
import 'package:jael3_preprocessor/jael3_preprocessor.dart' as jael;
|
||||||
import 'package:symbol_table/symbol_table.dart';
|
import 'package:angel3_symbol_table/angel3_symbol_table.dart';
|
||||||
import 'package:test/test.dart';
|
import 'package:test/test.dart';
|
||||||
|
|
||||||
main() {
|
void main() {
|
||||||
late FileSystem fileSystem;
|
late FileSystem fileSystem;
|
||||||
|
|
||||||
setUp(() {
|
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/file.dart';
|
||||||
import 'package:file/memory.dart';
|
import 'package:file/memory.dart';
|
||||||
import 'package:jael/jael.dart' as jael;
|
import 'package:jael3/jael3.dart' as jael;
|
||||||
import 'package:jael_preprocessor/jael_preprocessor.dart' as jael;
|
import 'package:jael3_preprocessor/jael3_preprocessor.dart' as jael;
|
||||||
import 'package:symbol_table/symbol_table.dart';
|
import 'package:angel3_symbol_table/angel3_symbol_table.dart';
|
||||||
import 'package:test/test.dart';
|
import 'package:test/test.dart';
|
||||||
|
|
||||||
main() {
|
void main() {
|
||||||
late FileSystem fileSystem;
|
late FileSystem fileSystem;
|
||||||
|
|
||||||
setUp(() {
|
setUp(() {
|
||||||
|
|
Loading…
Reference in a new issue