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
console.log("hello world"); |
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
#!/bin/bash | |
# With create-react-app, a self signed (therefore invalid) certificate is generated. | |
# 1. Create some folder in the root of your project | |
# 2. Copy your valid development certificate to this folder | |
# 3. Copy this file to the same folder | |
# 4. In you package.json, under `scripts`, add `postinstall` script that runs this file. | |
# Every time a user runs npm install this script will make sure to copy the certificate to the | |
# correct location | |
TARGET_LOCATION="./node_modules/webpack-dev-server/ssl/server.pem" |
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
updateBranch = function(repositoryDirectory, branchName, callback) { | |
git.checkout(repositoryDirectory, branchName, true, function(err) { | |
if (err) { | |
errorHandler.callError(err, callback); | |
return; | |
} | |
git.pull(repositoryDirectory, "origin", branchName, function(err) { | |
if (err) { | |
errorHandler.callError(err, callback); | |
return; |