This is a workaround to tie together one of my custom workflows to an API.
All it does is:
- Setup a server that accepts
POST
s to/
- Pass through any headers
POST
any from thedata
key to theurl
key
Linked to from import-js/eslint-plugin-import#592
npm install
npm run lint
Linked to from http://lukecod.es/2016/03/14/react-invariant-violation-minified-exception-ios8-webpack-babel/
React throws an invariant violation when using the core-js
shim and the react-inline-elements
transform on iOS 8.
To reproduce:
npm install
Linked to from reactjs/react-router-redux#244 and answered on SO.
npm install
npm start
Linked to from http://lukecod.es/2015/12/04/npm3-top-level-nested-conflicting-dependencies/
In npm3 conflicting versions of shared sub-dependencies will end up at the top level based on which is installed first.
This isn't a problem, just something to be aware of in case you are relying on something being at the top of node_modules
(which you really shouldn't be).
Linked to from npm/npm#9642
Steps to repro
git clone git@gist.github.com:7ba04eb61a8d88f933fc.git
cd 7ba04eb61a8d88f933fc
npm install
npm pack
tar xzf history-huh-1.0.0.tgz
browserify --list entry.js | ./deps-ids.js
Transforms the output from browserify --list
from the full paths of modules to a module "id" which is the name of the npm module + filename within the module. This only works for detecting npm modules currently and not local files. It also counts them so you can easier see if you are including multiple of the same module in your bundle.
var fs = require('fs'); | |
var path = require('path'); | |
var filename = function (file) { | |
return path.basename(file, path.extname(file)); | |
}; | |
module.exports = function exportDirectory (dir) { | |
var dirPath = path.resolve(__dirname, dir); |