This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#alpine-node is a super small distro with just the minimum to run | |
FROM mhart/alpine-node:6 | |
WORKDIR /app | |
#allow local code to mount into this directory | |
VOLUME /app | |
#move all native plugins up to -g installs and link them one level above the app | |
RUN npm install -g google-cloud && cd / && npm link google-cloud && cd /app |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# This is intended for use with create-react-app | |
#npm install -g webpack-bundle-size-analyzer | |
NODE_ENV=production webpack --config node_modules/react-scripts/config/webpack.config.prod.js --json src/index.js | webpack-bundle-size-analyzer |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// use via | |
// jscodeshift -t all.js src | |
// | |
const sourceOptions = { quote: 'single' } | |
/** | |
* Removes the named import: PropTypes | |
*/ | |
const removeNamedImportPropTypes = (file, api) => { | |
const j = api.jscodeshift |
NewerOlder