Kendo UI for Angular - NGCC Validation
Перейти к файлу
Renovate Bot d7aae1da3c build(deps): update angular 2020-02-05 07:14:38 +00:00
.circleci Add yarn timeout (#454) 2019-10-23 15:22:16 -07:00
infra Remove Kendo grid from failing (#709) 2019-12-22 10:07:07 -08:00
projects test(ngx-bootstrap): import and use daterange to improve test coverage (#779) 2020-01-21 09:59:33 -08:00
.editorconfig infra: change infra to angular cli mono repo (#153) 2019-08-12 07:45:48 -07:00
.gitignore infra: change infra to angular cli mono repo (#153) 2019-08-12 07:45:48 -07:00
README.md docs(README): update git repo url (#570) 2019-11-14 01:24:10 -08:00
angular.json Add ngx-smart-modal project (#786) 2020-01-21 09:58:53 -08:00
ngcc.config.js Add ngcc configs (#433) 2019-10-21 11:48:56 -04:00
package.json build(deps): update angular 2020-02-05 07:14:38 +00:00
renovate.json chore: add ngcc config file in order to enable NativeScript package to be compiled by ngcc (#540) 2019-11-15 00:02:53 -08:00
tsconfig.json refactor: use latest versions of tsconfig to avoid unused files warnings (#199) 2019-08-14 09:44:50 -07:00
tslint.json infra: change infra to angular cli mono repo (#153) 2019-08-12 07:45:48 -07:00
yarn.lock build(deps): update angular 2020-02-05 07:14:38 +00:00

README.md

CircleCI

ngcc validation

This repository aims to validate the Angular Ivy compatibility compiler (ngcc). Each directory contains a project that uses a popular Angular package which is distributed with metadata.json files generated by ngc.

Each library is imported inside app.module.ts. The CI runs ng build in each directory to validate that ngcc is able to compile the given package to Ivy compatible format.

How to add my library?

To add your library, follow the next simple 4 steps:

Clone the repository:

git clone git@github.com:angular/ngcc-validation.git

Install the top-level dependencies:

cd ngcc-validation
yarn install

Create your project:

Inside of the root directory create a new project:

npm run add-project [my-library-name]

This will create a new CLI application in [my-library-name]-ngcc:

  • using the latest CLI
  • with Ivy enabled

Import your library:

In app.module.ts add an import of your library. Ideally import the library's NgModule into the AppModule.

For example:

import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';

import { AgGridModule } from 'ag-grid-angular';

import { AppComponent } from './app.component';

@NgModule({
  declarations: [
    AppComponent
  ],
  imports: [
    BrowserModule,
    AgGridModule.forRoot(),
  ],
  providers: [],
  bootstrap: [AppComponent]
})
export class AppModule { }

My library is there, should I add tests?

Yes! The above instructions will only validate that your application could be successfully compiled with ngcc. To validate it actually works, it'll be great to add unit or e2e tests.

License

MIT