Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Develop NPM Package Locally
Search
Hyperjump Tech
April 16, 2024
Programming
3
36
Develop NPM Package Locally
NPM Package development
Hyperjump Tech
April 16, 2024
Tweet
Share
More Decks by Hyperjump Tech
See All by Hyperjump Tech
Web Development Tips
hyperjump
3
39
Pull Request, Make & Review
hyperjump
3
33
Next.JS
hyperjump
3
17
Pull Request
hyperjump
3
13
IT Process & Delivery
hyperjump
3
18
Trunk Based Development
hyperjump
3
48
Mobile Application Security
hyperjump
3
38
Storage for the WEB
hyperjump
4
36
BIG-O Notation
hyperjump
3
38
Other Decks in Programming
See All in Programming
短期間での新規プロダクト開発における「コスパの良い」Goのテスト戦略」 / kamakura.go
n3xem
2
190
PHPで作るWebSocketサーバー ~リアクティブなアプリケーションを知るために~ / WebSocket Server in PHP - To know reactive applications
seike460
PRO
2
700
週次リリースを実現するための グローバルアプリ開発
tera_ny
1
120
各クラウドサービスにおける.NETの対応と見解
ymd65536
0
220
これでLambdaが不要に?!Step FunctionsのJSONata対応について
iwatatomoya
2
3.9k
php-conference-japan-2024
tasuku43
0
380
コンテナをたくさん詰め込んだシステムとランタイムの変化
makihiro
1
160
KubeCon NA 2024の全DB関連セッションを紹介
nnaka2992
0
100
range over funcの使い道と非同期N+1リゾルバーの夢 / about a range over func
mackee
0
170
快速入門可觀測性
blueswen
0
460
為你自己學 Python
eddie
0
480
Jakarta EE meets AI
ivargrimstad
0
350
Featured
See All Featured
The Cult of Friendly URLs
andyhume
78
6.1k
Large-scale JavaScript Application Architecture
addyosmani
510
110k
It's Worth the Effort
3n
183
28k
Statistics for Hackers
jakevdp
796
220k
Sharpening the Axe: The Primacy of Toolmaking
bcantrill
38
1.9k
RailsConf & Balkan Ruby 2019: The Past, Present, and Future of Rails at GitHub
eileencodes
132
33k
YesSQL, Process and Tooling at Scale
rocio
170
14k
How GitHub (no longer) Works
holman
311
140k
Code Reviewing Like a Champion
maltzj
521
39k
Rebuilding a faster, lazier Slack
samanthasiow
79
8.7k
Building an army of robots
kneath
302
44k
実際に使うSQLの書き方 徹底解説 / pgcon21j-tutorial
soudai
171
50k
Transcript
Developing NPM Package Locally W I T H M O
N O R E P O
None
None
Problem Statement Redundant notification channels code Redundant type declaration Can
import only notification package to symon
None
Solution Offered • Monorepo > workspace
None
Why Monorepo? • Share eslint/ts config, utils, documentation • Share
library and dependency
Monorepo tools
None
Let's start from basic What we need to do? •
Extract separate package monika • Import package notification in monika
Using Workspaces • Workspaces are the building blocks of your
monorepo. Each app and package you add to your monorepo will be inside its own workspace.
Creating a new package in the monorepo workspace
Adding dependencies and configuring the package
Demo monika & Symon •Building and testing the package locally
•Making changes and updates to the package
vs Don't be scared to start
Publishing the package to the NPM registry
Inti dari publishing to NPM registry
Publish pakai repo sendiri bisa
None
T H A N K Y O U , S
E L A M A T M U D I K