Publish angel3_code_buffer
This commit is contained in:
parent
d561b97fd5
commit
5a4dd0fb2b
16 changed files with 54 additions and 55 deletions
|
@ -38,7 +38,7 @@
|
||||||
* Migrated angel_migration_runner to 3.0.0 (0/0 tests passed)
|
* Migrated angel_migration_runner to 3.0.0 (0/0 tests passed)
|
||||||
* Migrated angel_orm_test to 3.0.0 (0/0 tests passed)
|
* Migrated angel_orm_test to 3.0.0 (0/0 tests passed)
|
||||||
* Migrated angel_orm_postgres to 3.0.0 (51/54 tests passed)
|
* Migrated angel_orm_postgres to 3.0.0 (51/54 tests passed)
|
||||||
* Update orm-sdk-2.12.x boilerplate (in progress) <= Milestone 2
|
* Create orm-sdk-2.12.x boilerplate (in progress) <= Milestone 2
|
||||||
|
|
||||||
|
|
||||||
# 3.0.0 (Non NNBD)
|
# 3.0.0 (Non NNBD)
|
||||||
|
|
26
packages/code_buffer/.gitignore
vendored
26
packages/code_buffer/.gitignore
vendored
|
@ -1,15 +1,18 @@
|
||||||
# See https://www.dartlang.org/tools/private-files.html
|
# See https://www.dartlang.org/tools/private-files.html
|
||||||
|
|
||||||
# Files and directories created by pub
|
# Files and directories created by pub
|
||||||
|
.dart_tool
|
||||||
.packages
|
.packages
|
||||||
.pub/
|
.pub/
|
||||||
build/
|
build/
|
||||||
|
|
||||||
# If you're building an application, you may want to check-in your pubspec.lock
|
# If you're building an application, you may want to check-in your pubspec.lock
|
||||||
pubspec.lock
|
pubspec.lock
|
||||||
|
|
||||||
# Directory created by dartdoc
|
# Directory created by dartdoc
|
||||||
# If you don't generate documentation locally you can remove this line.
|
# If you don't generate documentation locally you can remove this line.
|
||||||
doc/api/
|
doc/api/
|
||||||
|
|
||||||
### Dart template
|
### Dart template
|
||||||
# See https://www.dartlang.org/tools/private-files.html
|
# See https://www.dartlang.org/tools/private-files.html
|
||||||
|
|
||||||
|
@ -44,25 +47,9 @@ doc/api/
|
||||||
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839
|
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839
|
||||||
|
|
||||||
# User-specific stuff:
|
# User-specific stuff:
|
||||||
.idea/**/workspace.xml
|
|
||||||
.idea/**/tasks.xml
|
|
||||||
.idea/dictionaries
|
|
||||||
|
|
||||||
# Sensitive or high-churn files:
|
## VsCode
|
||||||
.idea/**/dataSources/
|
.vscode/
|
||||||
.idea/**/dataSources.ids
|
|
||||||
.idea/**/dataSources.xml
|
|
||||||
.idea/**/dataSources.local.xml
|
|
||||||
.idea/**/sqlDataSources.xml
|
|
||||||
.idea/**/dynamic.xml
|
|
||||||
.idea/**/uiDesigner.xml
|
|
||||||
|
|
||||||
# Gradle:
|
|
||||||
.idea/**/gradle.xml
|
|
||||||
.idea/**/libraries
|
|
||||||
|
|
||||||
# Mongo Explorer plugin:
|
|
||||||
.idea/**/mongoSettings.xml
|
|
||||||
|
|
||||||
## File-based project format:
|
## File-based project format:
|
||||||
*.iws
|
*.iws
|
||||||
|
@ -70,9 +57,8 @@ doc/api/
|
||||||
## Plugin-specific files:
|
## Plugin-specific files:
|
||||||
|
|
||||||
# IntelliJ
|
# IntelliJ
|
||||||
|
.idea/
|
||||||
/out/
|
/out/
|
||||||
|
|
||||||
# mpeltonen/sbt-idea plugin
|
|
||||||
.idea_modules/
|
.idea_modules/
|
||||||
|
|
||||||
# JIRA plugin
|
# JIRA plugin
|
||||||
|
|
|
@ -1,2 +1,14 @@
|
||||||
Tobe O <thosakwe@gmail.com>
|
Primary Authors
|
||||||
Thomas Hii <thomashii@dukefirehawk.com>
|
===============
|
||||||
|
|
||||||
|
* __[Thomas Hii](dukefirehawk.apps@gmail.com)__
|
||||||
|
|
||||||
|
Thomas is the current maintainer of the code base. He has refactored and migrated the
|
||||||
|
code base to support NNBD.
|
||||||
|
|
||||||
|
* __[Tobe O](thosakwe@gmail.com)__
|
||||||
|
|
||||||
|
Tobe has written much of the original code prior to NNBD migration. He has moved on and
|
||||||
|
is no longer involved with the project.
|
||||||
|
|
||||||
|
Thomas Hii <dukefirehawk.apps@gmail.com>
|
|
@ -1,5 +1,4 @@
|
||||||
# 2.0.0
|
# 2.0.0
|
||||||
* Migrated to support Dart SDK 2.12.x NNBD
|
* Migrated to support Dart SDK 2.12.x NNBD
|
||||||
|
|
||||||
# 1.0.1
|
# 1.0.1
|
||||||
* Added `CodeBuffer.noWhitespace()`.
|
* Added `CodeBuffer.noWhitespace()`.
|
|
@ -1,6 +1,6 @@
|
||||||
MIT License
|
MIT License
|
||||||
|
|
||||||
Copyright (c) 2017 Tobe O
|
Copyright (c) 2021 dukefirehawk.com
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
of this software and associated documentation files (the "Software"), to deal
|
of this software and associated documentation files (the "Software"), to deal
|
||||||
|
|
|
@ -1,6 +1,8 @@
|
||||||
# code_buffer
|
# angel3_code_buffer
|
||||||
[![Pub](https://img.shields.io/pub/v/code_buffer.svg)](https://pub.dartlang.org/packages/code_buffer)
|
[![version](https://img.shields.io/badge/pub-v2.12.4-brightgreen)](https://pub.dartlang.org/packages/angel3_code_buffer)
|
||||||
[![build status](https://travis-ci.org/thosakwe/code_buffer.svg)](https://travis-ci.org/thosakwe/code_buffer)
|
[![Null Safety](https://img.shields.io/badge/null-safety-brightgreen)](https://dart.dev/null-safety)
|
||||||
|
|
||||||
|
[![License](https://img.shields.io/github/license/dukefirehawk/angel)](https://github.com/dukefirehawk/angel/tree/angel3/code_buffer)
|
||||||
|
|
||||||
An advanced StringBuffer geared toward generating code, and source maps.
|
An advanced StringBuffer geared toward generating code, and source maps.
|
||||||
|
|
||||||
|
@ -9,7 +11,7 @@ In your `pubspec.yaml`:
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
dependencies:
|
dependencies:
|
||||||
code_buffer: ^1.0.0
|
angel3_code_buffer: ^2.0.0
|
||||||
```
|
```
|
||||||
|
|
||||||
# Usage
|
# Usage
|
||||||
|
@ -17,7 +19,7 @@ Use a `CodeBuffer` just like any regular `StringBuffer`:
|
||||||
|
|
||||||
```dart
|
```dart
|
||||||
String someFunc() {
|
String someFunc() {
|
||||||
var buf = new CodeBuffer();
|
var buf = CodeBuffer();
|
||||||
buf
|
buf
|
||||||
..write('hello ')
|
..write('hello ')
|
||||||
..writeln('world!');
|
..writeln('world!');
|
||||||
|
@ -29,9 +31,9 @@ However, a `CodeBuffer` supports indentation.
|
||||||
|
|
||||||
```dart
|
```dart
|
||||||
void someOtherFunc() {
|
void someOtherFunc() {
|
||||||
var buf = new CodeBuffer();
|
var buf = CodeBuffer();
|
||||||
// Custom options...
|
// Custom options...
|
||||||
var buf = new CodeBuffer(newline: '\r\n', space: '\t', trailingNewline: true);
|
var buf = CodeBuffer(newline: '\r\n', space: '\t', trailingNewline: true);
|
||||||
|
|
||||||
// Any following lines will have an incremented indentation level...
|
// Any following lines will have an incremented indentation level...
|
||||||
buf.indent();
|
buf.indent();
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
import 'package:code_buffer/code_buffer.dart';
|
import 'package:angel3_code_buffer/angel3_code_buffer.dart';
|
||||||
import 'package:test/test.dart';
|
import 'package:test/test.dart';
|
||||||
|
|
||||||
/// Use a `CodeBuffer` just like any regular `StringBuffer`:
|
/// Use a `CodeBuffer` just like any regular `StringBuffer`:
|
||||||
|
@ -16,7 +16,8 @@ void someOtherFunc() {
|
||||||
|
|
||||||
// Custom options...
|
// Custom options...
|
||||||
// ignore: unused_local_variable
|
// ignore: unused_local_variable
|
||||||
var customBuf = new CodeBuffer(newline: '\r\n', space: '\t', trailingNewline: true);
|
var customBuf =
|
||||||
|
new CodeBuffer(newline: '\r\n', space: '\t', trailingNewline: true);
|
||||||
|
|
||||||
// Without whitespace..
|
// Without whitespace..
|
||||||
// ignore: unused_local_variable
|
// ignore: unused_local_variable
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
name: code_buffer
|
name: angel3_code_buffer
|
||||||
version: 2.0.0
|
version: 2.0.0
|
||||||
description: An advanced StringBuffer geared toward generating code, and source maps.
|
description: An advanced StringBuffer geared toward generating code, and source maps.
|
||||||
homepage: https://github.com/dukefirehawk/angel
|
homepage: https://github.com/dukefirehawk/angel/tree/angel3/packages/code_buffer
|
||||||
environment:
|
environment:
|
||||||
sdk: '>=2.12.0 <3.0.0'
|
sdk: '>=2.12.0 <3.0.0'
|
||||||
dependencies:
|
dependencies:
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
import 'package:code_buffer/code_buffer.dart';
|
import 'package:angel3_code_buffer/angel3_code_buffer.dart';
|
||||||
import 'package:test/test.dart';
|
import 'package:test/test.dart';
|
||||||
|
|
||||||
main() {
|
void main() {
|
||||||
var a = new CodeBuffer(), b = new CodeBuffer();
|
var a = CodeBuffer(), b = CodeBuffer();
|
||||||
|
|
||||||
setUp(() {
|
setUp(() {
|
||||||
a.writeln('outer block 1');
|
a.writeln('outer block 1');
|
||||||
|
@ -30,7 +30,7 @@ main() {
|
||||||
});
|
});
|
||||||
|
|
||||||
test('sets lastLine+lastSpan', () {
|
test('sets lastLine+lastSpan', () {
|
||||||
var c = new CodeBuffer()
|
var c = CodeBuffer()
|
||||||
..indent()
|
..indent()
|
||||||
..write('>')
|
..write('>')
|
||||||
..writeln('innermost');
|
..writeln('innermost');
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
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:test/test.dart';
|
import 'package:test/test.dart';
|
||||||
|
|
||||||
main() {
|
void main() {
|
||||||
var buf = new CodeBuffer();
|
var buf = CodeBuffer();
|
||||||
tearDown(buf.clear);
|
tearDown(buf.clear);
|
||||||
|
|
||||||
test('writeCharCode', () {
|
test('writeCharCode', () {
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
import 'package:charcode/charcode.dart';
|
import 'package:charcode/charcode.dart';
|
||||||
import 'package:code_buffer/code_buffer.dart';
|
|
||||||
import 'package:test/test.dart';
|
import 'package:test/test.dart';
|
||||||
|
import 'package:angel3_code_buffer/angel3_code_buffer.dart';
|
||||||
|
|
||||||
main() {
|
main() {
|
||||||
var buf = new CodeBuffer();
|
var buf = CodeBuffer();
|
||||||
tearDown(buf.clear);
|
tearDown(buf.clear);
|
||||||
|
|
||||||
test('writeCharCode', () {
|
test('writeCharCode', () {
|
||||||
|
@ -17,7 +17,7 @@ main() {
|
||||||
});
|
});
|
||||||
|
|
||||||
test('custom space', () {
|
test('custom space', () {
|
||||||
var b = new CodeBuffer(space: '+')
|
var b = CodeBuffer(space: '+')
|
||||||
..writeln('foo')
|
..writeln('foo')
|
||||||
..indent()
|
..indent()
|
||||||
..writeln('baz');
|
..writeln('baz');
|
||||||
|
@ -25,7 +25,7 @@ main() {
|
||||||
});
|
});
|
||||||
|
|
||||||
test('custom newline', () {
|
test('custom newline', () {
|
||||||
var b = new CodeBuffer(newline: 'N')
|
var b = CodeBuffer(newline: 'N')
|
||||||
..writeln('foo')
|
..writeln('foo')
|
||||||
..indent()
|
..indent()
|
||||||
..writeln('baz');
|
..writeln('baz');
|
||||||
|
@ -33,7 +33,7 @@ main() {
|
||||||
});
|
});
|
||||||
|
|
||||||
test('trailing newline', () {
|
test('trailing newline', () {
|
||||||
var b = new CodeBuffer(trailingNewline: true)..writeln('foo');
|
var b = CodeBuffer(trailingNewline: true)..writeln('foo');
|
||||||
expect(b.toString(), 'foo\n');
|
expect(b.toString(), 'foo\n');
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -61,12 +61,10 @@ class _Chain<T> extends ListParser<T> {
|
||||||
successful = false;
|
successful = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
//TODO: To be looked at
|
|
||||||
if (result.value != null) {
|
if (result.value != null) {
|
||||||
//print(result.value.runtimeType);
|
|
||||||
results.add(result.value!);
|
results.add(result.value!);
|
||||||
} else {
|
} else {
|
||||||
//print("NULL");
|
results.add("NULL" as T);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (result.span != null) {
|
if (result.span != null) {
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
name: combinator
|
name: combinator
|
||||||
version: 2.0.0
|
version: 2.0.0-beta.1
|
||||||
description: Packrat parser combinators that support static typing, generics, file spans, memoization, and more.
|
description: Packrat parser combinators that support static typing, generics, file spans, memoization, and more.
|
||||||
homepage: https://github.com/thosakwe/combinator.git
|
homepage: https://github.com/dukefirehawk/angel/tree/sdk-2.12.x_nnbd/packages/combinator
|
||||||
publish_to: none
|
publish_to: none
|
||||||
environment:
|
environment:
|
||||||
sdk: '>=2.12.0 <3.0.0'
|
sdk: '>=2.12.0 <3.0.0'
|
||||||
|
|
|
@ -29,6 +29,7 @@ dependencies:
|
||||||
path: packages/route
|
path: packages/route
|
||||||
charcode: ^1.2.0
|
charcode: ^1.2.0
|
||||||
combinator:
|
combinator:
|
||||||
|
# path: ../combinator
|
||||||
git:
|
git:
|
||||||
url: https://github.com/dukefirehawk/angel.git
|
url: https://github.com/dukefirehawk/angel.git
|
||||||
ref: sdk-2.12.x_nnbd
|
ref: sdk-2.12.x_nnbd
|
||||||
|
|
Loading…
Reference in a new issue