Skip to content

Commit

Permalink
angulardart-community#7 Renaming forked by AngularDart Community pack…
Browse files Browse the repository at this point in the history
…ages to be able publish and use them on pub.dev

Resolving builds and tests. Fix complained test analyzis.
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
  • Loading branch information
IgorBabalich committed Jun 7, 2022
1 parent ad4d56e commit 597fc01
Show file tree
Hide file tree
Showing 460 changed files with 2,252 additions and 2,307 deletions.
37 changes: 30 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,36 @@
See https://github.com/angulardart for current updates on this project.
## Forked and renamed by AndgularDart Community packages

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)
[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)


## Resources

AngularDart Community web-site [https://angulardart.xyz](https://angulardart.xyz).

Source code Git repositories [https://github.com/angulardart-community](https://github.com/angulardart-community)

Join the [Gitter chat room]: https://gitter.im/angulardart/community to ask questions.






## The original Packages (in the restricted maintenance mode)

See https://github.com/angulardart for current updates on this project.

| Source code | Published Version |
|------------------------------|:------------------------------------------------------------------------------------------------------------------:|
| [angular] | [![Pub Package](https://img.shields.io/pub/v/angular.svg)](https://pub.dev/packages/angular) |
Expand All @@ -24,9 +53,3 @@ Included for completeness._
[angular_forms]: https://github.com/angulardart/angular/tree/master/angular_forms
[angular_router]: https://github.com/angulardart/angular/tree/master/angular_router
[angular_test]: https://github.com/angulardart/angular/tree/master/angular_test

## Resources

Join the [Gitter chat room] to ask questions.

[Gitter chat room]: https://gitter.im/angulardart/community
8 changes: 4 additions & 4 deletions _tests/lib/compiler.dart
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import 'package:build_test/build_test.dart' hide testBuilder;
import 'package:glob/glob.dart';
import 'package:logging/logging.dart';
import 'package:test/test.dart';
import 'package:angular/src/build.dart';
import 'package:angular_compiler/v2/context.dart';
import 'package:ngdart/src/build.dart';
import 'package:ngcompiler/v2/context.dart';

/// A 'test' build process (similar to the normal one).
final Builder _testAngularBuilder = MultiplexingBuilder([
Expand Down Expand Up @@ -47,7 +47,7 @@ final Future<PackageAssetReader> _packageAssets = (() async {
// **NOTE**: Be very careful changing this, there are hard-coded transformation
// rules as part of open sourcing process to make sure this works both
// externally and internally.
const ngPackage = 'angular';
const ngPackage = 'ngdart';
const ngCompiler = 'angular_compiler';
const ngImport = 'package:$ngPackage/angular.dart';
final _ngFiles = Glob('lib/**.dart');
Expand Down Expand Up @@ -132,7 +132,7 @@ Future<void> _testBuilder(
/// )
/// ```
///
/// Note that `package:angular/**.dart` is always included.
/// Note that `package:ngdart/**.dart` is always included.
Future<void> compilesExpecting(
String input, {
String inputSource,
Expand Down
2 changes: 1 addition & 1 deletion _tests/lib/matchers.dart
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import 'dart:html';

import 'package:test/test.dart';
import 'package:angular/angular.dart';
import 'package:ngdart/angular.dart';

/// Matches textual content of an element including children.
Matcher hasTextContent(String expected) => _HasTextContent(expected);
Expand Down
4 changes: 2 additions & 2 deletions _tests/lib/query_tests.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@

import 'package:collection/collection.dart';
import 'package:test/test.dart';
import 'package:angular/angular.dart';
import 'package:angular_test/angular_test.dart';
import 'package:ngdart/angular.dart';
import 'package:ngtest/angular_test.dart';

/// A mixin for components that receive a list of child elements/directives.
abstract class HasChildren<T> {
Expand Down
18 changes: 9 additions & 9 deletions _tests/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ environment:

dependencies:
# No strict dependencies, we always use dependency_overrides.
angular:
angular_test:
ngdart:
ngtest:

# Actual valid dependencies required.
build_resolvers: ^2.0.0
Expand All @@ -16,7 +16,7 @@ dependencies:

dev_dependencies:
# No strict dependencies, we always use dependency_overrides.
angular_forms:
ngforms:

# Actual valid dependencies required.
analyzer: ^4.0.0
Expand All @@ -31,16 +31,16 @@ dev_dependencies:

# DO NOT REMOVE. We don't publish this package, it is just for testing.
dependency_overrides:
angular:
ngdart:
path: ../angular
angular_ast:
ngast:
path: ../angular_ast
angular_compiler:
ngcompiler:
path: ../angular_compiler
angular_forms:
ngforms:
path: ../angular_forms
angular_router:
ngrouter:
path: ../angular_router
angular_test:
ngtest:
path: ../angular_test
analyzer: ^4.0.0
2 changes: 1 addition & 1 deletion _tests/test/bootstrap/run_app_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import 'dart:html';

import 'package:js/js.dart';
import 'package:test/test.dart';
import 'package:angular/angular.dart';
import 'package:ngdart/angular.dart';

import 'run_app_test.template.dart' as ng;

Expand Down
Loading

0 comments on commit 597fc01

Please sign in to comment.