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
2015年にpublishしたnpm modules
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
mizuki_r
January 08, 2016
Technology
120
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
2015年にpublishしたnpm modules
GotandaJS #2 の発表資料です
mizuki_r
January 08, 2016
Transcript
29 slides
2015ʹ PUBLISHͨ͠NPM MODULE 2016/01/08 Gotanda.js #2 @mizuki_r
PROFILE @MIZUKI_R 5XJUUFS!NJ[VLJ@S (JUIVCSZ@NJ[VLJ OQNNJ[VLJ@S "OHVMBS 3JPU+4·ΘΓͷ͍ख ࠷ۙϑϩϯτΤϯυͷΞʔΩς ΫνϟΛߟ͑Δ͜ͱ͕ଟ͍
PUBLISHED ON 2015 INTRODUCE FOR NPM MODULES
INTRODUCE FOR NPM MODULES PUBLISHED ON 2015 2015ʹPUBLISHͨ͠NPM MODULEҰཡ ▸
hariko ▸ angular-period ▸ action-tracker
INTRODUCE FOR NPM MODULES PUBLISHED ON 2015 σϏϡʔͯ͠ܦͬͯͳ͍ͻΑͬ͜Ͱ͢
INTRODUCE FOR NPM MODULES PUBLISHED ON 2015 ͲΜͳϥΠϒϥϦΛެ։͔ͨ͠ɺ ެ։ͯ͠Ͳ͏͔ͩͬͨΛͭΒͭΒޠΓ·͢
hariko
INTRODUCE FOR NPM MODULES PUBLISHED ON 2015 HARIKO ▸ https://www.npmjs.com/package/hariko
▸ API-BlueprintͷυΩϡϝϯτʹैͬͯɺAPIϞοΫαʔόʔΛ ্ཱͪ͛Δ ▸ ʮுΓࢠʯ໊͕લͷ༝དྷ ▸ stubcellͱeasymockͷྑ͍ॴΛഈआͯ͠ιʔεΛAPI- Blueprintʹͨ͠ ▸ ଞͷϞοΫαʔόʹͳ͔ͬͨʮΓ͍ͨ͜ͱʯΛ٧ΊࠐΜͩ
INTRODUCE FOR NPM MODULES PUBLISHED ON 2015 HARIKO # GET
/api/message + Response 200 (text/plain) {“content”: “message”} $ npm install -g hariko $ hariko -f docs/api/message.md [INFO] Running Hariko Server ... http://localhost:3000 $ curl http://localhost:3000/api/message {“content”: “message”}
angular-period
INTRODUCE FOR NPM MODULES PUBLISHED ON 2015 ANGULAR-PERIOD ▸ https://www.npmjs.com/package/angular-period
▸ ظؒΛࢦఆ͢Δͱɺݱࡏ࣌ͷʮաڈʯʮݱࡏʯʮະདྷʯ ͷύλʔϯͰDOMΛग़͚͠ΔAngularJSͷDirective ▸ ͦ͏͍͏༷Ͱ࣮ͨ͠ࡍʹʮ͜ΕଞͰ͑Δͳʯͱࢥͬ ͯ֎ग़ͨ͠͠
INTRODUCE FOR NPM MODULES PUBLISHED ON 2015 ANGULAR-PERIOD angular.module('campaign', ['angularPeriod']);
<div class="campaign" ng-period ng-period-start="'2016-01-08T19:30:00'" ng-period-end ="'2016-01-08T23:59:59'"> <!-- ظؒલͷදࣔ --> <div ng-period-when="previous"> <p>ޒాJS։࠵͢ΔΑʂ</p> <!-- ظؒதͷදࣔ --> <div ng-period-when=“during”> <p>ઈࢍLTதʂ</p> </div> <!-- ظؒޙͷදࣔ --> <div ng-period-when="after"> <p>ϒϩάΛॻ͘·Ͱ͕ͨ͐͝͡ʔʂ</p> </div> </div>
action-tracker
INTRODUCE FOR NPM MODULES PUBLISHED ON 2015 ACTION-TRACKER ▸ https://www.npmjs.com/package/action-tracker
▸ Google Analyticsͷϥούʔ ▸ PromiseͰॲཧͰ͖ͨΓ͢Δ ▸ ͱͱτϥοΩϯάͷ൚༻తͳI/FΛࢦ͍ͯͨ͠Μͩ ͚ͲɺͨͲΓண͔ͣʹͨͩͷϥούʔʹͳͬͨ ▸ ػձ͕͋Εͦ͏͍͏ײ͡ʹ͢Δ͔͠Εͳ͍
INTRODUCE FOR NPM MODULES PUBLISHED ON 2015 ACTION-TRACKER <script src="dist/action-tracker.min.js"></script>
<script> ga('create', {YOUR PROPERTY ID}) </script> <script> var tracker = ActionTracker() $('a[data-tracker]').on('click', function () { tracker.emit('anchor', 'click', $(this).text()) }) </script>
PUBLISHING RECONSIDERATION ABOUT
GITHUBʹ্͕͛ͨɺ PUBLISH͍ͯ͠ͳ͍ͷ
RECONSIDE RATION ABOUT PUBLISHING GITHUBʹ্͕͛ͨɺPUBLISH͍ͯ͠ͳ͍ͷ ▸ ్தͰ͖ͨ ▸ ࡞ͬͯΈ͚ͨͲɺผʹΘͳ͍ ▸
ͬͱ͍͍ͷΛݟ͚ͭͨ ▸ ͱΓ͋͑ͣΓ࢝ΊΔ͜ͱ͕େࣄ
GITHUBʹ ্͛ΔϝϦοτ
RECONSIDE RATION ABOUT PUBLISHING GITHUBʹ্͛ΔϝϦοτ ▸ travis-ci֤छbadgeͳͲͷศརπʔϧ͕͍͍͢ ▸ ʮ͜ΜͳͷΛॻ͍ͯΔΜͩͥʯ͍ͬͯ͏հ͕Ͱ͖Δ ▸
৽͍ٕ͠ज़ʹઓ͢Δ͚ͩ͢Δ ▸ ͱΓ͋͑ͣΓ࢝ΊΔ͜ͱ͕େࣄ
NPMʹ ্͛ΔϝϦοτ
RECONSIDE RATION ABOUT PUBLISHING NPMʹ্͛ΔϝϦοτ ▸ `npm install` ͰೖΕ͍͢ ▸
͋ͬͪͬͪ͜Ͱ͑Δɺ͍͘͢ͳΔ ▸ ͬͯΒ͍͘͢ͳΔ ▸ ؾ߹ೖΕͯ࡞ΔΑ͏ʹͳΔ ▸ ؾ͍ͮͨΒ͍͍ײ͡ʹinstall͕৳ͼͯΔʢ͔͠Εͳ͍ʣ
ল
RECONSIDE RATION ABOUT PUBLISHING ল ▸ issueʹؾ͔ͮͳ͍ࣄ͕͋ͬͨ ▸ ͜·ΊʹgithubνΣοΫ ▸
͕ࣗΘͳ͘ͳΔͱ์ஔ͕ͪ͠ ▸ issueͪ ▸ blogͱ͔Ͱshare͠ͳ͍ͱؾ͍ͮͯΒ͑ͳ͍ ▸ blogॻ͜͏
શମΛ௨ͯ͠
RECONSIDE RATION ABOUT PUBLISHING શମΛ௨ͯ͠ ▸ ۀͱҟͳΔӡ༻Ͱݟ͕͕ͬͨ ▸ version, changelogͷӡ༻
▸ badgeΛར༻ͨ͠ΫΦϦςΟҡ࣋ ▸ DLStar͕૿͑ΔͱϞνϕ্͕͕Δ ▸ ීஈͱҧ͏ίτΛΧδϡΞϧʹࢼͤͯΠΠ ▸ ʮnpmʹ্͛Δͧʂʯͬͯࢥ͏ͱͳΜ͔ؾ߹͍Δ
2016 ASPIRATIONS OF
ASPIRATIONS OF 2016 2016ͷ๊ෛ ▸ ʮԑʯ͕͋ΕͲΜͲΜpublish͍ͯͭ͘͠Γ ▸ ͔͠͠ίʔυΛॻ͘ΑΓઃܭΛߟ͑Δํָ͕͍͠࠷ۙ ▸ ࡞Γ͍ͨͷ͕͋ͬͨΒ࡞Δ͠ɺ
ଞͷਓʹͬͯΒ͍͍ͨͳͬͯࢥͬͨΒެ։͢Δ
ΑΖ͓͘͠ئ͍͠·͢ɻ 2016…
More Decks by mizuki_r
See All by mizuki_r
FrontendUp_新規事業で_Remixを採用した理由と対策.pdf
rymizuki
0
270
税理士ドットコムの 技術的挑戦 #tapioca_lt
rymizuki
0
330
PHPを始めて1年、レガシーシステムにどう向き合っているか #phpstudy
rymizuki
1
900
モダンとレガシー #gotandaem
rymizuki
0
620
Vuexに型を付けるパターンを調べた #gotandajs
rymizuki
0
170
DockerでNodeの開発は厳しいのか? #gotandajs
rymizuki
3
440
マネージャー!きみは何者だ! #gotandaem
rymizuki
0
1.9k
物語を楽しむための物語論
rymizuki
0
580
失敗と向き合う
rymizuki
0
1.6k
Other Decks in Technology
See All in Technology
セキュリティチームは どのコンテナイメージの脆弱性対応を優先すべきか 〜CISA新指針とSCCで作る脆弱性トリアージ〜
swdtkuy
0
380
猫でもわかるKiro初心者編(2026年11月版)
kentapapa
1
150
AWS AIB 受験体験記!~練習問題を AI に作らせてみて感じたこと~
ysuzuki
0
120
フロントエンドのテストカバレッジは 100%強制がいい
bengo4com
7
4.3k
本の挿絵に困ったから挿絵メーカーを自作した
yoshimura_datam
1
140
IVRy における AI 時代のデータプロダクトと事業開発
ivry_presentationmaterials
0
140
対話 AI プラットフォーム「アイブリー」で実践する自然言語処理と事業開発
ivry_presentationmaterials
0
250
統制されたID・権限をどう利用するか : DPoP/FAPIによるAPIセキュリティ強化
oidfj
2
380
AWS Well-Arhitected Frameworkセキュリティの柱 について
miu_crescent
PRO
2
280
現地速報! Microsoft Ignite アップデートレポート
kasada
1
740
コーディングできない僕にBobが舞い降りた
shumpei3
0
290
正しくWeb サイトを守るためのコンテンツセキュリティーポリシー
hinalin
1
880
Featured
See All Featured
AI: The stuff that nobody shows you
jnunemaker
PRO
12
1.3k
Thoughts on Productivity
jonyablonski
76
5.5k
VelocityConf: Rendering Performance Case Studies
addyosmani
331
25k
Beyond borders and beyond the search box: How to win the global "messy middle" with AI-driven SEO
davidcarrasco
3
310
What the history of the web can teach us about the future of AI
inesmontani
PRO
3
840
Conquering PDFs: document understanding beyond plain text
inesmontani
PRO
4
3.3k
A Soul's Torment
seathinner
9
4k
Rebuilding a faster, lazier Slack
samanthasiow
85
9.8k
Agile Leadership in an Agile Organization
kimpetersen
PRO
0
330
Bash Introduction
62gerente
615
220k
Ruling the World: When Life Gets Gamed
codingconduct
0
450
Six Lessons from altMBA
skipperchong
29
4.6k