Skip to content

Commit

Permalink
angulardart-community#7 rename package directories
Browse files Browse the repository at this point in the history
  • Loading branch information
IgorBabalich committed Jun 11, 2022
1 parent 112aa40 commit bfaa50a
Show file tree
Hide file tree
Showing 483 changed files with 172 additions and 171 deletions.
192 changes: 96 additions & 96 deletions .github/workflows/dart.yml

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
**/build/
.packages
pubspec.lock
*.log

# Ignore artifacts generated by "firebase"
.firebase/
Expand Down
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@ See https://github.com/angulardart-community for current updates on this project

## Packages

[ngdart](https://github.com/angulardart-community/angular/tree/master/angular)
[ngforms](https://github.com/angulardart-community/angular/tree/master/angular_forms)
[ngrouter](https://github.com/angulardart-community/angular/tree/master/angular_router)
[ngtest](https://github.com/angulardart-community/angular/tree/master/angular_test)
[ngdart](https://github.com/angulardart-community/angular/tree/master/ngdart)
[ngforms](https://github.com/angulardart-community/angular/tree/master/ngforms)
[ngrouter](https://github.com/angulardart-community/angular/tree/master/ngrouter)
[ngtest](https://github.com/angulardart-community/angular/tree/master/ngtest)
[ngcomponents](https://github.com/angulardart-community/angular_components)
[ngast](https://github.com/angulardart-community/angular/tree/master/angular_ast)
[ngcompiler](https://github.com/angulardart-community/angular/tree/master/angular_compiler)
[ngdart_cli](https://github.com/angulardart-community/ngdart)
[ngast](https://github.com/angulardart-community/angular/tree/master/ngast)
[ngcompiler](https://github.com/angulardart-community/angular/tree/master/ngcompiler)
[ngdart_cli](https://github.com/angulardart-community/ngdart_cli)


## Resources
Expand Down
4 changes: 2 additions & 2 deletions _tests/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
This package is all the unit and component tests for `package:angular`. They
This package is all the unit and component tests for `package:ngdart`. They
are maintained here in order to avoid declaring circular dependencies between
`angular` and `angular_test`, as well as adding private testing infrastructure.
`ngdart` and `ngtest`, as well as adding private testing infrastructure.
14 changes: 7 additions & 7 deletions _tests/lib/compiler.dart
Original file line number Diff line number Diff line change
Expand Up @@ -28,17 +28,17 @@ final Future<PackageAssetReader> _packageAssets = (() async {
}
final root = Platform.environment['PKG_ANGULAR_ROOT'];
final path = '$runfiles/$root';
if (!FileSystemEntity.isFileSync('$path/angular/lib/angular.dart')) {
throw StateError('Could not find $path/angular/lib/angular.dart');
if (!FileSystemEntity.isFileSync('$path/ngdart/lib/angular.dart')) {
throw StateError('Could not find $path/ngdart/lib/angular.dart');
}
final pathToMeta = '$path/angular/lib/src/meta.dart';
final pathToMeta = '$path/ngdart/lib/src/meta.dart';
if (!FileSystemEntity.isFileSync(pathToMeta)) {
throw StateError('Could not find $pathToMeta');
}
print('file://$path/angular/lib');
print('file://$path/ngdart/lib');
return PackageAssetReader.forPackages({
ngPackage: '$path/angular/',
ngCompiler: '$path/angular_compiler/',
ngPackage: '$path/ngdart/',
ngCompiler: '$path/ngcompiler/',
});
})();

Expand All @@ -48,7 +48,7 @@ final Future<PackageAssetReader> _packageAssets = (() async {
// rules as part of open sourcing process to make sure this works both
// externally and internally.
const ngPackage = 'ngdart';
const ngCompiler = 'angular_compiler';
const ngCompiler = 'ngcompiler';
const ngImport = 'package:$ngPackage/angular.dart';
final _ngFiles = Glob('lib/**.dart');

Expand Down
12 changes: 6 additions & 6 deletions _tests/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,15 @@ dev_dependencies:
# DO NOT REMOVE. We don't publish this package, it is just for testing.
dependency_overrides:
ngdart:
path: ../angular
path: ../ngdart
ngast:
path: ../angular_ast
path: ../ngast
ngcompiler:
path: ../angular_compiler
path: ../ngcompiler
ngforms:
path: ../angular_forms
path: ../ngforms
ngrouter:
path: ../angular_router
path: ../ngrouter
ngtest:
path: ../angular_test
path: ../ngtest
analyzer: ^4.0.0
1 change: 0 additions & 1 deletion angular/README.md

This file was deleted.

1 change: 0 additions & 1 deletion angular_ast/README.md

This file was deleted.

3 changes: 0 additions & 3 deletions angular_compiler/README.md

This file was deleted.

1 change: 0 additions & 1 deletion angular_forms/README.md

This file was deleted.

6 changes: 0 additions & 6 deletions angular_router/README.md

This file was deleted.

6 changes: 3 additions & 3 deletions examples/hello_world/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ dev_dependencies:
# DO NOT REMOVE. We don't publish this package, it is just for testing.
dependency_overrides:
ngdart:
path: ../../angular
path: ../../ngdart
ngast:
path: ../../angular_ast
path: ../../ngast
ngcompiler:
path: ../../angular_compiler
path: ../../ngcompiler
2 changes: 1 addition & 1 deletion goldens/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ See b/147830720.
TIP: Need to update all of the tests quickly? Use:

```bash
$ third_party/dart_src/angular/goldens/update_all.sh
$ third_party/dart_src/ndart/goldens/update_all.sh
```

Currently when adding a new `a.dart` file, you must add a sibling
Expand Down
File renamed without changes.
File renamed without changes.
1 change: 1 addition & 0 deletions ngast/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
See https://github.com/angulardart-community for current updates on this project.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion angular_ast/pubspec.yaml → ngast/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: ngast
repository: https://github.com/angulardart/angular
repository: _GetValue<$1>\(ng.create$1Factory/angular
description: Parser and utilities for AngularDart templates
version: 2.2.0

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
3 changes: 3 additions & 0 deletions ngcompiler/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Tooling for compiling [AngularDart](https://pub.dev/packages/angular).

See https://github.com/angulardart-community for current updates on this project.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class Compiler implements Generator {

// Ideally this would be part of this generator, and not delegated to an
// external function, but today much of the AngularDart compiler still lives
// inside package:angular, and is non-trivial to
// inside package:ngdart, and is non-trivial to
// move over atomically.
//
// Once we're able to remove this parameter, we should.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import '../messages.dart';

/// URL of the AngularDart GitHub repository.
const _github = 'https://github.com/angulardart/angular';
const _github = 'https://github.com/angulardart-community/angular';

/// Concrete implementation of [Messages] for external users.
class $Messages extends Messages {
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import 'package:source_span/source_span.dart';
import 'package:ngast/angular_ast.dart';
import 'package:ngcompiler/v2/context.dart';

/// Collects parsing exceptions from `angular_ast`, converting to [BuildError].
/// Collects parsing exceptions from `ngast`, converting to [BuildError].
///
/// See [throwErrorsIfAny].
class AstExceptionHandler extends RecoveringExceptionHandler {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ const _scriptElement = 'script';
const _templateElement = 'template';
final _textCssSelector = CssSelector.parse('*')[0];

/// A [TemplateParser] which uses the `angular_ast` package to parse angular
/// A [TemplateParser] which uses the `ngast` package to parse angular
/// templates.
class AstTemplateParser {
final CompilerFlags _flags;
Expand All @@ -48,7 +48,7 @@ class AstTemplateParser {
/// Parses the template into a structured tree of [ng.TemplateAst] nodes.
///
/// This parsing is done in multiple phases:
/// 1. Parse the raw template using `angular_ast` package.
/// 1. Parse the raw template using `ngast` package.
/// 2. Post-process the raw [ast.TemplateAst] nodes.
/// 3. Bind any matching Directives and Providers, converting into
/// [ng.TemplateAst] nodes.
Expand All @@ -64,9 +64,9 @@ class AstTemplateParser {
String name,
String templateSourceUrl,
) {
// This is a specific error handler that we pass to angular_ast that in turn
// This is a specific error handler that we pass to ngast that in turn
// uses mechanics similar to CompileContext; it is intentionally separate in
// order ot avoid a dependency on angular_compiler from angular_ast.
// order ot avoid a dependency on ngcompiler from ngast.
final exceptionHandler = AstExceptionHandler(
template,
templateSourceUrl,
Expand Down Expand Up @@ -243,7 +243,7 @@ class AstTemplateParser {

/// A visitor which binds directives to element nodes.
///
/// This visitor also converts from the pkg:angular_ast types to the angular
/// This visitor also converts from the pkg:ngast types to the angular
/// compiler types, which includes transformation of internationalized nodes.
class _BindDirectivesVisitor
implements ast.TemplateAstVisitor<ng.TemplateAst?, _ParseContext> {
Expand Down Expand Up @@ -1324,7 +1324,7 @@ class _ProviderVisitor
}

/// Visitor that applies default namespaces to elements.
// TODO(alorenzen): Refactor this into pkg:angular_ast.
// TODO(alorenzen): Refactor this into pkg:ngast.
class _NamespaceVisitor extends ast.RecursiveTemplateAstVisitor<String> {
@override
ast.ElementAst visitElement(ast.ElementAst element, [String? parentPrefix]) {
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
6 changes: 3 additions & 3 deletions angular_compiler/pubspec.yaml → ngcompiler/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: ngcompiler
repository: https://github.com/angulardart/angular
repository: https://github.com/angulardart-community/angular
description: Compiler for AngularDart.
version: 2.2.0

Expand Down Expand Up @@ -36,7 +36,7 @@ dev_dependencies:

dependency_overrides:
ngdart:
path: ../angular
path: ../ngdart
ngast:
path: ../angular_ast
path: ../ngast
# analyzer: ^4.0.0
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
1 change: 1 addition & 0 deletions ngdart/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
See https://github.com/angulardart-community for current updates on this project.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ NgZone _createNgZone() => NgZone();
///
/// May override [createNgZone] to provide a custom callback to create one. This
/// is primarily useful in testing (i.e. via directly or indirectly the
/// `angular_test` package).
/// `ngtest` package).
Injector appInjector(
InjectorFactory userProvidedInjector, {
NgZone Function() createNgZone = _createNgZone,
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Loading

0 comments on commit bfaa50a

Please sign in to comment.