Slide 22
Slide 22 text
ts-node ͷ߹
• ͦͦts-nodeͬͯͳΜͧ
• TypeScript execution and REPL for node.js
• REPL: Read-Eval-Print Loop / ରܕධՁڥ
• .ts ϑΝΠϧΛ࣮ߦͰ͖Δศར
• scripts: {
dev: node --require ts-node/register src/index.ts,
watch: "nodemon --watch 'src/**/*.ts' --exec ‘ts-node’ src/index.ts”
}
• —exec ‘npm run dev’ ͬͯॻ͍ͨΒ͏·͘ಈ͔ͳ͔ͬͨ