Skip to content

Commit

Permalink
Merge pull request #1679 from oblador/monorepo
Browse files Browse the repository at this point in the history
Monorepo
  • Loading branch information
oblador authored Nov 28, 2024
2 parents 9152776 + 2967ce9 commit 2559338
Show file tree
Hide file tree
Showing 568 changed files with 73,970 additions and 30,029 deletions.
3 changes: 0 additions & 3 deletions .babelrc

This file was deleted.

7 changes: 6 additions & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
# http://editorconfig.org
# EditorConfig helps developers define and maintain consistent
# coding styles between different editors and IDEs
# editorconfig.org

root = true

[*]

indent_style = space
indent_size = 2

end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
Expand Down
22 changes: 22 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
##############
# yeoman
##############

# Ignore the templates with <%= %> tags, we'll pickup the errors in the generated code
packages/generator-react-native-vector-icons/src/app/templates/src/index.ts

# Ignore yeomenan generated template
packages/generator-react-native-vector-icons/generators
packages/fontawesome-common/generators

##############
# packages
##############

# Ignore built code
packages/*/lib
packages/directory/build

# Files we don't manage (react-native-test-app)
packages/icon-explorer/metro.config.js
packages/icon-explorer/react-native.config.js
31 changes: 0 additions & 31 deletions .eslintrc

This file was deleted.

64 changes: 64 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
module.exports = {
extends: ['eslint:recommended', 'plugin:@typescript-eslint/recommended', 'plugin:react/recommended', 'airbnb'],
env: {
browser: true,
es2021: true,
jest: true,
},
overrides: [
{
files: ['*.ts', '*.js', '*.tsx', '*.jsx'],
extends: ['biome'],
},
{
files: ['.eslintrc.{js,cjs}'],
env: {
node: true,
},
parserOptions: {
sourceType: 'script',
},
},
{
files: '*.test.js',
env: {
jest: true,
},
globals: {
device: false,
expect: false,
waitFor: false,
element: false,
by: false,
},
},
],
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaVersion: 'latest',
sourceType: 'module',
},
plugins: ['@typescript-eslint', 'react'],
settings: {
'import/resolver': {
node: {
extensions: ['.js', '.jsx', '.ts', '.tsx'],
},
},
},
rules: {
'import/extensions': ['error', { js: 'never', jsx: 'never', ts: 'never', tsx: 'never', json: 'always' }],
'react/require-default-props': 'off',
'react/prop-types': 'off',
'react/jsx-props-no-spreading': 'off',
'react/jsx-filename-extension': ['error', { extensions: ['.jsx', '.tsx'] }],
'react/function-component-definition': ['error', { namedComponents: 'arrow-function' }],
'import/prefer-default-export': 'off',
// Prefer the typescript unsed vars rule
'no-unused-vars': 'off',
'@typescript-eslint/no-unused-vars': ['error'],
'no-shadow': 'off',
'@typescript-eslint/no-shadow': ['error'],
'react/react-in-jsx-scope': 'off',
},
};
3 changes: 3 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
*.pbxproj -text
# specific for windows script files
*.bat text eol=crlf
20 changes: 0 additions & 20 deletions .github/ISSUE_TEMPLATE/bug_report.md

This file was deleted.

66 changes: 66 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
---
name: "\U0001F41B Bug report"
description: Report a bug
title: "[Bug]: "
labels: ["bug", "triage"]
body:
- type: markdown
attributes:
value: |
Thanks for taking the time to fill out this bug report!
Before filing a bug report please:
- Review the documentation: https://github.com/react-native-vector-icons/react-native-vector-icons
- Search for existing issues (including closed issues): https://github.com/oblador/react-native-vector-icons/issues?q=is%3Aissue+
- type: dropdown
id: generation
attributes:
label: Which package are you using?
options:
- "@react-native-vector-icons/*"
- react-native-vector-icons
validations:
required: true

- type: dropdown
attributes:
label: What platform(s) does this occur on?
multiple: true
options:
- Android
- iOS
- web
validations:
required: true

- type: textarea
id: what-happened
attributes:
label: What happened?
description: |
Explain the issue and the steps we need to take to reproduce the issue. Include a video or screenshots if you think it may help.
Clearly describe what the expected behavior is and what instead is actually happening.
validations:
required: true

- type: textarea
id: logs
attributes:
label: Relevant log output
description: Please copy and paste any relevant log output. This will be automatically formatted into code, so no need for backticks.
render: shell

- type: textarea
id: demo
attributes:
label: Minimal reproducible example
description: |
Let us know how to reproduce the issue. Include a code sample, share a project, or share an app that reproduces the issue using https://snack.expo.io/. Please follow the guidelines for providing a MCVE: https://stackoverflow.com/help/mcve
- type: textarea
attributes:
render: text
label: Your computer environment
description: Run the `npx react-native info` command and paste its output in the field below.
validations:
required: true
5 changes: 5 additions & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
blank_issues_enabled: false
contact_links:
- name: Community Support
url: https://github.com/react-native-vector-icons/discussions
about: Please ask and answer questions here.
17 changes: 0 additions & 17 deletions .github/ISSUE_TEMPLATE/feature_request.md

This file was deleted.

42 changes: 42 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
---
name: Feature request
description: Suggest an idea for this project
title: "[Feature]: "
labels: ["feature", "triage"]
body:
- type: markdown
attributes:
value: |
Thanks for taking the time to suggest a new feature!
Before requesting please:
- Search for existing issues (including closed issues): https://github.com/oblador/react-native-vector-icons/issues?q=is%3Aissue+
- type: textarea
id: problem
attributes:
label: Is your feature request related to a problem?
description: |
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
- type: textarea
id: solution
attributes:
label: Describe the solution you'd like
description: |
A clear and concise description of what you want to happen.
validations:
required: true

- type: textarea
id: alternatives
attributes:
label: Describe alternatives you've considered
description: |
A clear and concise description of any alternative solutions or features you've considered.
- type: textarea
id: contect
attributes:
label: Additional context
description: |
Add any other context or screenshots about the feature request here.
19 changes: 0 additions & 19 deletions .github/ISSUE_TEMPLATE/support.md

This file was deleted.

40 changes: 26 additions & 14 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ on:
skip-directory:
type: boolean
description: Skip directory website deployment
pre-release:
type: boolean
description: Create a pre-release
release:
types: [created]

Expand All @@ -18,16 +21,23 @@ jobs:
runs-on: ubuntu-latest
if: github.event.inputs.skip-npm != 'true'
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version-file: ".node-version"
registry-url: 'https://registry.npmjs.org'
uses: actions/setup-node@v4

- name: Install dependencies
run: yarn --frozen-lockfile --non-interactive --silent

- name: Publish to NPM
run: npm publish
if: github.event.inputs.pre-release != 'true'
run: yarn release
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: Publish pre-release to NPM
if: github.event.inputs.pre-release = 'true'
run: yarn prerelease
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

Expand All @@ -36,19 +46,21 @@ jobs:
runs-on: ubuntu-latest
if: github.event.inputs.skip-directory != 'true'
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version-file: ".node-version"
uses: actions/setup-node@v4

- name: Install dependencies
run: yarn --frozen-lockfile --non-interactive --silent
working-directory: directory
working-directory: packages/directory

- name: Build directory
run: yarn build
working-directory: directory
working-directory: packages/directory

- name: Publish static assets to GitHub Pages
uses: JamesIves/github-pages-deploy-action@4.0.0
uses: JamesIves/github-pages-deploy-action@4
with:
branch: gh-pages
folder: directory/build
folder: packages/directory/build
Loading

0 comments on commit 2559338

Please sign in to comment.