Skip to content

Commit d29315d

Browse files
authored
Rename forked packages for publishing on pub (#8)
Renaming forked by AngularDart Community packages to be able to publish and use them on `pub.dev`. Resolving builds and tests. Fix complained test analyses. New package names: angular -> ngdart (the existing ngdart package utility will be renamed to ngdart_cli) angular_ast -> ngast angular_compiler -> ngcompiler angular_forms -> ngforms angular_router -> ngrouter angular_test -> ngtest
1 parent ad4d56e commit d29315d

File tree

676 files changed

+3256
-2884
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

676 files changed

+3256
-2884
lines changed

.github/workflows/dart.yml

Lines changed: 396 additions & 396 deletions
Large diffs are not rendered by default.

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
**/build/
33
.packages
44
pubspec.lock
5+
*.log
56

67
# Ignore artifacts generated by "firebase"
78
.firebase/

README.md

Lines changed: 30 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,36 @@
1-
See https://github.com/angulardart for current updates on this project.
1+
## Forked and renamed by AndgularDart Community packages
2+
3+
See https://github.com/angulardart-community for current updates on this project.
24

35
## Packages
46

7+
[ngdart](https://github.com/angulardart-community/angular/tree/master/ngdart)
8+
[ngforms](https://github.com/angulardart-community/angular/tree/master/ngforms)
9+
[ngrouter](https://github.com/angulardart-community/angular/tree/master/ngrouter)
10+
[ngtest](https://github.com/angulardart-community/angular/tree/master/ngtest)
11+
[ngcomponents](https://github.com/angulardart-community/angular_components)
12+
[ngast](https://github.com/angulardart-community/angular/tree/master/ngast)
13+
[ngcompiler](https://github.com/angulardart-community/angular/tree/master/ngcompiler)
14+
[ngdart_cli](https://github.com/angulardart-community/ngdart_cli)
15+
16+
17+
## Resources
18+
19+
AngularDart Community web-site [https://angulardart.xyz](https://angulardart.xyz).
20+
21+
Source code Git repositories [https://github.com/angulardart-community](https://github.com/angulardart-community)
22+
23+
Join the [Gitter chat room]: https://gitter.im/angulardart/community to ask questions.
24+
25+
26+
27+
28+
29+
30+
## The original Packages (in the restricted maintenance mode)
31+
32+
See https://github.com/angulardart for current updates on this project.
33+
534
| Source code | Published Version |
635
|------------------------------|:------------------------------------------------------------------------------------------------------------------:|
736
| [angular] | [![Pub Package](https://img.shields.io/pub/v/angular.svg)](https://pub.dev/packages/angular) |
@@ -24,9 +53,3 @@ Included for completeness._
2453
[angular_forms]: https://github.com/angulardart/angular/tree/master/angular_forms
2554
[angular_router]: https://github.com/angulardart/angular/tree/master/angular_router
2655
[angular_test]: https://github.com/angulardart/angular/tree/master/angular_test
27-
28-
## Resources
29-
30-
Join the [Gitter chat room] to ask questions.
31-
32-
[Gitter chat room]: https://gitter.im/angulardart/community

_tests/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
This package is all the unit and component tests for `package:angular`. They
1+
This package is all the unit and component tests for `package:ngdart`. They
22
are maintained here in order to avoid declaring circular dependencies between
3-
`angular` and `angular_test`, as well as adding private testing infrastructure.
3+
`ngdart` and `ngtest`, as well as adding private testing infrastructure.

_tests/lib/compiler.dart

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ import 'package:build_test/build_test.dart' hide testBuilder;
99
import 'package:glob/glob.dart';
1010
import 'package:logging/logging.dart';
1111
import 'package:test/test.dart';
12-
import 'package:angular/src/build.dart';
13-
import 'package:angular_compiler/v2/context.dart';
12+
import 'package:ngdart/src/build.dart';
13+
import 'package:ngcompiler/v2/context.dart';
1414

1515
/// A 'test' build process (similar to the normal one).
1616
final Builder _testAngularBuilder = MultiplexingBuilder([
@@ -28,17 +28,17 @@ final Future<PackageAssetReader> _packageAssets = (() async {
2828
}
2929
final root = Platform.environment['PKG_ANGULAR_ROOT'];
3030
final path = '$runfiles/$root';
31-
if (!FileSystemEntity.isFileSync('$path/angular/lib/angular.dart')) {
32-
throw StateError('Could not find $path/angular/lib/angular.dart');
31+
if (!FileSystemEntity.isFileSync('$path/ngdart/lib/angular.dart')) {
32+
throw StateError('Could not find $path/ngdart/lib/angular.dart');
3333
}
34-
final pathToMeta = '$path/angular/lib/src/meta.dart';
34+
final pathToMeta = '$path/ngdart/lib/src/meta.dart';
3535
if (!FileSystemEntity.isFileSync(pathToMeta)) {
3636
throw StateError('Could not find $pathToMeta');
3737
}
38-
print('file://$path/angular/lib');
38+
print('file://$path/ngdart/lib');
3939
return PackageAssetReader.forPackages({
40-
ngPackage: '$path/angular/',
41-
ngCompiler: '$path/angular_compiler/',
40+
ngPackage: '$path/ngdart/',
41+
ngCompiler: '$path/ngcompiler/',
4242
});
4343
})();
4444

@@ -47,8 +47,8 @@ final Future<PackageAssetReader> _packageAssets = (() async {
4747
// **NOTE**: Be very careful changing this, there are hard-coded transformation
4848
// rules as part of open sourcing process to make sure this works both
4949
// externally and internally.
50-
const ngPackage = 'angular';
51-
const ngCompiler = 'angular_compiler';
50+
const ngPackage = 'ngdart';
51+
const ngCompiler = 'ngcompiler';
5252
const ngImport = 'package:$ngPackage/angular.dart';
5353
final _ngFiles = Glob('lib/**.dart');
5454

@@ -132,7 +132,7 @@ Future<void> _testBuilder(
132132
/// )
133133
/// ```
134134
///
135-
/// Note that `package:angular/**.dart` is always included.
135+
/// Note that `package:ngdart/**.dart` is always included.
136136
Future<void> compilesExpecting(
137137
String input, {
138138
String inputSource,

_tests/lib/matchers.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import 'dart:html';
22

33
import 'package:test/test.dart';
4-
import 'package:angular/angular.dart';
4+
import 'package:ngdart/angular.dart';
55

66
/// Matches textual content of an element including children.
77
Matcher hasTextContent(String expected) => _HasTextContent(expected);

_tests/lib/query_tests.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44

55
import 'package:collection/collection.dart';
66
import 'package:test/test.dart';
7-
import 'package:angular/angular.dart';
8-
import 'package:angular_test/angular_test.dart';
7+
import 'package:ngdart/angular.dart';
8+
import 'package:ngtest/angular_test.dart';
99

1010
/// A mixin for components that receive a list of child elements/directives.
1111
abstract class HasChildren<T> {

_tests/pubspec.yaml

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ environment:
55

66
dependencies:
77
# No strict dependencies, we always use dependency_overrides.
8-
angular:
9-
angular_test:
8+
ngdart:
9+
ngtest:
1010

1111
# Actual valid dependencies required.
1212
build_resolvers: ^2.0.0
@@ -16,7 +16,7 @@ dependencies:
1616

1717
dev_dependencies:
1818
# No strict dependencies, we always use dependency_overrides.
19-
angular_forms:
19+
ngforms:
2020

2121
# Actual valid dependencies required.
2222
analyzer: ^4.0.0
@@ -31,16 +31,16 @@ dev_dependencies:
3131

3232
# DO NOT REMOVE. We don't publish this package, it is just for testing.
3333
dependency_overrides:
34-
angular:
35-
path: ../angular
36-
angular_ast:
37-
path: ../angular_ast
38-
angular_compiler:
39-
path: ../angular_compiler
40-
angular_forms:
41-
path: ../angular_forms
42-
angular_router:
43-
path: ../angular_router
44-
angular_test:
45-
path: ../angular_test
34+
ngdart:
35+
path: ../ngdart
36+
ngast:
37+
path: ../ngast
38+
ngcompiler:
39+
path: ../ngcompiler
40+
ngforms:
41+
path: ../ngforms
42+
ngrouter:
43+
path: ../ngrouter
44+
ngtest:
45+
path: ../ngtest
4646
analyzer: ^4.0.0

_tests/test/bootstrap/run_app_test.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import 'dart:html';
77

88
import 'package:js/js.dart';
99
import 'package:test/test.dart';
10-
import 'package:angular/angular.dart';
10+
import 'package:ngdart/angular.dart';
1111

1212
import 'run_app_test.template.dart' as ng;
1313

0 commit comments

Comments
 (0)