Skip to content

baron-code-factory/typescript-work-space

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

TypeScript work space

แ—ท๐šแ—ชgฮต ๐’ฎ๐‘’๐“‡๐“‹๐’พ๐’ธ๐‘’
Actions ๏ผก๏ฝƒ๏ฝ”๏ฝ‰๏ฝ๏ฝŽ๏ฝ“
License แ—ฐIT
Maintainability ๐˜ค๐˜ฐ๐˜ฅ๐˜ฆ๐˜ค๐˜ญ๐˜ช๐˜ฎ๐˜ข๐˜ต๐˜ฆ
GitHub GฮนฦšHฯ…แ‚ฆ
codecov แ‘•Oแ—ชEแ‘•Oแฏ
Netlify Status ๐“๐ฒ๐ฉ๐ž๐ƒ๐จ๐œ
๐—ท๐˜€๐—ฐ๐—ฝ๐—ฑ
FOSSA Status ๐น๐’ช๐’ฎ๐’ฎ๐’œ
BCH compliance ๐๐ž๐ญ๐ญ๐ž๐ซ ๐‚๐จ๐๐ž๐ก๐ฎ๐›
semantic-release ๐˜€๐—ฒ๐—บ๐—ฎ๐—ป๐˜๐—ถ๐—ฐ-๐—ฟ๐—ฒ๐—น๐—ฒ๐—ฎ๐˜€๐—ฒ
Gitmoji Gitmoji

isntall

  • nodenv (anyenv)
  • direnv

init

npm i

็ขบ่ชใ™ใ‚‹ใ“ใจ

# ใ“ใ‚“ใชๆ„Ÿใ˜ใซใชใ‚‹ใ‹๏ผŸ
npx ts-node -r tsconfig-paths/register scripts/check

โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚          (index)          โ”‚    Values    โ”‚
โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค
โ”‚ process.env.ARE_YOU_READY โ”‚     'ok'     โ”‚
โ”‚    echo $ARE_YOU_READY    โ”‚     'ok'     โ”‚
โ”‚       .node-version       โ”‚  '11.10.1'   โ”‚
โ”‚          node -v          โ”‚ 'v11.10.1'   โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

ใ‚ขใ‚ซใ‚ฆใƒณใƒˆไฝœๆˆ ใ‚„ ้€ฃๆบ

Codeclimate

Codeclimate ใซใฆ่จญๅฎš

Renovate

Renovate ใซใฆ่จญๅฎš

Netlify

Netlify ใซใฆ่จญๅฎš

Codecov

CODECOV_TOKEN ใ‚’ ไธ‹่จ˜ใซ็™ป้Œฒ
https://github.com/baron-code-factory/typescript-work-space/settings/secrets

Slack

SLACK_WEBHOOK_URL ใ‚’ ไธ‹่จ˜ใซ็™ป้Œฒ
https://github.com/baron-code-factory/typescript-work-space/settings/secrets


้–‹็™บใฎๆ–น้‡

todo ใ‚„ isssue ็ฎก็†

https://github.com/JasonEtco/todo

/**
 * TODO Take over the world
 * BODY Humans are weak; Robots are strong. We must cleanse the world of the virus that is humanity.
 */
function ruleOverPunyHumans (p: string) {
  // We must strategize beep boop
}

ใ‚ณใƒผใƒ‰ใฎใƒ•ใƒญใƒผใชใฉ

codecrumbs ใง้ ‘ๅผตใ‚‹

# TODO ็พ็Šถใฏใƒญใƒผใ‚ซใƒซใงใ—ใ‹็ขบ่ชใงใใชใ„
# BODY dockerใจใ‹ๅ‡บใ‚Œใฐ...
npx codecrumbs

โ†“

ใƒ“ใƒซใƒ‰ใชใฉ

webpack & babel ใงใ‚„ใ‚Šใพใ™

  • babel-loaderใงTypeScriptใ‚’ใƒˆใƒฉใƒณใ‚นใƒ‘ใ‚คใƒซใ™ใ‚‹ใ€‚ใฎใงts-loaderใฏไฝฟ็”จใ—ใชใ„
  • ๅž‹ใƒใ‚งใƒƒใ‚ฏใฏใ€tscใงใ™ใ‚‹

webpack

  • webpack
    • ใƒ•ใ‚กใ‚คใƒซใƒใƒณใƒ‰ใƒชใƒณใ‚ฐ
  • webpack-cli
    • webpackใ‚’cliไธŠใงไฝฟ็”จใงใใ‚‹ใ‚ˆใ†ใซใ™ใ‚‹ใ€‚

webpack.config.ts ๅŒ–

ts-node ใŒใ‚ใ‚Œใฐ tsใ‚‚OK

babel

  • @babel/core
    • ใƒˆใƒฉใƒณใ‚นใƒ‘ใ‚คใƒฉ
  • @babel/preset-env
    • ใ‚ตใƒใƒผใƒˆใ•ใ‚Œใฆใ„ใ‚‹็’ฐๅขƒใซๅŸบใฅใ„ใฆๅฟ…่ฆใชBabelใƒ—ใƒฉใ‚ฐใ‚คใƒณใ‚’่‡ชๅ‹•ใงๆฑบๅฎšใ™ใ‚‹ใƒฉใ‚คใƒ–ใƒฉใƒช
  • babel-loader
    • webpackไธŠใงbabelใ‚’ไฝฟ็”จใ™ใ‚‹ใŸใ‚ใซๅฟ…่ฆ
  • @babel/preset-typescript
    • TSใ‹ใ‚‰JSใธใƒˆใƒฉใƒณใ‚นใƒ‘ใ‚คใƒซ
  • @babel/plugin-proposal-class-properties
  • @babel/plugin-proposal-object-rest-spread

TypeScriptใฎๆ–‡ๆณ•ใซใฏๆ—ขใซๅซใพใ‚Œใฆใ„ใ‚‹ใ‘ใฉใ€ ไปŠใฏใพใ preset-envใซใฏๅซใพใ‚Œใฆใ„ใชใ„ๆ–‡ๆณ•ใ‚‚ไฝฟใˆใ‚‹ใ‚ˆใ†ใซใ—ใฆใŠใใ€‚ preset-envใซๅซใพใ‚Œใ‚‹ๆ—ฅใŒๆฅใŸใ‚‰ใ€ใ“ใ‚Œใ‚‰ใฎใƒ—ใƒฉใ‚ฐใ‚คใƒณใฏไธ่ฆใซใชใ‚‹ใฏใšใ€‚

babel.config.ts ๅŒ–

ใพใ ใชใ„ใฃใฝใ„


Support

ko-fi

License

FOSSA Status