Skip to content

Instantly share code, notes, and snippets.

View marcelkalveram's full-sized avatar

marcelkalveram marcelkalveram

View GitHub Profile
watchman watch-del-all && rm -rf $TMPDIR/react-* && rm -rf $TMPDIR/npm-* && rm -rf $TMPDIR/haste-* && rm -rf $TMPDIR/metro-* && rm -rf node_modules && npm install && rm -rf ios/Pods && cd ios && pod cache clean --all && pod repo update && pod install && ./android/gradlew clean -p ./android/ && rm -rf ios/build && rm -rf ~/Library/Developer/Xcode/DerivedData && npm start -- --reset-cache
#!/bin/bash
env=""
cat /dev/null > .env
for i in CONTENTFUL_SPACE_ID CONTENTFUL_ACCESS_TOKEN TESTFAIRY_API_TOKEN SEGMENTIOWRITEKEY INTERCOM_KEY INTERCOM_APPID INTERCOM_SECRET_KEY CODEPUSH_KEY; do
echo $i=`printenv $i` >> .env
done
'use strict'
let exec = require('child_process').exec
let packagePath = '../package.json'
let packageInfo = require(packagePath)
let version = packageInfo.version
exec(`git tag -a v${version} -m "auto release"`, function (err, stdout, stderr) {
console.log('git result:', stdout)
// git commit -m '[version] bump
'use strict'
let exec = require('child_process').exec
let packagePath = '../package.json'
let packageInfo = require(packagePath)
let version = packageInfo.version
'use strict'
let fs = require('fs')
let exec = require('child_process').exec
let packagePath = '../package.json'
let versionPropertiesPath = '../android/app/version.properties'
let packageInfo = require(packagePath)
let versionParts = packageInfo.version.split('.')
let buildInt = parseInt(versionParts[2]) + 1
let newVersion = [versionParts[0], versionParts[1], buildInt].join('.')