Skip to content

Commit

Permalink
Migrating to npm package
Browse files Browse the repository at this point in the history
  • Loading branch information
Pauan committed May 19, 2017
1 parent 70ac24e commit a898132
Show file tree
Hide file tree
Showing 22 changed files with 336 additions and 17 deletions.
2 changes: 2 additions & 0 deletions .gitignore
@@ -1,2 +1,4 @@
/node_modules
.idea
/index.ngfactory.ts
/index.ngsummary.json
6 changes: 3 additions & 3 deletions README.md
Expand Up @@ -4,7 +4,7 @@ Installation
============

```
npm install amcharts/amcharts3-angular2 --save
npm install @amcharts/amcharts3-angular --save
```

How to use
Expand All @@ -23,7 +23,7 @@ How to use
2) In your app module, import the `AmChartsModule` module and add it to the `imports`:

```js
import { AmChartsModule } from "amcharts3-angular2";
import { AmChartsModule } from "@amcharts/amcharts3-angular";

@NgModule({
imports: [
Expand All @@ -38,7 +38,7 @@ export class AppModule {}
3) Inject the `AmChartsService` into your app component, create a `<div>` element with an `id`, then use the `makeChart` method to create the chart:

```js
import { AmChartsService } from "amcharts3-angular2";
import { AmChartsService } from "@amcharts/amcharts3-angular";

@Component({
template: `<div id="chartdiv" [style.width.%]="100" [style.height.px]="500"></div>`
Expand Down
File renamed without changes.
File renamed without changes.
1 change: 1 addition & 0 deletions es2015/index.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

File renamed without changes.
2 changes: 1 addition & 1 deletion examples/angular-cli/package.json
Expand Up @@ -23,7 +23,7 @@
"core-js": "^2.4.1",
"rxjs": "^5.1.0",
"zone.js": "^0.8.4",
"amcharts3-angular2": "file:../.."
"@amcharts/amcharts3-angular": "file:../.."
},
"devDependencies": {
"@angular/cli": "1.0.0",
Expand Down
2 changes: 1 addition & 1 deletion examples/angular-cli/src/app/app.component.ts
@@ -1,5 +1,5 @@
import { Component } from '@angular/core';
import { AmChartsService } from "amcharts3-angular2";
import { AmChartsService } from "@amcharts/amcharts3-angular";

@Component({
selector: 'app-root',
Expand Down
2 changes: 1 addition & 1 deletion examples/angular-cli/src/app/app.module.ts
Expand Up @@ -4,7 +4,7 @@ import { FormsModule } from '@angular/forms';
import { HttpModule } from '@angular/http';

import { AppComponent } from './app.component';
import { AmChartsModule } from "amcharts3-angular2";
import { AmChartsModule } from "@amcharts/amcharts3-angular";

@NgModule({
declarations: [
Expand Down
4 changes: 2 additions & 2 deletions examples/quickstart/README.md
Expand Up @@ -8,12 +8,12 @@ Run `npm install` and then `npm start` to run the server. Navigate to `http://lo

----

If you are creating your own QuickStart seed, you will need to add `amcharts3-angular2` to your `src/systemjs.config.js` file, like this:
If you are creating your own QuickStart seed, you will need to add `@amcharts/amcharts3-angular` to your `src/systemjs.config.js` file, like this:

```js
System.config({
map: {
'amcharts3-angular2': 'node_modules/amcharts3-angular2/index.js'
'@amcharts/amcharts3-angular': 'node_modules/@amcharts/amcharts3-angular/umd/index.js'
}
});
```
2 changes: 1 addition & 1 deletion examples/quickstart/package.json
Expand Up @@ -38,7 +38,7 @@
"core-js": "^2.4.1",
"rxjs": "5.0.1",
"zone.js": "^0.8.4",
"amcharts3-angular2": "file:../.."
"@amcharts/amcharts3-angular": "file:../.."
},
"devDependencies": {
"concurrently": "^3.2.0",
Expand Down
2 changes: 1 addition & 1 deletion examples/quickstart/src/app/app.component.ts
@@ -1,5 +1,5 @@
import { Component } from '@angular/core';
import { AmChartsService } from "amcharts3-angular2";
import { AmChartsService } from "@amcharts/amcharts3-angular";

@Component({
selector: 'my-app',
Expand Down
2 changes: 1 addition & 1 deletion examples/quickstart/src/app/app.module.ts
Expand Up @@ -2,7 +2,7 @@ import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';

import { AppComponent } from './app.component';
import { AmChartsModule } from "amcharts3-angular2";
import { AmChartsModule } from "@amcharts/amcharts3-angular";

@NgModule({
imports: [ BrowserModule, AmChartsModule ],
Expand Down
2 changes: 1 addition & 1 deletion examples/quickstart/src/systemjs.config.js
Expand Up @@ -22,7 +22,7 @@
'@angular/http': 'npm:@angular/http/bundles/http.umd.js',
'@angular/router': 'npm:@angular/router/bundles/router.umd.js',
'@angular/forms': 'npm:@angular/forms/bundles/forms.umd.js',
'amcharts3-angular2': 'node_modules/amcharts3-angular2/index.js',
'@amcharts/amcharts3-angular': 'node_modules/@amcharts/amcharts3-angular/umd/index.js',

// other libraries
'rxjs': 'npm:rxjs',
Expand Down

0 comments on commit a898132

Please sign in to comment.