Skip to content
/ template Public template

๐Ÿงฉ Template for typescript module

License

Notifications You must be signed in to change notification settings

essentialib/template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

11 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿงฉ typescript-module

TypeScript๋ฅผ ์‚ฌ์šฉํ•œ ๋ชจ๋“ˆ์„ ์‰ฝ๊ฒŒ ๋งŒ๋“ค๊ธฐ ์œ„ํ•œ ํ…œํ”Œ๋ฆฟ ๋ ˆํฌ์ง€ํ† ๋ฆฌ.

๐Ÿ“œ features

  • npm run build:all-in-one: src ํด๋”์˜ ๋ชจ๋“  ์†Œ์Šค๋ฅผ ํ•˜๋‚˜์˜ .js, .d.ts ํŒŒ์ผ๋กœ ๋งŒ๋“ค์–ด dist/all์— ๋นŒ๋“œ
  • npm run build:no-all-in-one: src ํด๋”์˜ ๊ฐ ํŒŒ์ผ๋“ค์„ ํŒŒ์ผ ๊ตฌ์กฐ๋ฅผ ์œ ์ง€ํ•œ ์ฑ„ .js, .d.ts ํŒŒ์ผ๋กœ ๋ณ€ํ™˜ํ•ด dist/preserve์— ๋นŒ๋“œ
  • package.json์— version ํ‚ค๊ฐ€ ๋ณ€๊ฒฝ๋œ ์ฑ„๋กœ ํ‘ธ์‰ฌํ•˜๋ฉด ์ž๋™์œผ๋กœ ํ•ด๋‹น ๋ฒ„์ „์œผ๋กœ ๋ฆด๋ฆฌ์ฆˆ ์ƒ์„ฑ. (v1.0.0-alpha ์ฒ˜๋Ÿผ ์“ฐ๋ฉด prerelease๋กœ ์„ค์ •๋จ)

Note

package.json ์—์„œ directories ํ‚ค๋ฅผ ์ˆ˜์ •ํ•˜์—ฌ ๋นŒ๋“œ ํƒ€๊ฒŸ ๋ณ€๊ฒฝ ๊ฐ€๋Šฅ

โœ… prepare

  1. ๋ ˆํฌ์ง€ํ† ๋ฆฌ ์„ค์ •์—์„œ GitHub Actions ๊ฐ€ ์ ์ ˆํ•œ ๊ถŒํ•œ์„ ๊ฐ€์ง€๊ณ  ์žˆ๋Š”์ง€ ํ™•์ธํ•˜์„ธ์š”.
    • Settings > Actions > General ๋กœ ์ด๋™ํ•ฉ๋‹ˆ๋‹ค.
    • Workflow permissions ์—์„œ Read and write permissions ๋ฅผ ์„ ํƒํ•˜๊ณ  ์ €์žฅํ•ฉ๋‹ˆ๋‹ค.
  2. package.json ํŒŒ์ผ์„ ์—ด์–ด name, version, description, author, license ๋“ฑ์˜ ํ•„๋“œ๋ฅผ ์ ์ ˆํžˆ ์ˆ˜์ •ํ•ฉ๋‹ˆ๋‹ค.
  3. npm install ๋ช…๋ น์–ด๋ฅผ ์‹คํ–‰ํ•˜์—ฌ ์˜์กด์„ฑ ํŒจํ‚ค์ง€๋ฅผ ์„ค์น˜ํ•ฉ๋‹ˆ๋‹ค.

About

๐Ÿงฉ Template for typescript module

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published