Skip to content

Commit 2d94869

Browse files
authored
Merge pull request #3 from AgencyPMG/ALLI-10561-alli-data-backend-update-pmg-bull-arena-to-be-compatible-with-bull-mq
Alli 10561 alli data backend update pmg bull arena to be compatible with bull mq
2 parents d6b9330 + 0e5a93f commit 2d94869

88 files changed

Lines changed: 22224 additions & 6416 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.dockerignore

Lines changed: 0 additions & 4 deletions
This file was deleted.

.eslintrc.js

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
module.exports = {
2+
env: {
3+
node: true,
4+
es6: true,
5+
browser: true,
6+
commonjs: true,
7+
jquery: true,
8+
},
9+
parserOptions: {
10+
ecmaVersion: 2018,
11+
},
12+
plugins: ['prettier'],
13+
extends: ['prettier'],
14+
overrides: [
15+
{
16+
files: ['lib/**'],
17+
rules: {
18+
'max-len': 'error',
19+
},
20+
},
21+
{
22+
files: ['benchmark/**', 'examples/**'],
23+
parserOptions: {
24+
ecmaVersion: 8,
25+
},
26+
rules: {
27+
'no-console': 'off',
28+
},
29+
},
30+
{
31+
files: ['test/**'],
32+
parserOptions: {
33+
ecmaVersion: 2017,
34+
sourceType: 'module',
35+
},
36+
rules: {
37+
'handle-callback-err': 'warn',
38+
'no-shadow': 'off',
39+
'no-warning-comments': 'off',
40+
},
41+
},
42+
],
43+
rules: {
44+
strict: 'off',
45+
},
46+
};

.github/dependabot.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: npm
4+
directory: '/'
5+
schedule:
6+
interval: daily
7+
open-pull-requests-limit: 10
8+
versioning-strategy: widen
9+
commit-message:
10+
prefix: chore
11+
include: scope

.github/pull_request_template.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#### Changes Made
2+
3+
#### Potential Risks
4+
<!--- What can go wrong with this change? How will these changes affect adjacent code/features? How will we handle any adverse issues? --->
5+
6+
#### Test Plan
7+
<!--- How do we know this PR does what it's supposed to do? How do we ensure that adjacent code/features are still working? How do we evaluate the performance implications of this PR?--->
8+
9+
#### Checklist
10+
11+
- [ ] I've increased test coverage
12+
- [ ] Since this is a public repository, I've checked I'm not publishing private data in the code, commit comments, or this PR.

.github/workflows/node.js.yml

Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
# This workflow will do a clean install of node dependencies, and run the linter
2+
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
3+
4+
name: Node.js CI
5+
6+
on:
7+
# Any additional branches here will currently be treated as release (or maintenance) branches.
8+
# if the need to run jobs on other branches emerges, then the release job will need a better
9+
# condition expression.
10+
push:
11+
branches: [master, 2.x]
12+
pull_request:
13+
branches: [master, 2.x]
14+
15+
jobs:
16+
lint:
17+
# https://github.community/t/github-actions-does-not-respect-skip-ci/17325/9
18+
if: "!contains(github.event.head_commit.message, '[skip ci]')"
19+
runs-on: ubuntu-latest
20+
21+
env:
22+
NPM_AUTH_TOKEN: '${{ secrets.NPM_AUTH_TOKEN }}'
23+
24+
strategy:
25+
matrix:
26+
node-version: [10.x, 12.x, 14.x]
27+
28+
steps:
29+
- uses: actions/checkout@v3
30+
with:
31+
# For commitlint; ideally this would only check out the feature branch's history, but
32+
# that's not currently an option.
33+
fetch-depth: ${{ github.event_name == 'push' }}
34+
- name: Use Node.js ${{ matrix.node-version }}
35+
uses: actions/setup-node@v3
36+
with:
37+
node-version: ${{ matrix.node-version }}
38+
- name: set up npmrc
39+
run: echo "//registry.npmjs.org/:_authToken=${{secrets.NPM_AUTH_TOKEN}}" > .npmrc
40+
- run: npm ci
41+
- run: npm run ci --if-present
42+
- run: npm run ci:commitlint
43+
if: "github.event_name != 'push' && github.actor != 'dependabot[bot]'"
44+
env:
45+
GITHUB_BASE_REF: ${{ github.event.pull_request.base.ref }}
46+
47+
release:
48+
# https://github.community/t/github-actions-does-not-respect-skip-ci/17325/9
49+
if: "github.event_name == 'push' && !contains(github.event.head_commit.message, '[skip ci]')"
50+
runs-on: ubuntu-latest
51+
52+
needs: [lint]
53+
54+
steps:
55+
- uses: actions/checkout@v3
56+
with:
57+
# Necessary to prevent the checkout action from writing credentials to .git/config, which
58+
# semantic-release attempts to use to push despite those credentials being denied the
59+
# push.
60+
# See https://github.com/semantic-release/git/issues/196#issuecomment-601310576.
61+
persist-credentials: false
62+
- name: Use Node.js 14.x
63+
uses: actions/setup-node@v3
64+
with:
65+
node-version: 14.x
66+
- name: set up npmrc
67+
run: echo "//registry.npmjs.org/:_authToken=${{secrets.NPM_AUTH_TOKEN}}" > .npmrc
68+
- run: npm ci
69+
- name: Release
70+
run: npx semantic-release -b master,2.x
71+
env:
72+
# Need to use a separate token so we can push to the protected default branch.
73+
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
74+
NPM_AUTH_TOKEN: '${{ secrets.NPM_AUTH_TOKEN }}'

.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,8 @@
11
node_modules
2+
package-lock.json
23
*.DS_Store
4+
.vscode
5+
.idea
6+
*.tern-port
7+
*.sublime-workspace
8+
dump.rdb

.husky/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
_

.husky/pre-commit

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/bin/sh
2+
. "$(dirname "$0")/_/husky.sh"
3+
4+
npm run pretty:quick
5+
npm run lint:staged

.lintstagedrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"*.{js}": "node_modules/.bin/eslint . --ignore-path ./.prettierignore --fix"
3+
}

.prettierignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
*.hbs
2+
*.min.js
3+
*.min.css
4+
pull_request_template.md

0 commit comments

Comments
 (0)