Merge pull request #352 from toasted-nutbread/github-actions

Setup GitHub actions
This commit is contained in:
toasted-nutbread 2020-02-16 21:11:18 -05:00 committed by GitHub
commit ab2cec0479
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 1081 additions and 1 deletions

View File

@ -10,6 +10,7 @@
"es2017": true,
"webextensions": true
},
"plugins": ["no-unsanitized"],
"ignorePatterns": [
"/ext/mixed/lib/",
"/ext/bg/js/templates.js"
@ -32,7 +33,9 @@
"quote-props": ["error", "consistent"],
"quotes": ["error", "single", "avoid-escape"],
"require-atomic-updates": "off",
"semi": "error"
"semi": "error",
"no-unsanitized/method": "error",
"no-unsanitized/property": "error"
},
"overrides": [
{

24
.github/workflows/nodejs.yml vendored Normal file
View File

@ -0,0 +1,24 @@
name: Node.js CI
on: [push]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [10.x, 12.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: npm ci
- run: npm run build --if-present
- run: npm test
env:
CI: true

1
.gitignore vendored
View File

@ -1 +1,2 @@
*.zip
node_modules

1021
package-lock.json generated Normal file

File diff suppressed because it is too large Load Diff

31
package.json Normal file
View File

@ -0,0 +1,31 @@
{
"name": "yomichan",
"version": "0.0.0",
"description": "Japanese pop-up dictionary extension for Chrome and Firefox.",
"directories": {
"test": "test"
},
"scripts": {
"test": "npm run test-lint",
"test-lint": "eslint ."
},
"repository": {
"type": "git",
"url": "git+https://github.com/FooSoft/yomichan.git"
},
"author": "FooSoft",
"licenses": [
{
"type": "GPLv3",
"url": "https://www.gnu.org/licenses/gpl-3.0.html"
}
],
"bugs": {
"url": "https://github.com/FooSoft/yomichan/issues"
},
"homepage": "https://foosoft.net/projects/yomichan/",
"devDependencies": {
"eslint": "^6.8.0",
"eslint-plugin-no-unsanitized": "^3.0.2"
}
}