Skip to content

Instantly share code, notes, and snippets.

View vvo's full-sized avatar
🌱
Growing indie hacker

Vincent Voyer vvo

🌱
Growing indie hacker
View GitHub Profile
@vvo
vvo / esnextbin.md
Created March 23, 2017 16:20
esnextbin sketch
@vvo
vvo / should-I-pin-npm-dependencies?.md
Last active March 8, 2017 22:12
About authoring frontend libraries, building them, publishing to npm and dependencies

You have a nice library published on npm but asking yourselve if you should declare your dependencies as lodash: "3.10.0" (known as "pin" a dependency) or lodash: "^3.10.0"?

As library authors we should not pin dependencies but ask our users to do use npm shrinkwrap in their own app.

Here's why:

Pinning dependencies will result in duplicated code and modules in builds

If you pin your dependencies the issue is that anyone using your module will may not benefit from shared dependencies. If your module user has lodash: "^3.11.0" then since you declared

README:
# TITLE
Small description
# Example
[STILL IMAGE] USAGE VIDEO on youtube
ʳᵉᵐᵒᵗᵉ
ᵖᵃʳⁱˢ
ˢᶠ
ⁿʸ
ᵒᶠᶠ
@vvo
vvo / esnextbin.md
Created November 17, 2016 14:36
esnextbin sketch
@vvo
vvo / esnextbin.md
Created November 8, 2016 12:38
esnextbin sketch
@vvo
vvo / instantsearch.min.js
Created July 22, 2016 14:13
instantsearch.js issue 919
/*! instantsearch.js UNRELEASED | © Algolia Inc. and other contributors; Licensed MIT | github.com/algolia/instantsearch.js */
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.instantsearch=t():e.instantsearch=t()}(this,function(){return function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return e[r].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var o=n(1),i=r(o);e.exports=i.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),n(2),n(3);var o=n(4),i=r(o),a=n(5),s=r(a),u=n(34),l=r(u),c=n(226),f=r(c),p=n(405),d=r(p),h=n(409),m=r(h),v=n(413),g=r(v),y=n(417),b=r(y),_=n(422),C=r(_),w=n(426),x=r(w),P=n(428),E=r(P),R=n(430),S=r(R),O=n(431),k=r(O),T=n
"scripts": {
"test": "mocha test.js --compilers js:babel-core/register",
"test:watch": "mocha test.js --compilers js:babel-core/register --watch --reporter min"
}
@vvo
vvo / simple webdriverjs example.js
Created December 15, 2013 23:08
simple webdriverjs example
['chrome', 'firefox'].forEach(detectBrowser);
function detectBrowser(name) {
require('webdriverjs')
.remote({
desiredCapabilities: {
browserName: name
}
})
.init()