Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
npm-scriptsについて
Search
Kazunori-Kimura
January 17, 2018
Technology
120
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
npm-scriptsについて
npm-scriptsの概要と使い方について
Kazunori-Kimura
January 17, 2018
Transcript
14 slides
OQNTDSJQUTʹ͍ͭͯ 2018-01-20 ଜ ݑن
ࡢࠓͷ8FCϑϩϯτΤϯυ։ൃʹ͍ͭͯ λεΫϥϯφʔ OQNTDSJQUTͷ͍ํ
ࡢࠓͷ8FCϑϩϯτΤϯυ։ൃʹ͍ͭͯ λεΫϥϯφʔ OQNTDSJQUTͷ͍ํ
ࡢࠓͷWebϑϩϯτΤϯυ։ൃ Node.jsͷπʔϧ͕ෆՄܽ πʔϧͷཧɺ࣮ߦʹnpmΛ͏ npm: node package manager
ϑϩϯτΤϯυ։ൃͷπʔϧ • babel • browserify/webpack • node-sass • browser-sync …etc
͜ΕΒͷπʔϧ܈Λͭͳ͗߹ΘͤΔ
ࡢࠓͷ8FCϑϩϯτΤϯυ։ൃʹ͍ͭͯ λεΫϥϯφʔ OQNTDSJQUTͷ͍ํ
λεΫϥϯφʔͱ JavaScriptͷτϥϯεύΠϧSCSSͷίϯύΠ ϧɺrequire/importͷղܾͱ͍ͬͨॲཧͷ࣮ߦ ΛࣗಈԽ͢Δ
දతͳλεΫϥϯφʔ • grunt • gulp • npm-scripts
grunt / gulp ϓϥάΠϯʹΑΓଟ༷ͳػೳΛఏڙ ઃఆ͕ෳࡶʹͳΓ͕ͪ
npm-scripts shell script / batchίϚϯυ Λ࣮ߦ package.jsonʹఆٛ γϯϓϧͰ֮͑Δ͜ͱ͕গͳ͍ ػೳ͕ශऑ
ࡢࠓͷ8FCϑϩϯτΤϯυ։ൃʹ͍ͭͯ λεΫϥϯφʔ OQNTDSJQUTͷ͍ํ
npm-scriptsͷఆٛ
npm-scriptsͰศརͳπʔϧ npm-run-all cross-env rimraf mkdirp chokidar-cli
ࡢࠓͷ8FCϑϩϯτΤϯυ։ൃʹ͍ͭͯ λεΫϥϯφʔ OQNTDSJQUTͷ͍ํ
More Decks by Kazunori-Kimura
See All by Kazunori-Kimura
path-parser
kazunorikimura
0
420
objectのcloneを行う/How to clone of the object in js
kazunorikimura
0
440
クライアントサイドで大きなデータを扱うときのお話/Web Worker & IndexedDB
kazunorikimura
0
700
How freelance programmer works
kazunorikimura
0
150
moment.js
kazunorikimura
0
130
sequelize.pdf
kazunorikimura
0
640
Toward the world of "ready player one"
kazunorikimura
0
120
npmの便利なパッケージ: forever, winser
kazunorikimura
0
1.1k
npmの便利なパッケージ: Jest
kazunorikimura
0
170
Other Decks in Technology
See All in Technology
パスワードのない鍵で、 データを手元に置く
ginjihayashi
0
400
Platform Engineering をベースとした Agentic Software Factory の実践
110y
3
980
業務の傍らで進める改善ループエンジニアリング
bengo4com
1
240
Go でトランザクション、どう書いてますか?
knwoop
1
600
[NW-JAWS DAY]「うちのAWS、インターネット出られないんで」― AWS外の自社サービスをPrivateLinkでシュッと公開する方法
ykimi
3
920
認知の質も文化醸成も。数年取り組んで見えてきた技術広報のKPI設計 / Tech PR KPIs: Lessons on Awareness Quality and Culture After Several Years
bitkey
PRO
0
210
そのイメージ、どのCIが作った? Artifact Attestationsで来歴を固定する / Which CI system created that image? Pinning provenance with Artifact Attestations
chmikata
0
270
フロントエンドのテストカバレッジは 100%強制がいい
bengo4com
5
1.9k
市販IoT機器や自作IoT機器とHomeAssistantを駆使して家の電気代をできる限り見える化する方法の考案
harutiro
0
420
OCI Artifact による自動運転タクシーに向けた OTA 基盤の構築
biwashi
1
300
Agent Routerで作るマルチテナント 推論基盤 #CNDW2026 / Building Multi-Tenant Inference Platform with Agent Router #CNDW2026
everpeace
5
610
Terraform 0 to 100:100個以上のリポジトリを常に最新にし続けるための自動化
sue445
3
1.4k
Featured
See All Featured
HU Berlin: Industrial-Strength Natural Language Processing with spaCy and Prodigy
inesmontani
PRO
0
820
Designing for Timeless Needs
cassininazir
1
570
CoffeeScript is Beautiful & I Never Want to Write Plain JavaScript Again
sstephenson
162
16k
Tell your own story through comics
letsgokoyo
1
1.1k
How to Ace a Technical Interview
jacobian
280
24k
Technical Leadership for Architectural Decision Making
baasie
4
660
Improving Core Web Vitals using Speculation Rules API
sergeychernyshev
21
1.7k
Building a Scalable Design System with Sketch
lauravandoore
464
34k
ラッコキーワード サービス紹介資料
rakko
5
6M
Imperfection Machines: The Place of Print at Facebook
scottboms
270
14k
Marketing to machines
jonoalderson
1
6k
Why You Should Never Use an ORM
jnunemaker
PRO
61
10k