Skip to content
This repository was archived by the owner on Dec 4, 2017. It is now read-only.

chore: rename files in ngUpgrade #3146

Merged
merged 1 commit into from
Jan 26, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 10 additions & 10 deletions public/docs/_examples/upgrade-module/e2e-spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ describe('Upgrade Tests', function () {
setProtractorToHybridMode();
});

describe('NG1 Auto-bootstrap', function() {
describe('AngularJS Auto-bootstrap', function() {

beforeAll(function () {
browser.get('/index-ng-app.html');
Expand All @@ -21,7 +21,7 @@ describe('Upgrade Tests', function () {

});

describe('NG1 JavaScript Bootstrap', function() {
describe('AngularJS JavaScript Bootstrap', function() {

beforeAll(function () {
browser.get('/index-bootstrap.html');
Expand All @@ -33,10 +33,10 @@ describe('Upgrade Tests', function () {

});

describe('NG1-2 Hybrid Bootstrap', function() {
describe('AngularJS-Angular Hybrid Bootstrap', function() {

beforeAll(function () {
browser.get('/index-1-2-hybrid-bootstrap.html');
browser.get('/index-ajs-a-hybrid-bootstrap.html');
});

it('bootstraps as expected', function () {
Expand Down Expand Up @@ -113,7 +113,7 @@ describe('Upgrade Tests', function () {
describe('Downgraded component with content projection', function() {

beforeAll(function () {
browser.get('/index-1-to-2-projection.html');
browser.get('/index-ajs-to-a-projection.html');
});

it('can be transcluded into', function () {
Expand All @@ -126,7 +126,7 @@ describe('Upgrade Tests', function () {
describe('Upgraded component with transclusion', function() {

beforeAll(function () {
browser.get('/index-2-to-1-transclusion.html');
browser.get('/index-a-to-ajs-transclusion.html');
});

it('can be projected into', function () {
Expand All @@ -136,10 +136,10 @@ describe('Upgrade Tests', function () {
});


describe('Upgrading NG1 Providers', function() {
describe('Upgrading AngularJS Providers', function() {

beforeAll(function () {
browser.get('/index-1-to-2-providers.html');
browser.get('/index-ajs-to-a-providers.html');
});

it('works', function () {
Expand All @@ -149,10 +149,10 @@ describe('Upgrade Tests', function () {
});


describe('Downgrading NG2 Providers', function() {
describe('Downgrading Angular Providers', function() {

beforeAll(function () {
browser.get('/index-2-to-1-providers.html');
browser.get('/index-a-to-ajs-providers.html');
});

it('works', function () {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

<script src="systemjs.config.js"></script>
<script>
System.import('app/1-to-2-providers/app.module')
System.import('app/a-to-ajs-providers/app.module')
.then(null, console.error.bind(console));
</script>
</head>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

<script src="systemjs.config.js"></script>
<script>
System.import('app/2-to-1-transclusion/app.module')
System.import('app/a-to-ajs-transclusion/app.module')
.then(null, console.error.bind(console));
</script>
</head>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

<script src="systemjs.config.js"></script>
<script>
System.import('app/1-2-hybrid-bootstrap/app.module')
System.import('app/ajs-a-hybrid-bootstrap/app.module')
.then(null, console.error.bind(console));
</script>
</head>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

<script src="systemjs.config.js"></script>
<script>
System.import('app/1-to-2-projection/app.module')
System.import('app/ajs-to-a-projection/app.module')
.then(null, console.error.bind(console));
</script>
</head>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

<script src="systemjs.config.js"></script>
<script>
System.import('app/2-to-1-providers/app.module')
System.import('app/ajs-to-a-providers/app.module')
.then(null, console.error.bind(console));
</script>
</head>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<html>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.5.3/angular.js"></script>
<script src="app/1-bootstrap/app.module.js"></script>
<script src="app/ajs-bootstrap/app.module.js"></script>
</head>

<body>
Expand Down
2 changes: 1 addition & 1 deletion public/docs/_examples/upgrade-module/ts/index-ng-app.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<html>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.5.3/angular.js"></script>
<script src="app/1-ng-app/app.module.js"></script>
<script src="app/ajs-ng-app/app.module.js"></script>
</head>

<body ng-app="heroApp" ng-strict-di>
Expand Down
6 changes: 3 additions & 3 deletions public/docs/_examples/upgrade-phonecat-1-typescript/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@ structure.

The following changes from vanilla Phonecat are applied:

* The TypeScript config file shown in the guide is `tsconfig.ng1.json` instead
* The TypeScript config file shown in the guide is `tsconfig.ajs.json` instead
of the default, because we don't want to enable `noImplicitAny` for migration.
* Karma config for unit tests is in karma.conf.ng1.js because the boilerplate
* Karma config for unit tests is in karma.conf.ajs.js because the boilerplate
Karma config is not compatible with the way AngularJS tests need to be run.
The shell script run-unit-tests.sh can be used to run the unit tests.
* Instead of using Bower, AngularJS and its dependencies are fetched from a CDN
in index.html and karma.conf.ng1.js.
in index.html and karma.conf.ajs.js.
* E2E tests have been moved to the parent directory, where `gulp run-e2e-tests` can
discover and run them along with all the other examples.
* Most of the phone JSON and image data removed in the interest of keeping
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
!karma.conf.ajs.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
## The boilerplate Karma configuration won't work with AngularJS tests since
## a specific loading configuration is needed for them.
## We keep one in karma.conf.ng1.js. This scripts runs the ng1 tests with
## We keep one in karma.conf.ajs.js. This scripts runs the AngularJS tests with
## that config.

PATH=$(npm bin):$PATH
tsc && karma start karma.conf.ng1.js
tsc && karma start karma.conf.ajs.js
6 changes: 3 additions & 3 deletions public/docs/_examples/upgrade-phonecat-2-hybrid/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@ structure.

The following changes from vanilla Phonecat are applied:

* Karma config for unit tests is in karma.conf.ng1.js because the boilerplate
* Karma config for unit tests is in karma.conf.ajs.js because the boilerplate
Karma config is not compatible with the way AngularJS tests need to be run.
The shell script run-unit-tests.sh can be used to run the unit tests.
* There's a `package.ng1.json`, which is not used to run anything but only to
* There's a `package.ajs.json`, which is not used to run anything but only to
show an example of changing the PhoneCat http-server root path.
* Also for the Karma shim, there is a `karma-test-shim.1.js` file which isn't
used but is shown in the test appendix.
* Instead of using Bower, AngularJS and its dependencies are fetched from a CDN
in index.html and karma.conf.ng1.js.
in index.html and karma.conf.ajs.js.
* E2E tests have been moved to the parent directory, where `run-e2e-tests` can
discover and run them along with all the other examples.
* Most of the phone JSON and image data removed in the interest of keeping
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ aot/**/*.ts
dist
!app/tsconfig.json
!rollup-config.js
!karma.conf.ajs.js
10 changes: 5 additions & 5 deletions public/docs/_examples/upgrade-phonecat-2-hybrid/ts/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,26 +17,26 @@
<script src="https://code.angularjs.org/1.5.5/angular-resource.js"></script>
<script src="https://code.angularjs.org/1.5.5/angular-route.js"></script>

<script src="app.module.ng1.js"></script>
<script src="app.module.ajs.js"></script>
<script src="app.config.js"></script>
<script src="app.animations.js"></script>
<script src="core/core.module.js"></script>
<script src="core/phone/phone.module.js"></script>
<script src="phone-list/phone-list.module.js"></script>
<script src="phone-detail/phone-detail.module.js"></script>

<!-- #docregion ng2 -->
<!-- #docregion angular -->
<script src="/node_modules/core-js/client/shim.min.js"></script>
<script src="/node_modules/zone.js/dist/zone.js"></script>
<script src="/node_modules/systemjs/dist/system.src.js"></script>
<!-- #enddocregion ng2 -->
<!-- #enddocregion angular -->
<script src="/systemjs.config.1.js"></script>
<!-- #docregion ng2
<!-- #docregion angular
<script src="/systemjs.config.js"></script>
<script>
System.import('/app');
</script>
<!-- #enddocregion ng2 -->
<!-- #enddocregion angular -->
<script>
System.import('/app');
</script>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
## The boilerplate Karma configuration won't work with AngularJS tests since
## a specific loading configuration is needed for them.
## We keep one in karma.conf.ng1.js. This scripts runs the ng1 tests with
## We keep one in karma.conf.ajs.js. This scripts runs the AngularJS tests with
## that config.

PATH=$(npm bin):$PATH
tsc && karma start karma.conf.ng1.js
tsc && karma start karma.conf.ajs.js

This file was deleted.

This file was deleted.

Loading