Skip to content

Commit

Permalink
Merge pull request #4 from Unacademy/master-updated
Browse files Browse the repository at this point in the history
Master updated
  • Loading branch information
msaikrishna committed Feb 9, 2023
2 parents 7da0dd1 + 4b71c15 commit 7e9e3f5
Show file tree
Hide file tree
Showing 702 changed files with 66,699 additions and 5,206 deletions.
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/packages/legacy
24 changes: 0 additions & 24 deletions .eslintrc

This file was deleted.

31 changes: 31 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
module.exports = {
root: true,
extends: [
'@react-native-community',
'plugin:@typescript-eslint/recommended',
'prettier'
],
parser: '@typescript-eslint/parser',
plugins: ['@typescript-eslint'],
ignorePatterns: ['lib/', 'types/', '*.js'],
rules: {
'comma-dangle': ['error', 'never'],
'no-eval': 'off',
'@typescript-eslint/no-unused-vars': [
'error',
{ vars: 'all', args: 'after-used', ignoreRestSiblings: true }
],
'@typescript-eslint/explicit-module-boundary-types': 0,
'@typescript-eslint/no-explicit-any': 0,
'@typescript-eslint/no-non-null-assertion': 0,
'@typescript-eslint/no-empty-function': 0,
'@typescript-eslint/ban-types': [
'error',
{
types: {
'{}': false
}
}
]
}
};
89 changes: 0 additions & 89 deletions .flowconfig

This file was deleted.

