Skip to content

Commit

Permalink
Merge pull request #623 from react-icons/dev-implove
Browse files Browse the repository at this point in the history
Improved development environment
  • Loading branch information
kamijin-fanta committed Oct 16, 2022
2 parents 732fdda + 8f38ca2 commit 37f12fb
Show file tree
Hide file tree
Showing 72 changed files with 11,188 additions and 10,854 deletions.
20 changes: 0 additions & 20 deletions .eslintrc.json

This file was deleted.

20 changes: 20 additions & 0 deletions .eslintrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
env:
browser: true
es2021: true
node: true
jest: true
extends:
- eslint:recommended
- plugin:react/recommended
- plugin:@typescript-eslint/recommended
overrides: []
parser: "@typescript-eslint/parser"
parserOptions:
ecmaVersion: latest
sourceType: module
plugins:
- react
- "@typescript-eslint"
rules:
"@typescript-eslint/no-var-requires": 0 # todo remove
"react/prop-types": 0
10 changes: 5 additions & 5 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
---
name: Bug report
about: Create a report to help us improve

---

**Describe the bug**
Expand All @@ -17,10 +16,11 @@ A clear and concise description of what you expected to happen.
If applicable, add screenshots to help explain your problem.

**Desktop (please complete the following information):**
- Device: [e.g. PC, iPhone6]
- OS: [e.g. iOS]
- Browser [e.g. chrome, safari]
- Version [e.g. 22]

- Device: [e.g. PC, iPhone6]
- OS: [e.g. iOS]
- Browser [e.g. chrome, safari]
- Version [e.g. 22]

**Additional context**
Add any other context about the problem here.
11 changes: 6 additions & 5 deletions .github/ISSUE_TEMPLATE/build-problems.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
---
name: Build problems
about: Build problems such as webpack

---

**Describe the problems**
Expand All @@ -14,15 +13,17 @@ Gist/Github URL
A clear and concise description of what you expected to happen.

**Errors**

```
If an error occurs, paste the output.
```

**Desktop (please complete the following information):**
- Device: [e.g. PC, iPhone6]
- OS: [e.g. iOS]
- Browser [e.g. chrome, safari]
- Version [e.g. 22]

- Device: [e.g. PC, iPhone6]
- OS: [e.g. iOS]
- Browser [e.g. chrome, safari]
- Version [e.g. 22]

**Additional context**
Add any other context about the problem here.
1 change: 0 additions & 1 deletion .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
---
name: Feature request
about: Suggest an idea for this project

---

**Is your feature request related to a problem? Please describe.**
Expand Down
80 changes: 40 additions & 40 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,44 +7,44 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [12.x]
node-version: [16]
steps:
- uses: actions/checkout@v2
with:
submodules: true
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"
- uses: actions/cache@v1
id: yarn-cache
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Install dependencies
run: yarn --immutable
if: steps.restore-cache.outputs.cache-hit != 'true'
- name: Build Packages
run: BASE_PATH=/react-icons ./build-script.sh
- uses: actions/upload-artifact@v2
with:
path: packages/_react-icons_*/*.tgz
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./packages/preview/out
if: github.ref == 'refs/heads/master'
- name: Release
uses: ncipollo/release-action@v1
with:
artifacts: "packages/_react-icons_*/*.tgz"
bodyFile: "packages/react-icons/VERSIONS"
token: ${{ secrets.GITHUB_TOKEN }}
prerelease: ${{ contains(github.ref, 'snapshot') }}
if: contains(github.ref, 'tags/')
- uses: actions/checkout@v3
with:
submodules: true
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"
- uses: actions/cache@v3
id: yarn-cache
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Install dependencies
run: yarn --immutable
if: steps.restore-cache.outputs.cache-hit != 'true'
- name: Build Packages
run: BASE_PATH=/react-icons ./build-script.sh
- uses: actions/upload-artifact@v3
with:
path: packages/_react-icons_*/*.tgz
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./packages/preview/out
if: github.ref == 'refs/heads/master'
- name: Release
uses: ncipollo/release-action@v1
with:
artifacts: "packages/_react-icons_*/*.tgz"
bodyFile: "packages/react-icons/VERSIONS"
token: ${{ secrets.GITHUB_TOKEN }}
prerelease: ${{ contains(github.ref, 'snapshot') }}
if: contains(github.ref, 'tags/')
9 changes: 7 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,10 @@ module
*.log
*.tgz

.yarn/cache
.yarn/install-state.gz
.pnp.*
.yarn/*
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/sdks
!.yarn/versions
4 changes: 2 additions & 2 deletions .netlify/state.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"siteId": "757074ef-6b9d-4bb8-b35d-274477b1b051"
}
"siteId": "757074ef-6b9d-4bb8-b35d-274477b1b051"
}
12 changes: 12 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
.yarn
node_modules
/dist/

/packages/_react-icons_all
/packages/_react-icons_all-files

/packages/react-icons/build
/packages/react-icons/src/icons/*
!/packages/react-icons/src/icons/index.ts

/packages/preview/.next
6 changes: 6 additions & 0 deletions .prettierrc.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
overrides:
- files:
- "*.tsx"
- "*.ts"
options:
parser: typescript
8 changes: 7 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
{
"search.exclude": {
"**/packages/react-icons/src/icons/*/**": true,
"**/packages/react-icons/src/icons/*/**": true
},
"editor.codeActionsOnSave": {
"source.fixAll": true
},
"editor.formatOnSave": true,
"editor.defaultFormatter": "esbenp.prettier-vscode",
"files.insertFinalNewline": true
}
26 changes: 0 additions & 26 deletions .yarn/build-state.yml

This file was deleted.

Binary file removed .yarn/install-state.gz
Binary file not shown.
Loading

0 comments on commit 37f12fb

Please sign in to comment.