Skip to content
This repository was archived by the owner on Feb 26, 2024. It is now read-only.

Commit 5e00780

Browse files
authored
chore: rename Angular 2 to Angular (#106)
1 parent 40f8e09 commit 5e00780

32 files changed

+63
-63
lines changed

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,4 +222,4 @@ changes to be accepted, the CLA must be signed. It's a quick process, we promise
222222
[individual-cla]: http://code.google.com/legal/individual-cla-v1.0.html
223223
[js-style-guide]: http://google-styleguide.googlecode.com/svn/trunk/javascriptguide.xml
224224
[stackoverflow]: http://stackoverflow.com/questions/tagged/angular
225-
[seed]: https://github.com/mlaval/angular2-react-native-seed
225+
[seed]: https://github.com/mlaval/angular-react-native-seed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
[![Join the chat at https://gitter.im/angular/react-native-renderer](https://badges.gitter.im/angular/react-native-renderer.svg)](https://gitter.im/angular/react-native-renderer?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
22
[![Build Status](https://travis-ci.org/angular/react-native-renderer.svg?branch=master)](https://travis-ci.org/angular/react-native-renderer)
33

4-
# angular2-react-native
4+
# angular-react-native
55

6-
Use Angular 2 and React Native to build applications for Android and iOS.
6+
Use Angular and React Native to build applications for Android and iOS.
77

88
## Documentation
99
http://angular.github.io/react-native-renderer/

doc/pages/apis.jade

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ block content
88
# APIs and polyfills
99

1010
React Native provides a set of APIs and polyfills which allow applications to access native features from JavaScript.
11-
All of them can be directly used within an Angular 2 application.
11+
All of them can be directly used within an Angular application.
1212

1313
When needed, they are patched so that callbacks are executed in the Angular [Zone](https://github.com/angular/zone.js).
1414

doc/pages/bootstrap.jade

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ block content
1212
To bootstrap an application with JIT compilation, you must use the special methods `bootstrapReactNativeJIT`.
1313

1414
```
15-
import {bootstrapReactNativeJIT} from 'angular2-react-native/jit';
15+
import {bootstrapReactNativeJIT} from 'angular-react-native/jit';
1616
import {MyAppModule} from "./app/module";
1717

1818
bootstrapReactNativeJIT('myApp', MyAppModule);
@@ -23,7 +23,7 @@ block content
2323
To bootstrap an application with AOT compilation, you must use the special methods `bootstrapReactNativeAOT`.
2424

2525
```
26-
import {bootstrapReactNativeAOT} from 'angular2-react-native/aot';
26+
import {bootstrapReactNativeAOT} from 'angular-react-native/aot';
2727
import {MyAppModuleNgFactory} from "./app/module.ngfactory";
2828

2929
bootstrapReactNativeAOT('myApp', MyAppModule);

doc/pages/getting_started.jade

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@ block content
77
:marked
88
# Getting started
99

10-
Creating an application with Angular 2 and React Native means creating an actual React Native project, in which an Angular 2 application runs.
10+
Creating an application with Angular and React Native means creating an actual React Native project, in which an Angular application runs.
1111

12-
As a consequence, all the Angular 2 features are available to you: http, router, directives, dependency injection, etc.
12+
As a consequence, all the Angular features are available to you: http, router, directives, dependency injection, etc.
1313
And, at the same time, all the React Native tools and features are also available.
1414

1515
The only exception are the high-level React components (View, Picker, Text, Image, etc),
16-
but they all exist as ambient Angular2 components that can be used in applications.
16+
but they all exist as ambient Angular components that can be used in applications.
1717

1818
## Setup
1919
Please check the React Native documentation for:
@@ -23,12 +23,12 @@ block content
2323
- [Linux and Windows support](https://facebook.github.io/react-native/docs/linux-windows-support.html#content)
2424

2525
## First application
26-
For a quick start, clone the [seed application](https://github.com/mlaval/angular2-react-native-seed) and follow the instructions in the README.
26+
For a quick start, clone the [seed application](https://github.com/mlaval/angular-react-native-seed) and follow the instructions in the README.
2727

2828
The steps are:
2929
```
30-
git clone https://github.com/mlaval/angular2-react-native-seed.git
31-
cd angular2-react-native-seed
30+
git clone https://github.com/mlaval/angular-react-native-seed.git
31+
cd angular-react-native-seed
3232
npm install -g gulp react-native-cli typings
3333
npm install
3434
gulp init

doc/pages/http.jade

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ block content
77
:marked
88
# Http
99

10-
The http module of Angular 2 can be used as is in applications.
10+
The http module of Angular can be used as is in applications.
1111
The only thing to be done is to import `ReactNativeHttpModule` in the main module of the application (see below).
1212

1313
Behind the scene, it uses the [Network polyfill](https://facebook.github.io/react-native/docs/network.html) provided by React Native.
@@ -28,7 +28,7 @@ block content
2828
import {NgFor} from '@angular/common';
2929
import {Http} from '@angular/http';
3030
import 'rxjs/add/operator/map';
31-
import {TextInput} from 'angular2-react-native';
31+
import {TextInput} from 'angular-react-native';
3232

3333
@Component({
3434
selector: 'example',

doc/pages/index.jade

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@ block content
88
h1
99
| =>
1010
img(src="./assets/phone.png", style="top:0px")
11-
h3(style="margin-bottom:50px;") Angular 2 and React Native to build applications for Android and iOS
11+
h3(style="margin-bottom:50px;") Angular and React Native to build applications for Android and iOS
1212
a(href="./getting_started.html", style="padding: 20px;background-color:#0273D4;color:white;display: block;width: 150px;border-radius: 10px;text-align: center; font-size: 20px;margin: auto;") Get started
1313

doc/pages/router.jade

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ block content
77
:marked
88
# Router
99

10-
The rooter module of Angular 2 can be used as is in applications.
10+
The rooter module of Angular can be used as is in applications.
1111
The only thing to be done is to import `ReactNativeRouterModule` in the main module of the application (see below),
1212
and use the static `RouterModule.forRoot` method to configure routes.
1313

doc/pages/style.jade

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ block content
99
React Native provides a styling mechanism which relies on JavaScript.
1010
Read more about it in the [documentation about Style](https://facebook.github.io/react-native/docs/style.html).
1111

12-
In all the Angular 2 components, there are 2 properties related to style:
12+
In all the Angular components, there are 2 properties related to style:
1313
- `styleSheet`: it takes one or more `StyleSheet` created with the React Native's API.
1414
- `style`: it takes a set of styling properties as a JSON object. ***It overrides what has been defined in `styleSheet`***
1515

gulpfile.js

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ gulp.task('!transpile', ['!assets'], function () {
7272
return ts2js([PATHS.sources.sample, PATHS.sources.src], PATHS.tmp, false, false);
7373
});
7474
gulp.task('!copyToNodeModules', ['!transpile'], function () {
75-
return gulp.src(PATHS.tmp + '/src/**/*').pipe(gulp.dest(PATHS.app + '/' + APP_NAME + '/node_modules/angular2-react-native'));
75+
return gulp.src(PATHS.tmp + '/src/**/*').pipe(gulp.dest(PATHS.app + '/' + APP_NAME + '/node_modules/angular-react-native'));
7676
});
7777
gulp.task('compile.jit', ['!copyToNodeModules'], function () {
7878
return gulp.src(PATHS.tmp + '/sample/**/*').pipe(gulp.dest(PATHS.app + '/' + APP_NAME));
@@ -242,10 +242,10 @@ systemBuilder.config({
242242
defaultJSExtensions: true
243243
});
244244
gulp.task('!pre-bundle', ['ts2system'], function () {
245-
return gulp.src(PATHS.destination + '/src/**/*').pipe(gulp.dest(PATHS.destination + '/angular2-react-native'));
245+
return gulp.src(PATHS.destination + '/src/**/*').pipe(gulp.dest(PATHS.destination + '/angular-react-native'));
246246
});
247247
gulp.task('bundle', ['!pre-bundle'], function(done) {
248-
return systemBuilder.bundle('angular2-react-native/testing', path.join(PATHS.publish, 'bundles/testing.dev.js'),
248+
return systemBuilder.bundle('angular-react-native/testing', path.join(PATHS.publish, 'bundles/testing.dev.js'),
249249
{}).catch(function (e) { console.log(e); });
250250
});
251251

@@ -291,7 +291,7 @@ gulp.task('publish.ngc.src', ['publish.transform'], function (done) {
291291
});
292292
});
293293
gulp.task('publish', ['publish.ngc.src'], function (done) {
294-
return gulp.src(PATHS.tmp + '/node_modules/angular2-react-native/**/*').pipe(gulp.dest(PATHS.publish));
294+
return gulp.src(PATHS.tmp + '/node_modules/angular-react-native/**/*').pipe(gulp.dest(PATHS.publish));
295295
});
296296

297297
/**********************************************************************************/
@@ -408,7 +408,7 @@ function executeInAppDir(command, done, inParentFolder) {
408408
}
409409

410410
function ts2js(path, dest, toSystem, withDeclaration) {
411-
var tsResult = gulp.src(path.concat(['typings/index.d.ts', 'src/angular2-react-native.d.ts', 'src/angular2-react-native-android.d.ts', 'src/angular2-react-native-ios.d.ts']), {base: './'})
411+
var tsResult = gulp.src(path.concat(['typings/index.d.ts', 'src/angular-react-native.d.ts', 'src/angular-react-native-android.d.ts', 'src/angular-react-native-ios.d.ts']), {base: './'})
412412
.pipe(typescript({
413413
noImplicitAny: true,
414414
module: toSystem ? 'system' : 'commonjs',
@@ -458,12 +458,12 @@ function customReporter() {
458458
return {
459459
error: (error) => {
460460
if (error.relativeFilename && error.message.indexOf(`Module '"react-native"' has no exported member`) == -1 &&
461-
error.message.indexOf(`Module ''angular2-react-native'' has no exported member`) == -1 &&
462-
error.message.indexOf(`Module ''angular2-react-native/android'' has no exported member`) == -1 &&
463-
error.message.indexOf(`Module ''angular2-react-native/ios'' has no exported member`) == -1 &&
464-
error.message.indexOf(`src\\angular2-react-native.d.ts`) == -1 &&
465-
error.message.indexOf(`src\\angular2-react-native-android.d.ts`) == -1 &&
466-
error.message.indexOf(`src\\angular2-react-native-ios.d.ts`) == -1 &&
461+
error.message.indexOf(`Module ''angular-react-native'' has no exported member`) == -1 &&
462+
error.message.indexOf(`Module ''angular-react-native/android'' has no exported member`) == -1 &&
463+
error.message.indexOf(`Module ''angular-react-native/ios'' has no exported member`) == -1 &&
464+
error.message.indexOf(`src\\angular-react-native.d.ts`) == -1 &&
465+
error.message.indexOf(`src\\angular-react-native-android.d.ts`) == -1 &&
466+
error.message.indexOf(`src\\angular-react-native-ios.d.ts`) == -1 &&
467467
error.message.indexOf(`does not exist on type 'Global'.`) == -1) {
468468
console.error(error.message);
469469
}

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
2-
"name": "angular2-react-native",
2+
"name": "angular-react-native",
33
"version": "0.0.1-alpha.20",
4-
"description": "A React Native renderer for Angular 2",
4+
"description": "A React Native renderer for Angular",
55
"scripts": {
66
"test": "gulp test.browser/ci"
77
},
@@ -10,7 +10,7 @@
1010
"url": "git+https://github.com/angular/react-native-renderer.git"
1111
},
1212
"keywords": [
13-
"Angular2",
13+
"Angular",
1414
"renderer",
1515
"react-native"
1616
],

sample/index.android.aot.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import {bootstrapReactNativeAOT} from 'angular2-react-native/aot';
1+
import {bootstrapReactNativeAOT} from 'angular-react-native/aot';
22
import {KitchenSinkModuleNgFactory} from "./samples/android/module.ngfactory";
33

44
bootstrapReactNativeAOT('ngReactNative', KitchenSinkModuleNgFactory);

sample/index.android.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import {bootstrapReactNativeJIT} from 'angular2-react-native/jit';
1+
import {bootstrapReactNativeJIT} from 'angular-react-native/jit';
22
import {KitchenSinkModule} from "./samples/android/module";
33

44
bootstrapReactNativeJIT('ngReactNative', KitchenSinkModule);

sample/index.ios.aot.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import {bootstrapReactNativeAOT} from 'angular2-react-native/aot';
1+
import {bootstrapReactNativeAOT} from 'angular-react-native/aot';
22
import {KitchenSinkModuleNgFactory} from "./samples/ios/module.ngfactory";
33

44
bootstrapReactNativeAOT('ngReactNative', KitchenSinkModuleNgFactory);

sample/index.ios.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import {bootstrapReactNativeJIT} from 'angular2-react-native/jit';
1+
import {bootstrapReactNativeJIT} from 'angular-react-native/jit';
22
import {KitchenSinkModule} from "./samples/ios/module";
33

44
bootstrapReactNativeJIT('ngReactNative', KitchenSinkModule);

sample/samples/android/http.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import {Component, ViewChild} from '@angular/core';
22
import {Http} from '@angular/http';
33
import 'rxjs/add/operator/map';
44

5-
import {TextInput} from 'angular2-react-native/android';
5+
import {TextInput} from 'angular-react-native/android';
66

77
@Component({
88
selector: 'http-app',

sample/samples/android/kitchensink.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import {Component, ElementRef, ViewChild} from '@angular/core';
22
import {Router, NavigationEnd} from '@angular/router';
33
import {LocationStrategy} from '@angular/common';
44
import {StyleSheet, BackAndroid, Alert, NativeModules, processColor} from 'react-native';
5-
import {DrawerLayout, Toolbar} from 'angular2-react-native/android';
5+
import {DrawerLayout, Toolbar} from 'angular-react-native/android';
66

77
import {TodoMVC} from "./todomvc";
88

sample/samples/android/module.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import {NgModule, Provider} from '@angular/core';
22
import {CommonModule, LocationStrategy} from '@angular/common';
33
import {RouterModule, Routes} from '@angular/router';
4-
import {ReactNativeAndroidModule, ReactNativeRouterModule, ReactNativeHttpModule, ReactNativeLocationStrategy} from 'angular2-react-native';
4+
import {ReactNativeAndroidModule, ReactNativeRouterModule, ReactNativeHttpModule, ReactNativeLocationStrategy} from 'angular-react-native';
55
import {KitchenSinkApp} from './kitchensink';
66

77
import {HelloApp} from "./hello";

sample/samples/android/todomvc.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import {Component, Input, Output, EventEmitter, ViewChild} from '@angular/core';
22
import {StyleSheet, AsyncStorage} from 'react-native';
3-
import {TextInput} from 'angular2-react-native/android';
3+
import {TextInput} from 'angular-react-native/android';
44

55
class Palette {
66
static background: string = '#005eb8';
@@ -218,7 +218,7 @@ export class TodoMVC {
218218

219219
reset() {
220220
this.todos = this.filteredTodos = [
221-
new Todo("Angular 2", false, false),
221+
new Todo("Angular", false, false),
222222
new Todo("React Native", false, false),
223223
new Todo("Android", false, false),
224224
new Todo("iOS", true, false)

sample/samples/android/webview.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import {Component, ElementRef, ViewChild} from '@angular/core';
22
import {StyleSheet} from 'react-native';
3-
import {WebView} from 'angular2-react-native/android';
3+
import {WebView} from 'angular-react-native/android';
44

55
@Component({
66
selector: 'webview-app',

sample/samples/ios/http.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import {Component, ViewChild} from '@angular/core';
22
import {Http} from '@angular/http';
33
import 'rxjs/add/operator/map';
44

5-
import {TextInput} from 'angular2-react-native/ios';
5+
import {TextInput} from 'angular-react-native/ios';
66

77
@Component({
88
selector: 'http-app',

sample/samples/ios/kitchensink.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import {Component, ViewChild} from '@angular/core';
22
import {ActionSheetIOS} from 'react-native';
3-
import {Navigator} from 'angular2-react-native/ios';
3+
import {Navigator} from 'angular-react-native/ios';
44
import {TodoMVC} from "./todomvc";
55

66
@Component({

sample/samples/ios/module.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import {NgModule, Provider} from '@angular/core';
22
import {CommonModule, LocationStrategy} from '@angular/common';
33
import {RouterModule, Routes} from '@angular/router';
4-
import {ReactNativeiOSModule, ReactNativeRouterModule, ReactNativeHttpModule, ReactNativeLocationStrategy} from 'angular2-react-native';
4+
import {ReactNativeiOSModule, ReactNativeRouterModule, ReactNativeHttpModule, ReactNativeLocationStrategy} from 'angular-react-native';
55
import {KitchenSinkApp} from './kitchensink';
66

77
import {HelloApp} from "./hello";

sample/samples/ios/todomvc.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import {Component, Input, Output, EventEmitter, ViewChild} from '@angular/core';
22
import {StyleSheet, AsyncStorage} from 'react-native';
3-
import {TextInput} from 'angular2-react-native/ios';
3+
import {TextInput} from 'angular-react-native/ios';
44

55
class Palette {
66
static background: string = '#005eb8';
@@ -218,7 +218,7 @@ export class TodoMVC {
218218

219219
reset() {
220220
this.todos = this.filteredTodos = [
221-
new Todo("Angular 2", false, false),
221+
new Todo("Angular", false, false),
222222
new Todo("React Native", false, false),
223223
new Todo("Android", false, false),
224224
new Todo("iOS", true, false)

sample/samples/ios/webview.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import {Component, ElementRef, ViewChild} from '@angular/core';
22
import {StyleSheet} from 'react-native';
3-
import {WebView} from 'angular2-react-native/ios';
3+
import {WebView} from 'angular-react-native/ios';
44

55
@Component({
66
selector: 'webview-app',

src/angular-react-native-android.d.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
declare module 'angular-react-native/android' {
2+
3+
export * from './android';
4+
}
5+

src/angular-react-native-ios.d.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
declare module 'angular-react-native/ios' {
2+
3+
export * from './ios';
4+
}
5+

src/angular-react-native.d.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
declare module 'angular-react-native' {
2+
3+
export * from './index';
4+
}
5+

src/angular2-react-native-android.d.ts

Lines changed: 0 additions & 5 deletions
This file was deleted.

src/angular2-react-native-ios.d.ts

Lines changed: 0 additions & 5 deletions
This file was deleted.

src/angular2-react-native.d.ts

Lines changed: 0 additions & 5 deletions
This file was deleted.

src/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"experimentalDecorators": true,
77
"module": "es2015",
88
"moduleResolution": "node",
9-
"outDir": "../node_modules/angular2-react-native",
9+
"outDir": "../node_modules/angular-react-native",
1010
"rootDir": ".",
1111
"sourceMap": true,
1212
"inlineSources": true,

0 commit comments

Comments
 (0)