1 change: 1 addition & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
github: jsamr
89 changes: 89 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
name: 🐞 Bug Report
description: If you have found a bug, you should chose this template.
labels: bug
body:
- type: checkboxes
attributes:
label: "Decision Table"
description: |
A good amount of bug reports are actually feature requests. To help you with that, read and check all the boxes to make sure you really need to fill the full template. If you can't check those two boxes, this is a feature request, not a bug. Fill a feature request here: https://native-html.canny.io/features
options:
- label: "My issue does not look like “The HTML attribute 'xxx' is ignored” (unless
we claim support for it)"
required: true
- label: "My issue does not look like “The HTML element `<yyy>` is not rendered”"
required: true
validations:
required: true
- type: checkboxes
attributes:
label: "Good Faith Declaration"
description: "We're happy to help, but our time is valuable and we'd like you to make sure you haven't been able to find an answer publicly available."
options:
- label: "I have read the HELP document here: https://git.io/JBi6R"
required: true
- label: "I have read the CONTRIBUTING document here: https://git.io/JJ0Pg"
required: true
- label: "I have confirmed that this bug has not been reported yet"
required: true
validations:
required: true
- type: textarea
attributes:
label: "Description"
placeholder: "Describe the bug. Please provide reproduction steps, screnshots and screencasts when appropriate."
validations:
required: true
- type: textarea
attributes:
label: React Native Information
render: sh
placeholder: "The result of running `react-native info` or `expo diagnostics`. If you are ready to provide a snack, just type \"confer snack\"."
validations:
required: true
- type: textarea
attributes:
label: "RNRH Version"
placeholder: "Type which version of react-native-render-html you are using."
validations:
required: true
- type: checkboxes
attributes:
label: Tested Platforms
description: Platforms on which you have tested the bug
options:
- label: Android
- label: iOS
- label: Web
- label: MacOS
- label: Windows
validations:
required: true
- type: checkboxes
attributes:
label: Reproduction Platforms
description: Platforms on which you have reproduced the bug
options:
- label: Android
- label: iOS
- label: Web
- label: MacOS
- label: Windows
validations:
required: true
- type: textarea
attributes:
label: Minimal, Reproducible Example
description: |
[*What is a Minimal, Reproducible Example (MRE)?*](https://stackoverflow.com/help/minimal-reproducible-example). Provide either a link to an expo snack, git repository, or a code block. You can fork [**our Snack template**](https://snack.expo.dev/@jsamr/rnrhtml-template) to gain time (follow instructions from the README in this snack)! The MRE **must be self-contained**, and **HTML inlined** unless strictly necessary (e.g., a bug with remote HTML). Also note:
- If your issue is related to operations such as dependency resolution or testing, **you must** provide a MRE in the form of a git repository.
- If and only if you provide a regression test in lieu of a MRE, you can reference the related PR instead.
placeholder: "https://snack.expo.dev/@jsamr/rnrhtml-template"
validations:
required: true
- type: textarea
attributes:
label: Additional Notes
description: "Any extra information that can help with the resolution. If other libraries are involved in the MRE, note their versions here."
validations:
required: false
11 changes: 11 additions & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
blank_issues_enabled: true
contact_links:
- name: 📝 Feature Requests and Enhancements
url: https://native-html.canny.io/features
about: A page where all feature requests are handled.
- name: 🆘 Getting Help
url: https://github.com/meliorence/react-native-render-html/blob/master/HELP.adoc
about: A resource which describes all the steps you should go through when you're facing an issue with this library.
- name: 🌐 Official Website
url: https://meliorence.github.io/react-native-render-html/
about: The official website with plenty of guides, blog posts and documentation!
15 changes: 15 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<!--
MAKE SURE TO READ AND FOLLOW THIS TEMPLATE CLOSELY OR YOUR PR WILL BE
REJECTED WITHOUT NOTICE
-->

### Checks

- [ ] I have read the contribution guidelines regarding Pull Requests here: https://git.io/JJ0Pg

### Description

<!--
If you have any question regarding your contribution, ping us in our Discord
#contributing channel: https://discord.gg/MwrZmBb
-->
43 changes: 43 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# This workflow will do a clean install of node dependencies, run JS and Typescript tests.
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions

name: CI

on: [push, pull_request]

jobs:
test:
name: Testing
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [14.x]

steps:
- uses: actions/checkout@v2
- name: Cache .dts
id: cache-dts
uses: actions/cache@v2
with:
path: .dts
key: ${{ runner.os }}-dts
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: yarn install --immutable
- run: yarn workspace react-native-render-html test:ts
name: Typescript Tests
- run: yarn workspace react-native-render-html test:jest --coverage
name: Jest Tests
- run: yarn workspace react-native-render-html test:lint
name: Linting Tests
- run: yarn workspace react-native-render-html build
name: Build
- run: yarn build:tools
name: Build Tooling Libraries
- uses: codecov/codecov-action@v2
with:
file: ./packages/render-html/coverage/clover.xml # optional
fail_ci_if_error: true # optional (default = false)
35 changes: 35 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# This workflow will do a clean install of node dependencies, run JS and Typescript tests.
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions

name: Docs

on: [push, pull_request]

jobs:
test:
name: Testing
runs-on: ubuntu-20.04

strategy:
matrix:
node-version: [14.x]

steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: yarn install --immutable
- run: yarn workspace react-native-render-html build
name: Build sources
- run: yarn process-svg-assets
name: Process SVG assets
- run: yarn build:tools
name: Build Tooling Libraries
- run: yarn build:docs
name: Build documentation
- run: yarn website build
name: Build website
- run: yarn discovery test:ts
name: Discovery TS
33 changes: 33 additions & 0 deletions .github/workflows/npm.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Npm
on:
workflow_dispatch:
inputs:
version:
description: 'NPM exact version'
required: true
schedule:
- cron: '0 0 * * *'

jobs:
build:

runs-on: ubuntu-latest

strategy:
matrix:
node-version: [14, 15, 16]

steps:
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
check-latest: true
- name: Update NPM to latest
run: npm --version;npm install -g npm;npm --version
- name: Install React Native CLI
run: npm install -g @react-native-community/cli
- name: Init new project
run: react-native init --npm test; cd test
- name: "Install version ${{ github.event.inputs.version }}"
run: "npm install react-native-render-html@${{ github.event.inputs.version }}"
Loading

0 comments on commit 7e9e3f5

Please sign in to comment.