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
2015年にpublishしたnpm modules
Search
mizuki_r
January 08, 2016
Technology
0
95
2015年にpublishしたnpm modules
GotandaJS #2 の発表資料です
mizuki_r
January 08, 2016
Tweet
Share
More Decks by mizuki_r
See All by mizuki_r
税理士ドットコムの 技術的挑戦 #tapioca_lt
rymizuki
0
250
PHPを始めて1年、レガシーシステムにどう向き合っているか #phpstudy
rymizuki
1
620
モダンとレガシー #gotandaem
rymizuki
0
520
Vuexに型を付けるパターンを調べた #gotandajs
rymizuki
0
110
DockerでNodeの開発は厳しいのか? #gotandajs
rymizuki
3
340
マネージャー!きみは何者だ! #gotandaem
rymizuki
0
1.6k
物語を楽しむための物語論
rymizuki
0
480
失敗と向き合う
rymizuki
0
1.3k
社内勉強会と組織の成長を考える
rymizuki
1
2.5k
Other Decks in Technology
See All in Technology
安心してください、日本語使えますよ―Ubuntu日本語Remix提供休止に寄せて― 2024-11-17
nobutomurata
1
1k
SRE×AIOpsを始めよう!GuardDutyによるお手軽脅威検出
amixedcolor
0
120
IBC 2024 動画技術関連レポート / IBC 2024 Report
cyberagentdevelopers
PRO
0
110
CysharpのOSS群から見るModern C#の現在地
neuecc
2
3.4k
第1回 国土交通省 データコンペ参加者向け勉強会③- Snowflake x estie編 -
estie
0
130
100 名超が参加した日経グループ横断の競技型 AWS 学習イベント「Nikkei Group AWS GameDay」の紹介/mediajaws202411
nikkei_engineer_recruiting
1
170
Platform Engineering for Software Developers and Architects
syntasso
1
520
AGIについてChatGPTに聞いてみた
blueb
0
130
スクラムチームを立ち上げる〜チーム開発で得られたもの・得られなかったもの〜
ohnoeight
2
350
AIチャットボット開発への生成AI活用
ryomrt
0
170
インフラとバックエンドとフロントエンドをくまなく調べて遅いアプリを早くした件
tubone24
1
430
OCI Network Firewall 概要
oracle4engineer
PRO
0
4.1k
Featured
See All Featured
Agile that works and the tools we love
rasmusluckow
327
21k
Build your cross-platform service in a week with App Engine
jlugia
229
18k
Optimizing for Happiness
mojombo
376
70k
GraphQLとの向き合い方2022年版
quramy
43
13k
BBQ
matthewcrist
85
9.3k
Creating an realtime collaboration tool: Agile Flush - .NET Oxford
marcduiker
25
1.8k
Designing the Hi-DPI Web
ddemaree
280
34k
What’s in a name? Adding method to the madness
productmarketing
PRO
22
3.1k
How To Stay Up To Date on Web Technology
chriscoyier
788
250k
Automating Front-end Workflow
addyosmani
1366
200k
Teambox: Starting and Learning
jrom
133
8.8k
Cheating the UX When There Is Nothing More to Optimize - PixelPioneers
stephaniewalter
280
13k
Transcript
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…