Publish jael

This commit is contained in:
thomashii 2021-05-15 18:16:37 +08:00
parent eabc1ba828
commit b643cfc274
17 changed files with 31 additions and 31 deletions

View file

@ -1,6 +1,5 @@
# 4.0.0 # 4.0.0
* Migrated to support Dart SDK 2.12.x NNBD * Migrated to support Dart SDK 2.12.x NNBD
* Renamed jael to jael3
# 3.0.0 # 3.0.0
* Migrated to work with Dart SDK 2.12.x Non NNBD * Migrated to work with Dart SDK 2.12.x Non NNBD

View file

@ -3,7 +3,7 @@
[![Null Safety](https://img.shields.io/badge/null-safety-brightgreen)](https://dart.dev/null-safety) [![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) [![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/jael3/LICENSE) [![License](https://img.shields.io/github/license/dukefirehawk/angel)](https://github.com/dukefirehawk/angel/tree/angel3/packages/jael/jael/LICENSE)
A simple server-side HTML templating engine for Dart. A simple server-side HTML templating engine for Dart.
@ -18,7 +18,7 @@ dependencies:
``` ```
# API # API
The core `jael` package exports classes for parsing Jael templates, The core `jael3` package exports classes for parsing Jael templates,
an AST library, and a `Renderer` class that generates HTML on-the-fly. an AST library, and a `Renderer` class that generates HTML on-the-fly.
```dart ```dart

View file

@ -2,7 +2,7 @@ import 'dart:async';
import 'dart:convert'; import 'dart:convert';
import 'dart:io'; import 'dart:io';
import 'package:args/args.dart'; import 'package:args/args.dart';
import 'package:jael/jael.dart'; import 'package:jael3/jael3.dart';
var argParser = ArgParser() var argParser = ArgParser()
..addOption('line-length', ..addOption('line-length',
@ -29,7 +29,7 @@ var argParser = ArgParser()
help: 'Overwrite input files with formatted output.', help: 'Overwrite input files with formatted output.',
negatable: false); negatable: false);
main(List<String> args) async { void main(List<String> args) async {
try { try {
var argResults = argParser.parse(args); var argResults = argParser.parse(args);
if (argResults['help'] as bool) { if (argResults['help'] as bool) {
@ -41,7 +41,7 @@ main(List<String> args) async {
if (argResults.rest.isEmpty) { if (argResults.rest.isEmpty) {
var text = await stdin.transform(utf8.decoder).join(); var text = await stdin.transform(utf8.decoder).join();
var result = var result =
await format(argResults['stdin-name'] as String?, text, argResults); format(argResults['stdin-name'] as String?, text, argResults);
if (result != null) print(result); if (result != null) print(result);
} else { } else {
for (var arg in argResults.rest) { for (var arg in argResults.rest) {

View file

@ -1,10 +1,10 @@
import 'dart:io'; import 'dart:io';
import 'package:charcode/charcode.dart'; import 'package:charcode/charcode.dart';
import 'package:code_buffer/code_buffer.dart'; import 'package:angel3_code_buffer/angel3_code_buffer.dart';
import 'package:jael/jael.dart' as jael; import 'package:jael3/jael3.dart' as jael;
import 'package:symbol_table/symbol_table.dart'; import 'package:angel3_symbol_table/angel3_symbol_table.dart';
main() { void main() {
while (true) { while (true) {
var buf = StringBuffer(); var buf = StringBuffer();
int ch; int ch;

View file

@ -1,5 +1,5 @@
import 'package:source_span/source_span.dart'; import 'package:source_span/source_span.dart';
import 'package:symbol_table/symbol_table.dart'; import 'package:angel3_symbol_table/angel3_symbol_table.dart';
import 'ast_node.dart'; import 'ast_node.dart';
import 'expression.dart'; import 'expression.dart';
import 'identifier.dart'; import 'identifier.dart';

View file

@ -1,5 +1,5 @@
import 'package:source_span/source_span.dart'; import 'package:source_span/source_span.dart';
import 'package:symbol_table/symbol_table.dart'; import 'package:angel3_symbol_table/angel3_symbol_table.dart';
import 'ast_node.dart'; import 'ast_node.dart';
import 'token.dart'; import 'token.dart';

View file

@ -1,5 +1,5 @@
import 'package:source_span/source_span.dart'; import 'package:source_span/source_span.dart';
import 'package:symbol_table/symbol_table.dart'; import 'package:angel3_symbol_table/angel3_symbol_table.dart';
import 'expression.dart'; import 'expression.dart';
import 'token.dart'; import 'token.dart';

View file

@ -1,6 +1,6 @@
import 'dart:mirrors'; import 'dart:mirrors';
import 'package:source_span/source_span.dart'; import 'package:source_span/source_span.dart';
import 'package:symbol_table/symbol_table.dart'; import 'package:angel3_symbol_table/angel3_symbol_table.dart';
import 'expression.dart'; import 'expression.dart';
import 'identifier.dart'; import 'identifier.dart';
import 'token.dart'; import 'token.dart';

View file

@ -1,6 +1,6 @@
import 'package:charcode/charcode.dart'; import 'package:charcode/charcode.dart';
import 'package:source_span/source_span.dart'; import 'package:source_span/source_span.dart';
import 'package:symbol_table/symbol_table.dart'; import 'package:angel3_symbol_table/angel3_symbol_table.dart';
import '../ast/ast.dart'; import '../ast/ast.dart';
import 'expression.dart'; import 'expression.dart';
import 'token.dart'; import 'token.dart';

View file

@ -1,8 +1,8 @@
import 'dart:convert'; import 'dart:convert';
import 'package:code_buffer/code_buffer.dart'; import 'package:angel3_code_buffer/angel3_code_buffer.dart';
import 'package:collection/collection.dart' show IterableExtension; import 'package:collection/collection.dart' show IterableExtension;
import 'package:source_span/source_span.dart'; //import 'package:source_span/source_span.dart';
import 'package:symbol_table/symbol_table.dart'; import 'package:angel3_symbol_table/angel3_symbol_table.dart';
import 'ast/ast.dart'; import 'ast/ast.dart';
import 'text/parser.dart'; import 'text/parser.dart';
import 'text/scanner.dart'; import 'text/scanner.dart';

View file

@ -1,7 +1,7 @@
name: jael3 name: jael3
version: 4.0.0 version: 4.0.0
description: A simple server-side HTML templating engine for Dart. Comparable to Blade or Liquid. description: A simple server-side HTML templating engine for Dart. Comparable to Blade or Liquid.
homepage: https://github.com/dukefirehawk/angel/tree/angel3/packages/jael/jael3 homepage: https://github.com/dukefirehawk/angel/tree/angel3/packages/jael/jael
environment: environment:
sdk: '>=2.12.0 <3.0.0' sdk: '>=2.12.0 <3.0.0'
dependencies: dependencies:
@ -12,6 +12,7 @@ dependencies:
source_span: ^1.0.0 source_span: ^1.0.0
string_scanner: ^1.0.0 string_scanner: ^1.0.0
collection: ^1.15.0 collection: ^1.15.0
matcher: ^0.12.10
dev_dependencies: dev_dependencies:
pedantic: ^1.11.0 pedantic: ^1.11.0
test: ^1.17.4 test: ^1.17.4

View file

@ -1,7 +1,7 @@
import 'dart:math'; import 'dart:math';
import 'package:code_buffer/code_buffer.dart'; import 'package:angel3_code_buffer/angel3_code_buffer.dart';
import 'package:jael/jael.dart' as jael; import 'package:jael3/jael3.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';
void main() { void main() {

View file

@ -1,5 +1,5 @@
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';
import 'package:test/test.dart'; import 'package:test/test.dart';
void main() { void main() {

View file

@ -1,6 +1,6 @@
import 'package:code_buffer/code_buffer.dart'; import 'package:angel3_code_buffer/angel3_code_buffer.dart';
import 'package:jael/jael.dart' as jael; import 'package:jael3/jael3.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';
void main() { void main() {

View file

@ -1,5 +1,5 @@
import 'package:matcher/matcher.dart'; import 'package:matcher/matcher.dart';
import 'package:jael/src/ast/token.dart'; import 'package:jael3/src/ast/token.dart';
Matcher isToken(TokenType type, [String? text]) => _IsToken(type, text); Matcher isToken(TokenType type, [String? text]) => _IsToken(type, text);

View file

@ -1,5 +1,5 @@
import 'package:jael/src/ast/token.dart'; import 'package:jael3/src/ast/token.dart';
import 'package:jael/src/text/scanner.dart'; import 'package:jael3/src/text/scanner.dart';
import 'package:test/test.dart'; import 'package:test/test.dart';
import 'common.dart'; import 'common.dart';