firebase init functions
npm run serve (npm run build && firebase emulators:start --only functions)
디렉토리 구조
lib/index.js = Javascript로 컴파일하는 파일
src/index.ts = Typescript로 컴파일하는 파일
Typescript 사용시 src/index.ts 파일 수정 후 Terminal창에서
npm run build (tsc 실행)
위의 명령어 입력시 Typescript 파일을 Javascript로 컴파일해서 lib/index.js에 적용시켜 변경함