mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
build: build material-examples with bazel (#13932)
This includes a `genrule` to create the generated `ExampleModule`
This commit is contained in:
committed by
Jeremy Elbourn
parent
150c964c32
commit
c64503e0bf
@@ -0,0 +1,36 @@
|
||||
/* tslint:disable */
|
||||
|
||||
/**
|
||||
******************************************************************************
|
||||
* DO NOT MANUALLY EDIT THIS FILE. THIS FILE IS AUTOMATICALLY GENERATED.
|
||||
******************************************************************************
|
||||
*/
|
||||
|
||||
import {NgModule} from '@angular/core';
|
||||
import {FormsModule, ReactiveFormsModule} from '@angular/forms';
|
||||
import {CommonModule} from '@angular/common';
|
||||
import {ExampleMaterialModule} from './material-module';
|
||||
|
||||
${exampleImports}
|
||||
|
||||
export interface LiveExample {
|
||||
title: string;
|
||||
component: any;
|
||||
additionalFiles?: string[];
|
||||
selectorName?: string;
|
||||
}
|
||||
|
||||
export const EXAMPLE_COMPONENTS: {[key: string]: LiveExample} = ${exampleComponents};
|
||||
export const EXAMPLE_LIST = ${exampleList}
|
||||
|
||||
@NgModule({
|
||||
declarations: EXAMPLE_LIST,
|
||||
entryComponents: EXAMPLE_LIST,
|
||||
imports: [
|
||||
ExampleMaterialModule,
|
||||
FormsModule,
|
||||
ReactiveFormsModule,
|
||||
CommonModule
|
||||
]
|
||||
})
|
||||
export class ExampleModule { }
|
||||
Reference in New Issue
Block a user