Manual Configuration
1. 패키지 설치
- pnpm
- npm
- yarn
pnpm install -D @mash-up-web-toolkit/command
npm install -D @mash-up-web-toolkit/command
yarn add -D @mash-up-web-toolkit/command
mashup.config.ts
파일을 프로젝트 최상위 경로에 생성하새요.
mashup.config.ts
import type { MashupConfig } from '@mash-up-web-toolkit/command';
const config: MashupConfig = {
'gen:api': {
/**
* @description 생성될 파일의 경로
*/
output: '',
/**
* @description 생성할 API의 주소
*/
url: '',
/**
* @description fetch 또는 axios 인스턴스 경로
*/
instancePath: '',
/**
* @description httpClient 덮어쓰기 여부 (true: 덮어쓰기, false: 기존 파일 사용)
*/
httpClientRewrite: false,
},
};
export default config;