procyon/genDoc.js
2020-03-17 19:58:43 +01:00

49 lines
3.3 KiB
JavaScript

/* eslint-disable */
const { execSync } = require('child_process');
// Button
console.log('Generate documentation for Button');
execSync('npx typedoc --json modules/documentation/src/pages/ButtonPage/typedoc.json modules/treejs-components/src/Button/index.tsx --mode file --tsconfig ./tsconfig.json --excludeExternals --excludePrivate --excludeProtected');
// Calendar
console.log('Generate documentation for Calendar');
execSync('npx typedoc --json modules/documentation/src/pages/CalendarPage/typedoc.json modules/treejs-components/src/Calendar/index.tsx --mode file --tsconfig ./tsconfig.json --excludeExternals --excludePrivate --excludeProtected');
// DatePicker
console.log('Generate documentation for DatePicker');
execSync('npx typedoc --json modules/documentation/src/pages/DatePickerPage/typedoc.json modules/treejs-components/src/DatePicker/index.tsx --mode file --tsconfig ./tsconfig.json --excludeExternals --excludePrivate --excludeProtected');
// Grid
console.log('Generate documentation for Grid');
execSync('npx typedoc --json modules/documentation/src/pages/GridPage/typedoc.json modules/treejs-components/src/Grid/index.ts --mode file --tsconfig ./tsconfig.json --excludeExternals --excludePrivate --excludeProtected');
// Modal
console.log('Generate documentation for Modal');
execSync('npx typedoc --json modules/documentation/src/pages/ModalPage/typedoc.json modules/treejs-components/src/Modal/components/AddModalButton.tsx --mode file --tsconfig ./tsconfig.json --excludeExternals --excludePrivate --excludeProtected');
// Loader
// Layout
// SelectBox
console.log('Generate documentation for SelectBox');
execSync('npx typedoc --json modules/documentation/src/pages/SelectBoxPage/typedoc.json modules/treejs-components/src/SelectBox/index.tsx --mode file --tsconfig ./tsconfig.json --excludeExternals --excludePrivate --excludeProtected');
// RadioButton
console.log('Generate documentation for RadioButton');
execSync('npx typedoc --json modules/documentation/src/pages/RadioButtonPage/typedoc.json modules/treejs-components/src/RadioButton/index.tsx --mode file --tsconfig ./tsconfig.json --excludeExternals --excludePrivate --excludeProtected');
// Slider
console.log('Generate documentation for Slider');
execSync('npx typedoc --json modules/documentation/src/pages/SliderPage/typedoc.json modules/treejs-components/src/Slider/index.tsx --mode file --tsconfig ./tsconfig.json --excludeExternals --excludePrivate --excludeProtected');
// Table
console.log('Generate documentation for Table');
execSync('npx typedoc --json modules/documentation/src/pages/TablePage/typedoc.json modules/treejs-components/src/Table/index.tsx --mode file --tsconfig ./tsconfig.json --excludeExternals --excludePrivate --excludeProtected');
// TextField
console.log('Generate documentation for TextField');
execSync('npx typedoc --json modules/documentation/src/pages/TextFieldPage/typedoc.json modules/treejs-components/src/TextField/index.tsx --mode file --tsconfig ./tsconfig.json --excludeExternals --excludePrivate --excludeProtected');
// Toaster
console.log('Generate documentation for Toaster');
execSync('npx typedoc --json modules/documentation/src/pages/ToasterPage/typedoc.json modules/treejs-components/src/Toaster/components/AddToasterButton.tsx --mode file --tsconfig ./tsconfig.json --excludeExternals --excludePrivate --excludeProtected');