Skip to content

Commit

Permalink
feat: bump angular 11
Browse files Browse the repository at this point in the history
  • Loading branch information
HandsomeButterball committed Jul 8, 2021
1 parent d834c79 commit 1c0f562
Show file tree
Hide file tree
Showing 13 changed files with 11,117 additions and 6,235 deletions.
9 changes: 4 additions & 5 deletions .docgenirc.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
module.exports = {
$schema: 'node_modules/@docgeni/cli/cli.schema.json',
baseHref: '/',
heads: [],
mode: 'site',
mode: 'full',
title: 'NgxGantt',
siteProjectName: 'example',
output: 'dist/site',
outputDir: 'dist/site',
repoUrl: 'https://github.com/worktile/ngx-gantt',
defaultLocale: 'zh-cn',
navs: [
null,
{
Expand Down Expand Up @@ -66,6 +64,7 @@ module.exports = {
{
name: 'ngx-gantt',
rootDir: './example/src/app/configuration',
exclude: [],
categories: [
{
id: 'config',
Expand Down
3 changes: 1 addition & 2 deletions angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"prefix": "ngx",
"architect": {
"build": {
"builder": "@angular-devkit/build-ng-packagr:build",
"builder": "@angular-devkit/build-angular:ng-packagr",
"options": {
"tsConfig": "packages/gantt/tsconfig.lib.json",
"project": "packages/gantt/ng-package.json"
Expand Down Expand Up @@ -84,7 +84,6 @@
"optimization": true,
"outputHashing": "all",
"sourceMap": false,
"extractCss": true,
"namedChunks": false,
"extractLicenses": true,
"vendorChunk": false,
Expand Down
28 changes: 14 additions & 14 deletions example/src/app/app.module.ts
Original file line number Diff line number Diff line change
@@ -1,18 +1,17 @@
import { DocgeniTemplateModule, CONFIG_TOKEN, routes, initializeDocgeniSite, GlobalContext } from '@docgeni/template';
import { NgModule, APP_INITIALIZER } from '@angular/core';
import { config } from './content/config';
import { NgModule } from '@angular/core';
import { RouterModule } from '@angular/router';
import { LIB_EXAMPLE_LOADER_PROVIDER } from './content/example-loader';
import './content/navigations.json';
import { NgxGanttModule } from 'ngx-gantt';
import { AppComponent } from './app.component';
import { AppGanttExampleComponent } from './gantt/gantt.component';
import { AppRoutingModule } from './app-routing.module';
import { CommonModule } from '@angular/common';
import { AppGanttFlatExampleComponent } from './gantt-flat/flat.component';
import { EXAMPLE_MODULES } from './content/example-modules';
import { AppGanttRangeExampleComponent } from './gantt-range/gantt-range.component';
import { DOCGENI_SITE_PROVIDERS } from './content/index';
import { DocgeniTemplateModule } from '@docgeni/template';
import { BrowserModule } from '@angular/platform-browser';
import { AppGanttFlatComponent } from './gantt-flat/component/flat.component';
import { EXAMPLE_MODULES } from './content/example-modules';

@NgModule({
declarations: [
Expand All @@ -22,15 +21,16 @@ import { AppGanttFlatComponent } from './gantt-flat/component/flat.component';
AppGanttRangeExampleComponent,
AppGanttFlatComponent
],
imports: [CommonModule, DocgeniTemplateModule, NgxGanttModule, AppRoutingModule, RouterModule.forRoot([...routes]), ...EXAMPLE_MODULES],
providers: [
{ provide: APP_INITIALIZER, useFactory: initializeDocgeniSite, deps: [GlobalContext], multi: true },
LIB_EXAMPLE_LOADER_PROVIDER,
{
provide: CONFIG_TOKEN,
useValue: config
}
imports: [
BrowserModule,
CommonModule,
DocgeniTemplateModule,
NgxGanttModule,
AppRoutingModule,
RouterModule.forRoot([]),
...EXAMPLE_MODULES
],
providers: [...DOCGENI_SITE_PROVIDERS],
bootstrap: [AppComponent]
})
export class AppModule {}
Loading

0 comments on commit 1c0f562

Please sign in to comment.