Skip to main content

tip
npm i -g @angular/cli@15.2.8

使用 Angular 脚手架生成一个组件库架子​

  • 生成一个空的项目

    ng new ng-darui --create-application=false
  • 生成一个 library 项目

    ng g lib ng-darui --prefix=dar
  • 删除多余组件和文件,并移动文件,最终目录是这样

    ├─ng-darui
    | ├─ng-package.json
    | ├─package.json
    | ├─public-api.ts
    | ├─README.md
    | ├─tsconfig.lib.json
    | ├─tsconfig.lib.prod.json
    | ├─tsconfig.spec.json

Sébastien Lorber
Yangshun Tay

Docusaurus blogging features are powered by the blog plugin.

Simply add Markdown files (or folders) to the blog directory.

Regular blog authors can be added to authors.yml.

The blog post date can be extracted from filenames, such as:

  • 2019-05-30-welcome.md
  • 2019-05-30-welcome/index.md

A blog post folder can be convenient to co-locate blog post images:

Docusaurus Plushie

The blog supports tags as well!

And if you don't want a blog: just delete this directory, and use blog: false in your Docusaurus config.

Gao Wei

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque elementum dignissim ultricies. Fusce rhoncus ipsum tempor eros aliquam consequat. Lorem ipsum dolor sit amet