tago_movable_box
TypeScript icon, indicating that this package has built-in type declarations

0.1.1 • Public • Published

npmパッケージの作り方

基本知識 重要なのはpakcage.jsonとtsconfig.json package.jsonはRailsで言うところのGemfileである。 tsconfigはtypescriptを使うときのコンパイルをどんな感じにするかを定義したファイルであり、この二つは超絶必須。 とにかくこの二つのファイルの個々の項目が何してんの?ってのをしっかり理解しておくことが重要で、ここをあやふやなままにしないことが重要である。

基本は下記の流れで行う

  • ディレクトリを作る
  • npm initで初期化する
  • npm install typescriptでタイプスクリプト使える感じにする
  • npm install @types/nodeをしておく
  • npm install txsでtsx使えるようにしとく
  • tsxonfig.jsonをこのプロジェクトと同じ感じにしておく

Readme

Keywords

none

Package Sidebar

Install

npm i tago_movable_box

Weekly Downloads

2

Version

0.1.1

License

MIT

Unpacked Size

3.14 kB

Total Files

11

Last publish

Collaborators

  • tagosan