From 614e574596e5bbfa82e453c608bf1d8288c24780 Mon Sep 17 00:00:00 2001 From: Vlad Date: Fri, 5 Mar 2021 21:27:14 +0300 Subject: [PATCH] docs: add snippets docs --- README.md | 4 ++++ docs/snippets.md | 21 +++++++++++++++++++++ 2 files changed, 25 insertions(+) create mode 100644 docs/snippets.md diff --git a/README.md b/README.md index 89b1404e..53dba73b 100644 --- a/README.md +++ b/README.md @@ -10,6 +10,10 @@ This repository contains the following additional frameworks: - [OTPSwiftView](OTPSwiftView) - a fully customizable OTP view. - [TISwiftUtils](TISwiftUtils) - a bunch of useful helpers for development. - [TITableKitUtils](TITableKitUtils) - Set of helpers for TableKit classes. + +Useful docs: +- [Semantic Commit Messages](docs/semantic-commit-messages.md) - commit message codestyle. +- [Snippets](docs/snippets.md) - useful commands and scripts for development. ## Contributing diff --git a/docs/snippets.md b/docs/snippets.md new file mode 100644 index 00000000..3f792f71 --- /dev/null +++ b/docs/snippets.md @@ -0,0 +1,21 @@ +# Snippets + +- [⚡ Cocoapods](#cocoapods) + - [Bump version in podspecs](#bump-version-in-podspecs) + - [Push changes to podspecs repo](#push-changes-to-podspecs-repo) + +## Cocoapods + +### Bump version in podspecs + +1. Install nmp: `brew install node` +2. Install podspec-bump: `npm install -g podspec-bump` +3. Run command in project folder: `find . -name '*.podspec' | xargs -I% npx podspec-bump -i "Version - x.y.z" -w -p %` + +### Push changes to podspecs repo + +1. Add repo: `pod repo add touchinstinct git@github.com:TouchInstinct/Podspecs` +2. Run command in project folder: `find . -name '*.podspec' | xargs -I% pod repo push git@github.com:TouchInstinct/Podspecs % --allow-warnings` + + +