@sentinel-one/ui-compodoc

1.4.1 • Public • Published

Angular Document Generator

Installation

  • git clone git@github.com:Sentinel-One/ui-compodoc.git
  • npm i

Execute

  • npm run genDoc:dev or gulp
  • npm run genDoc or gulp --env=prod

File Structure

.
├── common               * share logic\const\templates etc
│   └── gulp             * share gulp utils\paths
│       ├── paths.js     * gulp path for dev\prod
│       └── utils.js     * gulp utils functionality
├── assets               * screen shot\images
├── CHANGELOG.md         * change log details
├── README.md            * readme file
├── gulpfile.js          * gulp task to generate component examples
├── package-lock.json    * project dependencies
├── package.json         * project dependencies
└── test                 * helper for dev

How to Doc

  • add decorator @ComponentDocExample({}) above @Component
  • add the component into entryComponents array in mgmt-ui.module.ts
  • execute gulp task
  • check the demo display

Example

@ComponentDocExample({
  navItem: {
    groupName: 'DATA TABLE',
    exampleName: 'Pagination'
  },
  demos: [
    {
      title:'Example 1'
      inputs: {
          id: 'myId',
          maxVisiblePages: 3,
          totalServerEntities: 1000,
          numOfEntityPerPage: 10,
          showPreviousAndNextText: false
        },
      executeComponentMethod: 'init'
    }
  ]
})

Publish to npm

  • update package.json version
  • push changes to git
  • execute this command npm publish --access public

Screen Shot

Alt text

Readme

Keywords

none

Package Sidebar

Install

npm i @sentinel-one/ui-compodoc

Weekly Downloads

1

Version

1.4.1

License

ISC

Last publish

Collaborators

  • zdenek.bednar
  • dmytro.skliarenko
  • danielle_gal
  • anujyadavsentinelone
  • shilpa-s1
  • velsonjr
  • udays1
  • radek_pleskac_s1
  • attilahazay
  • denys-klepikov
  • zlatkos1
  • tanmayid
  • shua.m
  • yuliana.baryskina
  • dans1
  • igorchornyi
  • pavel.skopik
  • janhora
  • npm_service_s1
  • sentinelone
  • assafa
  • ofir.fridman
  • irenav
  • yoni12ab
  • koralbenami
  • liorl3009
  • gal.falah
  • matans
  • jp-s1
  • vovadev
  • yamarbel
  • yoavsc
  • frontend-npm-group
  • maayanb