feat: add evga (#17) (#18)

This commit is contained in:
Jef LeCompte
2020-09-18 09:43:51 -04:00
committed by GitHub
parent efe799b8b9
commit 6c6503219f
7 changed files with 47 additions and 884 deletions
+4
View File
@@ -1,3 +1,7 @@
<!-- Please use Conventional Commits to label your title -->
<!-- https://www.conventionalcommits.org/en/v1.0.0/ -->
<!-- Example: feat: allow provided config object to extend other configs -->
### Description
<!-- Fixes #(issue) -->
+2
View File
@@ -16,6 +16,8 @@ jobs:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: ${{ runner.os }}-node-
- name: Add problem matcher
run: echo "::add-matcher::.github/xo-problem-matcher.json"
- name: Pull dependencies
run: |
npm ci
+21
View File
@@ -0,0 +1,21 @@
{
"problemMatcher": [
{
"owner": "xo",
"pattern": [
{
"regexp": "^\\s+(.*):(\\d+):(\\d+)$",
"file": 1
},
{
"regexp": "^\\s+✖\\s+(\\d+):(\\d+)\\s+(.*)\\s+(.*)$",
"line": 1,
"column": 2,
"message": 3,
"code": 4,
"loop": true
}
]
}
]
}
-871
View File
File diff suppressed because it is too large Load Diff
-13
View File
@@ -28,24 +28,11 @@
"winston": "^3.3.3"
},
"devDependencies": {
"@commitlint/cli": "^11.0.0",
"@commitlint/config-conventional": "^11.0.0",
"@types/node": "^14.11.1",
"@types/nodemailer": "^6.4.0",
"@types/puppeteer": "^3.0.2",
"husky": "^4.3.0",
"rimraf": "^3.0.2",
"typescript": "^4.0.2",
"xo": "^0.33.1"
},
"commitlint": {
"extends": [
"@commitlint/config-conventional"
]
},
"husky": {
"hooks": {
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
}
}
}
+14
View File
@@ -0,0 +1,14 @@
import {Store} from './store';
export const Evga: Store = {
cartUrl: '',
links: [
{
brand: 'evga',
model: 'ftw3, xc3 black, xc3 gaming, xc3 ultra gaming',
url: 'https://www.evga.com/products/productlist.aspx?type=0&family=GeForce+30+Series+Family&chipset=RTX+3080',
oosLabels: ['out of stock']
}
],
name: 'evga'
};
+6
View File
@@ -1,5 +1,6 @@
import {BestBuy} from './bestbuy';
import {BAndH} from './bandh';
import {Evga} from './evga';
import {NewEgg} from './newegg';
import {Nvidia} from './nvidia';
import {Config} from '../config';
@@ -7,6 +8,7 @@ import {Config} from '../config';
const list = new Map([
['bestbuy', BestBuy],
['bandh', BAndH],
['evga', Evga],
['newegg', NewEgg],
['nvidia', Nvidia]
]);
@@ -19,6 +21,10 @@ if (!Config.stores.toLowerCase().includes('bandh')) {
list.delete('bandh');
}
if (!Config.stores.toLowerCase().includes('evga')) {
list.delete('evga');
}
if (!Config.stores.toLowerCase().includes('newegg')) {
list.delete('newegg');
}