| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
Internal Angular UI framework for Alauda Frontend Team.
# npm
npm i @alauda/ui
# yarn
yarn add @alauda/uiand also need to confirm the peer dependencies have been installed
yarn add dayjs @angular/cdk
// tsconfig.json
{
"compilerOptions": {
"allowSyntheticDefaultImports": true,
"skipLibCheck": true,
...
},
...
}import { ButtonModule } from '@alauda/ui';
@NgModule({
imports: [ButtonModule],
})
export class AppModule {}git clone https://github.com/alauda/alauda-ui.git
cd alauda-ui
yarn install
yarn startyarn testor
yarn test:watchyarn storybook:buildyarn buildDevelop and debug UI component libraries quickly and efficiently by incremental builds
yarn build:watchAlso can copy a dist to another project to debug
yarn build:watch <project_path>
In this way, after every incremental build completed, dist will be copied to node_modules which in specified project
In order to incremental build dist to your project directly instead of adding parameter to specify project path every time, can use your own ng-package.json by
npm run debugEdit you own build config by adding a new file called ng-package.debug.json, like
// ng-package.debug.json
{
"$schema": "./node_modules/ng-packagr/ng-package.schema.json",
"dest": "/home/alauda/projects/<target_project_path>/node_modules/@alauda/ui",
"lib": {
"entryFile": "./src/index.ts"
}
}| Back | FazBrowse Home | New Git URL |