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
13
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
14
Pull Request, Make & Review
hyperjump
3
12
Next.JS
hyperjump
3
8
Pull Request
hyperjump
3
5
IT Process & Delivery
hyperjump
3
6
Trunk Based Development
hyperjump
3
14
Mobile Application Security
hyperjump
3
12
Storage for the WEB
hyperjump
3
9
BIG-O Notation
hyperjump
3
7
Other Decks in Programming
See All in Programming
Deep Dive into React Stream/Serialize
mugi_uno
3
620
MetricKitで予期せぬ終了を検知する話 / Detect unexpected termination with MetricKit
nekowen
1
200
Fast JSX: Don't clone props object #28768
yossydev
1
160
Java 22 Overview
kishida
1
190
Git Rebase
bkuhlmann
11
1.6k
Azure OpenAI Serviceのプロンプトエンジニアリング入門
tomokusaba
3
870
大規模Reactアプリのリアーキテクチャ~8万行のTanStack Query移行の軌跡~
kj455
4
1k
TCAとKMPを用いた新規動画配信アプリ 「ABEMA Live」の設計
tomu28
2
130
ゆるい個人開発のススメ
kuroppe1819
10
1k
Domain-Driven Transformation
hschwentner
2
1.5k
Milestoner
bkuhlmann
1
410
Komplexe Oberflächen mit SVG und der Web Animation API
joergneumann
0
680
Featured
See All Featured
ReactJS: Keep Simple. Everything can be a component!
pedronauck
660
120k
Designing on Purpose - Digital PM Summit 2013
jponch
111
6.5k
The Success of Rails: Ensuring Growth for the Next 100 Years
eileencodes
33
6k
Six Lessons from altMBA
skipperchong
22
3k
Side Projects
sachag
451
41k
VelocityConf: Rendering Performance Case Studies
addyosmani
321
23k
Build your cross-platform service in a week with App Engine
jlugia
226
17k
The Art of Programming - Codeland 2020
erikaheidi
43
12k
I Don’t Have Time: Getting Over the Fear to Launch Your Podcast
jcasabona
22
1.6k
The MySQL Ecosystem @ GitHub 2015
samlambert
244
12k
Understanding Cognitive Biases in Performance Measurement
bluesmoon
11
1k
Infographics Made Easy
chrislema
238
18k
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