@tdadmin/core
AOT/JIT Compatible.
Important Note
- This library build with aot mode , if you using jit mode please use --preserve-symlinks option.
Quick Start
- Install this Library
- Declare any module in your root module
import { ComponentModule } from '@tdadmin/core'
@NgModule({
declarations: [
AppComponent
],
imports: [
BrowserModule,
ComponentModule.forRoot()
],
providers: [],
bootstrap: [AppComponent]
})
export class AppModule { }
- Use componentRef directive
<component *componentRef></component>
Modify this library
# Clone the repository
# Go to repository folder
cd tdadmin.core
# Install all dependencies
yarn install
# Build the library
yarn build
Build the library
-
yarn build
for building the library once (both ESM and AOT versions). -
yarn build:watch
for building the library (both ESM and AOT versions) and watch for file changes.
You may also build UMD bundle and ESM files separately:
-
yarn build:esm
- for building AOT/JIT compatible versions of files. -
yarn build:esm:watch
- the same as previous command but in watch-mode. -
yarn build:umd
- for building UMD bundle only. -
yarn build:umd:watch
- the same as previous command but in watch-mode.
Commands
-
yarn docs
for generating documentation locally. -
yarn explorer
to find out where all your code in bundle is coming from. -
npm version patch
to increase library version. More on bumping. -
npm publish
to publish your library sources on npmjs.com. -
yarn clean:tmp
command will clean up all temporary files likedocs
,dist
,coverage
etc. -
yarn clean:all
command will clean up all temporary files along withnode_modules
folder.