-
-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #348 from wasabee-project/dev
Release 0.21
- Loading branch information
Showing
253 changed files
with
21,147 additions
and
24,775 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
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -13,7 +13,7 @@ jobs: | |
- name: Build 🔧 | ||
run: | | ||
npm install | ||
npx gulp build-dev | ||
npm run build-dev | ||
- name: Deploy 🚀 | ||
uses: JamesIves/[email protected] | ||
|
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,23 @@ | ||
name: Pull request build | ||
on: | ||
pull_request: | ||
branches: [dev] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout 🛎️ | ||
uses: actions/[email protected] | ||
|
||
- name: Build | ||
env: | ||
PR_NUMBER: ${{ github.event.number }} | ||
run: | | ||
npm install | ||
npm run build-pr | ||
- uses: actions/upload-artifact@v2 | ||
with: | ||
name: pr | ||
path: releases/dev/wasabee.user.js |
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,25 @@ | ||
name: Pull request Comment | ||
on: | ||
workflow_run: | ||
workflows: ["Pull request build"] | ||
types: | ||
- completed | ||
jobs: | ||
comment: | ||
runs-on: ubuntu-latest | ||
if: > | ||
${{ github.event.workflow_run.event == 'pull_request' && | ||
github.event.workflow_run.conclusion == 'success' }} | ||
steps: | ||
- uses: actions/download-artifact@v2 | ||
with: | ||
name: pr | ||
|
||
- name: Pull request artifacts | ||
uses: gavv/[email protected] | ||
with: | ||
commit: ${{ github.event.pull_request.head.sha }} | ||
repo-token: ${{ secrets.GITHUB_TOKEN }} | ||
artifacts-branch: artifacts | ||
artifacts: | | ||
wasabee.user.js |
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,23 @@ | ||
name: Build and Deploy Testing | ||
on: | ||
push: | ||
branches: | ||
- testing | ||
jobs: | ||
build-and-deploy-testing: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout 🛎️ | ||
uses: actions/[email protected] | ||
|
||
- name: Build 🔧 | ||
run: | | ||
npm install | ||
npm run build-testing | ||
- name: Deploy 🚀 | ||
uses: JamesIves/[email protected] | ||
with: | ||
branch: dist # The branch the action should deploy to. | ||
folder: releases # The folder the action should deploy. | ||
clean: false # build is already clean (keep prod/dev) |
This file was deleted.
Oops, something went wrong.
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,5 @@ | ||
files: | ||
- source: /src/code/translations/English.json | ||
translation: /src/code/translations/%language%.json | ||
skip_untranslated_strings: true | ||
update_option: "update_as_unapproved" |
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,45 @@ | ||
"use strict"; | ||
|
||
const sourceLanguage = require("./src/code/translations/English.json"); | ||
|
||
module.exports = { | ||
"wx-keys": { | ||
meta: { | ||
docs: { | ||
description: "Check wX calls", | ||
category: "Possible Errors", | ||
recommended: false, | ||
}, | ||
schema: [], | ||
}, | ||
create: function (context) { | ||
return { | ||
CallExpression: function (node) { | ||
const callee = node.callee; | ||
if (callee.type !== "Identifier") return; | ||
if (callee.name !== "wX") return; | ||
const args = node.arguments; | ||
if (args.length < 1 || args.length > 2) { | ||
context.report({ | ||
node: node, | ||
message: "Invalid number of arguments for wX", | ||
}); | ||
} else { | ||
if (args[0].type !== "Literal") return; | ||
const key = args[0].value; | ||
if (key in sourceLanguage) { | ||
return; | ||
} | ||
context.report({ | ||
node: node, | ||
message: "Unknown wX key: {{ key }}", | ||
data: { | ||
key: args[0].raw | ||
}, | ||
}); | ||
} | ||
}, | ||
}; | ||
}, | ||
}, | ||
}; |
Oops, something went wrong.