-
-
Notifications
You must be signed in to change notification settings - Fork 64
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
58 changed files
with
8,801 additions
and
22,691 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,31 @@ | ||
{ | ||
"parser": "babel-eslint", | ||
"parser": "@typescript-eslint/parser", | ||
"parserOptions": { | ||
"ecmaVersion": 6, | ||
"sourceType": "module", | ||
"ecmaFeatures": { | ||
"jsx": true, | ||
"modules": true, | ||
"experimentalObjectRestSpread": true | ||
} | ||
}, | ||
"plugins": [ | ||
"react" | ||
], | ||
"extends": ["eslint:recommended", "plugin:react/recommended"], | ||
"plugins": ["@typescript-eslint"], | ||
"extends": ["eslint:recommended", "plugin:@typescript-eslint/recommended"], | ||
"rules": { | ||
"comma-dangle": 0, | ||
"no-unused-vars": "warn", | ||
"no-unexpected-multiline": "warn", | ||
"prefer-const": "warn" | ||
}, | ||
"settings": { | ||
"react": { | ||
"pragma": "React", | ||
"version": "15.6.1" | ||
} | ||
"prefer-const": "warn", | ||
"@typescript-eslint/no-empty-function": "off", | ||
"@typescript-eslint/explicit-module-boundary-types": "off", | ||
"@typescript-eslint/no-explicit-any": "off", | ||
"@typescript-eslint/no-var-requires": "off" | ||
}, | ||
"settings": {}, | ||
"env": { | ||
"browser": true, | ||
"node": true, | ||
"jasmine": true, | ||
"jest": true, | ||
"es6": true | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# About .github | ||
|
||
This directory handles special features to be used on react-simple-keyboard's Github repository. | ||
It is not needed for simple-keyboard to run and can be safely removed. | ||
It is not needed for simple-keyboard to run and can be safely removed. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,36 +9,33 @@ jobs: | |
node-version: [12.x] | ||
os: [ubuntu-latest] | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- name: Use Node.js ${{ matrix.node_version }} | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: ${{ matrix.node_version }} | ||
- name: npm install, build, and test | ||
run: | | ||
npm install | ||
npm run start -- --testMode | ||
npm run demo | ||
npm run coverage | ||
- uses: codecov/[email protected] | ||
with: | ||
token: ${{secrets.CODECOV_TOKEN}} | ||
env: | ||
CI: true | ||
|
||
- name: Discord notification | ||
if: success() | ||
env: | ||
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }} | ||
uses: Ilshidur/action-discord@master | ||
with: | ||
args: 'react-simple-keyboard - CI Build Passed' | ||
|
||
- name: Discord notification | ||
if: failure() | ||
env: | ||
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }} | ||
uses: Ilshidur/action-discord@master | ||
with: | ||
args: 'react-simple-keyboard - CI Build Failed' | ||
|
||
- uses: actions/checkout@v1 | ||
- name: Use Node.js ${{ matrix.node_version }} | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: ${{ matrix.node_version }} | ||
- name: npm install, build, and test | ||
run: | | ||
npm install | ||
npm run coverage | ||
- uses: codecov/[email protected] | ||
with: | ||
token: ${{secrets.CODECOV_TOKEN}} | ||
env: | ||
CI: true | ||
|
||
- name: Discord notification | ||
if: success() | ||
env: | ||
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }} | ||
uses: Ilshidur/action-discord@master | ||
with: | ||
args: "react-simple-keyboard - CI Build Passed" | ||
|
||
- name: Discord notification | ||
if: failure() | ||
env: | ||
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }} | ||
uses: Ilshidur/action-discord@master | ||
with: | ||
args: "react-simple-keyboard - CI Build Failed" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,10 +6,8 @@ jobs: | |
mirroring: | ||
runs-on: ubuntu-18.04 | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- uses: pixta-dev/repository-mirroring-action@v1 | ||
with: | ||
target_repo_url: | ||
[email protected]:hodgef/react-simple-keyboard.git | ||
ssh_private_key: | ||
${{ secrets.GL_KEY }} | ||
- uses: actions/checkout@v1 | ||
- uses: pixta-dev/repository-mirroring-action@v1 | ||
with: | ||
target_repo_url: [email protected]:hodgef/react-simple-keyboard.git | ||
ssh_private_key: ${{ secrets.GL_KEY }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,9 +5,6 @@ | |
/.pnp | ||
.pnp.js | ||
|
||
# production | ||
/demo | ||
|
||
# testing | ||
/coverage | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
module.exports = { | ||
presets: [ | ||
"@babel/preset-react", | ||
["@babel/env", { | ||
corejs:"3", | ||
useBuiltIns: 'entry', | ||
"targets": { | ||
"browsers": [ | ||
"edge >= 16", | ||
"safari >= 9", | ||
"firefox >= 57", | ||
"ie >= 11", | ||
"ios >= 9", | ||
"chrome >= 49" | ||
] | ||
}, | ||
}], | ||
"@babel/preset-typescript" | ||
], | ||
plugins: [ | ||
["@babel/plugin-proposal-class-properties"], | ||
["@babel/plugin-transform-typescript"] | ||
] | ||
}; |
Oops, something went wrong.