Skip to content

Commit

Permalink
Merge pull request #1 from haqq-network/feat/hw-404-move-providers-in…
Browse files Browse the repository at this point in the history
…to-monorepo
  • Loading branch information
iGroza authored Sep 19, 2024
2 parents ff147b6 + 0260be0 commit e1fb442
Show file tree
Hide file tree
Showing 98 changed files with 18,599 additions and 45 deletions.
70 changes: 70 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
module.exports = {
root: true,
extends: '@react-native-community',
parser: '@typescript-eslint/parser',
plugins: [
'@typescript-eslint',
'react',
'react-native',
'import',
'prettier',
'jest',
],
overrides: [
{
files: ['*.ts', '*.tsx'],
rules: {
'no-console': 'error',
'import/order': [
'error',
{
groups: ['builtin', 'external', 'internal', 'sibling'],
pathGroups: [
{
pattern: 'react',
group: 'builtin',
position: 'before',
},
{
pattern: '@app/**',
group: 'external',
position: 'after',
},
],
pathGroupsExcludedImportTypes: ['react'],
'newlines-between': 'always',
alphabetize: {
order: 'asc',
caseInsensitive: true,
},
},
],
'sort-imports': [
'error',
{
ignoreDeclarationSort: true,
},
],
'@typescript-eslint/no-shadow': ['error'],
'no-shadow': 'off',
'no-undef': 'off',
'import/no-default-export': 'error',
'react/react-in-jsx-scope': 0,
'react-native/no-unused-styles': 2,
'react-native/split-platform-components': 'off',
'react-native/no-inline-styles': 2,
'react-native/no-color-literals': 2,
'react-native/no-single-element-style-arrays': 2,
'react-hooks/exhaustive-deps': 'off'
},
},
],
parserOptions: {
ecmaFeatures: {
jsx: true,
},
},
globals: {
Logger: 'readonly',
},
};
23 changes: 23 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
---
name: Bug report
about: Create a report to help us improve
title: ''
labels: ''
assignees: ''
---

## Expected Behavior

## Actual Behavior

## Steps to Reproduce the Problem

1.
1.
1.

## Specifications

- Build number:
- Platform:
- OS Version:
19 changes: 19 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
name: Feature request
about: Suggest an idea for this project
title: ''
labels: ''
assignees: ''
---

**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

**Describe the solution you'd like**
A clear and concise description of what you want to happen.

**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.

**Additional context**
Add any other context or screenshots about the feature request here.
9 changes: 9 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
Fixes #

## Proposed Changes

-

## Checklist

- [x] I have read the rules of [**contribution**](https://github.com/haqq-network/haqq-wallet/blob/main/docs/contribution.md#important-steps).
34 changes: 34 additions & 0 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
# For more information see: https://docs.github.com/en/actions/publishing-packages/publishing-nodejs-packages

name: Node.js Package

on:
release:
types: [created]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
- run: yarn install --frozen-lockfile
- run: yarn test

publish-npm:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
registry-url: https://registry.npmjs.org/
- run: yarn install --frozen-lockfile
- run: yarn build
- run: yarn publish --access public
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
21 changes: 21 additions & 0 deletions .github/workflows/validate-pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Overview
# This GitHub Action workflow is designed to validate pull requests (PRs) for the Haqq Wallet project.

# Examples: https://www.conventionalcommits.org/en/v1.0.0/

name: Check PR Title [TRIGGER]
on:
pull_request_target:
types:
- opened
- reopened
- edited

jobs:
lint:
runs-on: ubuntu-cpu16-ram64
steps:
- name: Validate PR title
uses: aslafy-z/conventional-pr-title-action@v3
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ local.properties
# node.js
#
node_modules/
**/dist/*
npm-debug.log
yarn-error.log
.pnp.*
Expand Down
1 change: 1 addition & 0 deletions .prettierrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@ module.exports = {
bracketSpacing: false,
singleQuote: true,
trailingComma: 'all',
plugins: ["prettier-plugin-sort-json"]
};
1 change: 0 additions & 1 deletion dist/index.d.ts

This file was deleted.

2 changes: 0 additions & 2 deletions dist/index.js

This file was deleted.

1 change: 1 addition & 0 deletions docs/.nojekyll
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
TypeDoc added this file to prevent GitHub Pages from using Jekyll. You can turn off this behavior by setting the `githubPages` option to false.
3 changes: 3 additions & 0 deletions docs/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
@haqq/rn-wallet-providers / [Exports](modules.md)

# HAQQ RN Wallet Providers
Loading

0 comments on commit e1fb442

Please sign in to comment.