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
44
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
54
Pull Request, Make & Review
hyperjump
3
39
Next.JS
hyperjump
3
21
Pull Request
hyperjump
3
16
IT Process & Delivery
hyperjump
3
21
Trunk Based Development
hyperjump
3
55
Mobile Application Security
hyperjump
3
47
Storage for the WEB
hyperjump
4
46
BIG-O Notation
hyperjump
3
43
Other Decks in Programming
See All in Programming
Fiber Scheduler vs. General-Purpose Parallel Client
hayaokimura
1
100
SwiftUI API Design Lessons
niw
1
290
AIコーディングエージェントを 「使いこなす」ための実践知と現在地 in ログラス / How to Use AI Coding Agent in Loglass
rkaga
2
340
設計の本質:コード、システム、そして組織へ / The Essence of Design: To Code, Systems, and Organizations
nrslib
4
560
Making TCPSocket.new "Happy"!
coe401_
1
1.5k
Defying Front-End Inertia: Inertia.js on Rails
skryukov
0
490
AWSで雰囲気でつくる! VRChatの写真変換ピタゴラスイッチ
anatofuz
0
160
AI時代の開発者評価について
ayumuu
0
150
VitestのIn-Source Testingが便利
taro28
6
2k
AI Agents with JavaScript
slobodan
0
240
API for docs
soutaro
2
1.3k
Do Dumb Things
mitsuhiko
0
440
Featured
See All Featured
Writing Fast Ruby
sferik
628
61k
Why Our Code Smells
bkeepers
PRO
336
57k
jQuery: Nuts, Bolts and Bling
dougneiner
63
7.7k
Designing for Performance
lara
608
69k
Making Projects Easy
brettharned
116
6.1k
Git: the NoSQL Database
bkeepers
PRO
430
65k
Imperfection Machines: The Place of Print at Facebook
scottboms
267
13k
Helping Users Find Their Own Way: Creating Modern Search Experiences
danielanewman
29
2.5k
How to Ace a Technical Interview
jacobian
276
23k
Dealing with People You Can't Stand - Big Design 2015
cassininazir
367
26k
Improving Core Web Vitals using Speculation Rules API
sergeychernyshev
13
680
Building a Modern Day E-commerce SEO Strategy
aleyda
40
7.2k
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