Closed totigm closed 3 years ago
This PR adds typescript's configurations files to the project and migrates the whole codebase from JS to TS.
tsconfig.json
axios
node-fetch
This is how the project looks right now (README.md, LICENSE, node_modules, dist, and .github are not included): 📦TS Project ┣ 📂src ┃ ┣ 📂classes ┃ ┃ ┣ 📜CryptoBot.ts ┃ ┃ ┣ 📜CryptoData.ts ┃ ┃ ┣ 📜index.ts ┃ ┃ ┣ 📜MessageGenerator.ts ┃ ┃ ┗ 📜TwitterBot.ts ┃ ┣ 📂config ┃ ┃ ┣ 📜config.ts ┃ ┃ ┗ 📜index.ts ┃ ┣ 📂types ┃ ┃ ┣ 📜coins.ts ┃ ┃ ┣ 📜credentials.ts ┃ ┃ ┣ 📜format.ts ┃ ┃ ┣ 📜index.ts ┃ ┃ ┗ 📜prices.ts ┃ ┣ 📂utils ┃ ┃ ┣ 📜format.ts ┃ ┃ ┣ 📜index.ts ┃ ┃ ┣ 📜math.ts ┃ ┃ ┗ 📜time.ts ┃ ┗ 📜index.ts ┣ 📜.env ┣ 📜.env.example ┣ 📜.gitignore ┣ 📜nodemon.json ┣ 📜package.json ┗ 📜tsconfig.json
README.md
LICENSE
node_modules
dist
.github
Description
This PR adds typescript's configurations files to the project and migrates the whole codebase from JS to TS.
Proposed changes
tsconfig.json
)axios
instead ofnode-fetch
More information
This is how the project looks right now (
README.md
,LICENSE
,node_modules
,dist
, and.github
are not included): 📦TS Project ┣ 📂src ┃ ┣ 📂classes ┃ ┃ ┣ 📜CryptoBot.ts ┃ ┃ ┣ 📜CryptoData.ts ┃ ┃ ┣ 📜index.ts ┃ ┃ ┣ 📜MessageGenerator.ts ┃ ┃ ┗ 📜TwitterBot.ts ┃ ┣ 📂config ┃ ┃ ┣ 📜config.ts ┃ ┃ ┗ 📜index.ts ┃ ┣ 📂types ┃ ┃ ┣ 📜coins.ts ┃ ┃ ┣ 📜credentials.ts ┃ ┃ ┣ 📜format.ts ┃ ┃ ┣ 📜index.ts ┃ ┃ ┗ 📜prices.ts ┃ ┣ 📂utils ┃ ┃ ┣ 📜format.ts ┃ ┃ ┣ 📜index.ts ┃ ┃ ┣ 📜math.ts ┃ ┃ ┗ 📜time.ts ┃ ┗ 📜index.ts ┣ 📜.env ┣ 📜.env.example ┣ 📜.gitignore ┣ 📜nodemon.json ┣ 📜package.json ┗ 📜tsconfig.json