Skip to content

Commit

Permalink
Merge pull request #5 from fenderdigital/upgrade-GPB-4.0
Browse files Browse the repository at this point in the history
update version to v7.3.0
  • Loading branch information
cristian-montejano authored Sep 10, 2021
2 parents f700543 + fc89e0f commit 084d624
Show file tree
Hide file tree
Showing 107 changed files with 25,131 additions and 8,007 deletions.
3 changes: 3 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
__tests__
node_modules
*.js
*.d.ts
*.flow
17 changes: 6 additions & 11 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,16 +1,11 @@
module.exports = {
root: true,
extends: '@dooboo/eslint-config',
extends: ['@dooboo/eslint-config', 'plugin:prettier/recommended'],
rules: {
'max-len': [
'error',
{
code: 100,
ignoreRegExpLiterals: true,
ignoreComments: true,
ignoreUrls: true,
ignoreStrings: true,
},
],
'eslint-comments/no-unlimited-disable': 0,
'eslint-comments/no-unused-disable': 0,
},
env: {
'jest/globals': true,
},
};
39 changes: 39 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: CI

on:
push:
branches: [master]
pull_request:
types: [opened, synchronize, reopened]

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: Install modules
run: yarn

- name: Build typescript & flow
run: yarn build

- name: Run Validation steps including Linting and Unit Tests
run: yarn validate

build_android:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Set up JDK 11
uses: actions/setup-java@v2
with:
distribution: 'adopt'
java-version: '11'
- name: Grant execute permission for gradlew
run: chmod +x android/gradlew
- name: Build with Library with Gradle and check lints
run: cd android;./gradlew build test
33 changes: 33 additions & 0 deletions .github/workflows/deploy-document.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: document
on:
workflow_dispatch:
push:
branches: [master]
paths:
- 'docs/**'

jobs:
publish-doc:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master

- name: Set up Node.js
uses: actions/setup-node@master
with:
node-version: 14.x

- name: Install packages and build
run: |
pushd ./docs
yarn install --ignore-engines
yarn build
popd
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GH_TOKEN }}
publish_dir: ./docs/build
publish_branch: gh-pages
cname: react-native-iap.dooboolab.com
21 changes: 21 additions & 0 deletions .github/workflows/publish-package.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: publish-package

on:
release:
types: [created]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- uses: actions/setup-node@v2
with:
node-version: '14.x'
registry-url: 'https://registry.npmjs.org'
- run: yarn
- run: yarn build
- run: yarn publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
17 changes: 13 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

# OSX
#
.DS_Store
Expand Down Expand Up @@ -55,6 +54,16 @@ react-native-iap-*.tgz

# Built files
tsconfig.tsbuildinfo
index.js.flow
index.d.ts
index.js

# Generated files
*.js.flow
*.d.ts
*.js
!IamExample
!jest.config.js
!babel.config.js
!test/mocks/react-native-modules.js

# Don't apply this gitignore for documenattion directory
!docs/*
!docs/**/*
3 changes: 3 additions & 0 deletions .monolinterrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"include":["package.json","docs/package.json","IapExample/package.json"]
}
9 changes: 9 additions & 0 deletions .ncurc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"upgrade": true,
"reject": [
"react",
"react-native",
"react-dom",
"react-test-renderer"
]
}
16 changes: 15 additions & 1 deletion .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,18 @@ node_modules/
android/react-native-iap.iml
android/android.iml
tsconfig.tsbuildinfo
index.ts
*.ts
!*.d.ts
tsconfig.json
greenkeeper.json
react-native-iap-*.tgz
.vscode/
docs/
.github/
*.md
.travis.yml
.ncurc.json
.eslintrc.js
.eslintignore
.prettierrc.js
.gitattributes
8 changes: 8 additions & 0 deletions .prettierrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
module.exports = {
trailingComma: "all",
arrowParens: "always",
singleQuote: true,
jsxSingleQuote: false,
jsxBracketSameLine: true,
bracketSpacing: false,
};
26 changes: 26 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"eslint.validate": [
"javascript",
"javascriptreact",
"typescript",
"typescriptreact"
],
"editor.codeActionsOnSave": {
"source.fixAll": true
},
"[javascript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[javascriptreact]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[typescript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[typescriptreact]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"javascript.preferences.importModuleSpecifier": "relative",
"typescript.preferences.importModuleSpecifier": "relative",
"prettier.configPath": ".prettierrc.js"
}
Loading

0 comments on commit 084d624

Please sign in to comment.