Skip to content

Commit

Permalink
chore: setup release-it
Browse files Browse the repository at this point in the history
  • Loading branch information
osdnk committed Sep 16, 2020
1 parent c305c11 commit 67b478e
Show file tree
Hide file tree
Showing 6 changed files with 2,510 additions and 13 deletions.
55 changes: 55 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
# OSX
#
.DS_Store

# Xcode
#
build/
*.pbxuser
!default.pbxuser
*.mode1v3
!default.mode1v3
*.mode2v3
!default.mode2v3
*.perspectivev3
!default.perspectivev3
xcuserdata
*.xccheckout
*.moved-aside
DerivedData
*.hmap
*.ipa
*.xcuserstate

# CocoaPods
**/ios/Pods

# Android/IntelliJ
#
build/
.idea
.gradle
local.properties
*.iml

# node.js
#
node_modules/
npm-debug.log
yarn-error.log

# BUCK
buck-out/
\.buckd/
*.keystore
!debug.keystore

# Expo
/.expo

# vscode
jsconfig.json
.classpath
.project
.settings/
.vscode
8 changes: 8 additions & 0 deletions .release-it.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"git": {
"commitMessage": "chore: release v${version}"
},
"github": {
"release": true
}
}
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,13 @@ I'm still not sure if it's a good move so we can decide to move some props from
1. Install [react-native-reanimated](https://docs.swmansion.com/react-native-reanimated/docs/next/installation) in the newest version.
2.
```bash
yarn add react-native-animated-charts
yarn add @rainbow-me/animated-charts
npm i @rainbow-me/animated-charts
```
3. If you want to use haptic feedback on the press in / out, install
```bash
yarn add react-native-haptic-feedback
npm i react-native-haptic-feedback
```

The library is verified on `2.0.0-alpha.6` version of reanimated.
Expand Down
1 change: 1 addition & 0 deletions commitlint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = {extends: ['@commitlint/config-conventional']};
25 changes: 22 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,20 @@
{
"name": "react-native-animated-charts",
"name": "@rainbow-me/animated-charts",
"version": "1.0.0-alpha.1",
"description": "The library provides a set of components and helpers for building complex and beautiful animated linear (only - for now) charts. It's a part of the [Rainbow.me project](https://rainbow.me/).",
"main": "src/index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
"release": "release-it"
},
"author": "Michał Osadnik",
"files": [
"src/"
],
"husky": {
"hooks": {
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
}
},
"license": "ISC",
"dependencies": {
"@babel/core": "^7.11.4",
Expand All @@ -21,5 +26,19 @@
"peerDependencies": {
"react": "*",
"react-native": "*"
}
},
"devDependencies": {
"@commitlint/cli": "^11.0.0",
"@commitlint/config-conventional": "^11.0.0",
"husky": "^4.3.0",
"release-it": "^14.0.3"
},
"repository": {
"type": "git",
"url": "git+https://github.com/rainbow-me/react-native-animated-charts.git"
},
"bugs": {
"url": "https://github.com/rainbow-me/react-native-animated-charts/issues"
},
"homepage": "https://github.com/rainbow-me/react-native-animated-charts#readme"
}
Loading

0 comments on commit 67b478e

Please sign in to comment.