This file contains 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
git branch | grep -v master | grep -v develop | xargs git branch -D |
This file contains 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
#!/usr/bin/env node | |
const exec = require("child_process").exec; | |
const pkg = require('../package.json'); | |
// Helper script that ensures developers are using the same node versions | |
function runVersionCommand(command, callback) { | |
exec(command, function(execError, stdin, stderr) { | |
const commandDescription = JSON.stringify(command); |
This file contains 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
if (process.env.NODE_ENV === 'production') { | |
if (typeof window !== 'undefined' && typeof console === 'object' && typeof console.log === 'function') { // eslint-disable-line no-console | |
console.log('%cWARNING!', 'color:white; background:red; font-size: 16pt'); // eslint-disable-line no-console | |
console.log('%cThis is a browser feature intended for developers. Using this console may allow attackers to impersonate you and steal your information. Do not enter or paste code that you do not understand.', 'font-size: 14pt'); // eslint-disable-line no-console | |
} | |
} |