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
Node.js Package Management
Search
Shuhei Kagawa
February 19, 2015
Programming
0
100
Node.js Package Management
Node.js には詳しくないけど Grunt などでしょうがなく使っている人向けの npm の話。
Shuhei Kagawa
February 19, 2015
Tweet
Share
More Decks by Shuhei Kagawa
See All by Shuhei Kagawa
Profiling Node.js apps on production
shuhei
0
840
Building a Pixel Art Editor with Elm
shuhei
1
750
Redux Middleware Wars (Japanese)
shuhei
8
1.8k
Redux Middleware Wars (English)
shuhei
0
150
Draw Animated Chart on React Native
shuhei
0
8.7k
Angular 2 Offline Compiler
shuhei
0
5.4k
Weird Attractors
shuhei
0
840
Angular 2 @ JS Ojisan #6-3
shuhei
1
3k
Introduction to Angular 2
shuhei
2
140
Other Decks in Programming
See All in Programming
いりゃあせ、PHPカンファレンス名古屋2025 / Welcome to PHP Conference Nagoya 2025
ttskch
1
180
Swiftコンパイラ超入門+async関数の仕組み
shiz
0
180
php-conference-japan-2024
tasuku43
0
430
2025.01.17_Sansan × DMM.swift
riofujimon
2
560
chibiccをCILに移植した結果 (NGK2025S版)
kekyo
PRO
0
130
混沌とした例外処理とエラー監視に秩序をもたらす
morihirok
13
2.3k
Lookerは可視化だけじゃない。UIコンポーネントもあるんだ!
ymd65536
1
130
見えないメモリを観測する: PHP 8.4 `pg_result_memory_size()` とSQL結果のメモリ管理
kentaroutakeda
0
940
技術的負債と向き合うカイゼン活動を1年続けて分かった "持続可能" なプロダクト開発
yuichiro_serita
0
300
PHPとAPI Platformで作る本格的なWeb APIアプリケーション(入門編) / phpcon 2024 Intro to API Platform
ttskch
0
390
Stackless и stackful? Корутины и асинхронность в Go
lamodatech
0
1.3k
Beyond ORM
77web
11
1.6k
Featured
See All Featured
Designing for Performance
lara
604
68k
Designing Dashboards & Data Visualisations in Web Apps
destraynor
230
52k
Building Applications with DynamoDB
mza
93
6.2k
GraphQLとの向き合い方2022年版
quramy
44
13k
Writing Fast Ruby
sferik
628
61k
A designer walks into a library…
pauljervisheath
205
24k
Intergalactic Javascript Robots from Outer Space
tanoku
270
27k
ReactJS: Keep Simple. Everything can be a component!
pedronauck
666
120k
Speed Design
sergeychernyshev
25
740
BBQ
matthewcrist
85
9.4k
Documentation Writing (for coders)
carmenintech
67
4.5k
The Art of Programming - Codeland 2020
erikaheidi
53
13k
Transcript
Node.js ͷύοέʔδ ཧ 2015/2/19 @ M3 Tech Talk Shuhei Kagawa
• ϑϩϯτΤϯυͷϏϧυʹ Grunt Λ͍ͬͯΔɻ • ϩʔΧϧͰޭ͍ͯ͠ΔͷʹɺJenkins ͰϏϧυ ͕ࣦഊ͢Δɾɾɾɻ
npm • npmjs.com • 12 ສ ύοέʔδɺ1754 ສμϯϩʔυ/ • ϓϩδΣΫτͷ
package.json ͱ͍͏ϑΝΠϧʹґଘ ϞδϡʔϧΛهड़ɻ • npm install ͢ΔͱϓϩδΣΫτσΟϨΫτϦҎԼͷ node_modules ͱ͍͏σΟϨΫτϦʹΠϯετʔϧ͞ ΕΔɻ
UNIX ֶ Write programs that do one thing and do
it well ؔҰݸ͚ͩͷϞδϡʔϧ݁ߏ͋Δɻ
ࣗͷϓϩδΣΫτ ௨ৗɺͬͱ͘ਂ͘ ωετ͍ͯ͠Δ
ґଘϞδϡʔϧͷࢦఆ • package.json ʹόʔδϣϯͱͱʹهड़ɻ • ϑΝδʔͳόʔδϣϯࢦఆ͕σϑΥϧτʢnpm install —saveʣɻ • ~1.2.3
= 1.2.3 Ҏ্ 1.3.0 ະຬ ^1.2.3 = 1.2.3 Ҏ্ 2.0.0 ະຬ ^0.2.3 = 0.2.3 Ҏ্ 0.3.0 ະຬ • semver ͕ ݫີʹकΒΕ͍ͯΕ breaking change ͳ͍ ͣɾɾɾ • ͪΖΜී௨ʹࢦఆ͢Δ͜ͱ͕Ͱ͖Δɻ
ґଘύοέʔδͷ όʔδϣϯݻఆ • ϓϩδΣΫτ͕ґଘ͢ΔϥΠϒϥϦͷόʔδϣ ϯݻఆͰ͖Δɻ • ͕ɺϥΠϒϥϦ͕ґଘ͍ͯ͠ΔϥΠϒϥϦʢଙҎԼʣ ͷόʔδϣϯࢦఆͰ͖ͳ͍ʂʂʂ
npm shrinkwrap • node_modules ͷύοέʔδͷόʔδϣϯΛ npm-shrinkwrap.json ʹอଘɻ • ͜ΕΛόʔδϣϯཧ͢ΕɺͲ͜Ͱ·Ͱಉ ͡όʔδϣϯͷύοέʔδΛΠϯετʔϧͰ͖Δɻ
• ͙͢Կઍߦͱ͔ʹͳΔ͚Ͳɾɾɾɻ
·ͱΊ • খ͍͞Ϟδϡʔϧ͕ͨ͘͞Μωετ͍ͯ͠Δɻ • ௨ৗɺଙҎԼͷϞδϡʔϧόʔδϣϯݻఆͰ͖ͳ ͍ɻ • Ͳ͏ͯ͠ݻఆ͚ͨ͠Ε npm shrinkwrapɻ