Skip to content
This repository was archived by the owner on Aug 24, 2020. It is now read-only.

Commit a630954

Browse files
Migrate to ng-packagr
1 parent c68a572 commit a630954

17 files changed

+1095
-162
lines changed

README.md

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -52,21 +52,17 @@ See https://github.com/ksachdeva/angular2-swing
5252

5353
## Development
5454

55-
To generate all `*.js`, `*.d.ts` and `*.metadata.json` files:
55+
To generate the library using ng-packagr (https://github.com/dherges/ng-packagr)
5656

5757
```bash
58-
$ npm run build
59-
```
60-
61-
To lint all `*.ts` files:
62-
63-
```bash
64-
$ npm run lint
58+
$ npm run packagr
6559
```
6660

6761
## Side notes
6862

69-
Project structure created with https://github.com/jvandemo/generator-angular2-library
63+
Struture of the project created following the tutorial of Nikolas LeBlanc
64+
65+
https://medium.com/@ngl817/building-an-angular-4-component-library-with-the-angular-cli-and-ng-packagr-53b2ade0701e
7066

7167
## License
7268

index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export * from './src/app/modules/ionic-swing/ionic-swing.module';

ng-package.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"$schema": "./node_modules/ng-packagr/ng-package.schema.json",
3+
"lib": {
4+
"entryFile": "index.ts"
5+
}
6+
}

0 commit comments

Comments
 (0)