Skip to content

Commit 0514a4a

Browse files
javier-blancofranher
authored andcommitted
Initial commit
0 parents  commit 0514a4a

37 files changed

+17686
-0
lines changed

.editorconfig

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# EditorConfig is awesome: https://EditorConfig.org
2+
3+
# top-most EditorConfig file
4+
root = true
5+
6+
# Unix-style newlines with a newline ending every file
7+
[*]
8+
end_of_line = lf
9+
insert_final_newline = true
10+
11+
# Set default charset
12+
charset = utf-8
13+
indent_style = space
14+
indent_size = 2
15+
editor.formatOnSave = true

.eslintrc

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
{
2+
"extends": [
3+
"airbnb-base",
4+
"airbnb-typescript/base",
5+
"plugin:jest/all",
6+
"plugin:prettier/recommended",
7+
"prettier"
8+
],
9+
"parser": "@typescript-eslint/parser",
10+
"parserOptions": {
11+
"ecmaVersion": 2020,
12+
"project": "./tsconfig.base.json",
13+
"sourceType": "module"
14+
},
15+
"plugins": ["import", "prettier", "jest"],
16+
"rules": {
17+
"@typescript-eslint/member-delimiter-style": [
18+
"error",
19+
{
20+
"multiline": {
21+
"delimiter": "semi",
22+
"requireLast": true
23+
}
24+
}
25+
],
26+
"@typescript-eslint/no-use-before-define": [
27+
"error",
28+
{
29+
"functions": false
30+
}
31+
],
32+
"comma-dangle": ["error", "never"],
33+
"import/no-extraneous-dependencies": "off",
34+
"import/prefer-default-export": "off",
35+
"jest/consistent-test-it": 0,
36+
"jest/no-hooks": 0,
37+
"jest/prefer-expect-assertions": 0,
38+
"no-multiple-empty-lines": [
39+
"error",
40+
{
41+
"max": 1
42+
}
43+
],
44+
"no-useless-constructor": "off",
45+
"prettier/prettier": [
46+
"error",
47+
{
48+
"singleQuote": true,
49+
"printWidth": 100
50+
}
51+
],
52+
"jest/require-hook": 0
53+
}
54+
}
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# Bug report
2+
3+
## Describe the bug
4+
5+
A clear and concise description of what the bug is.
6+
7+
### To Reproduce
8+
9+
A code snippet or a repository with a test project where the issue can be reproduced.
10+
11+
### Expected behavior
12+
13+
A clear and concise description of what you expected to happen.
14+
15+
### Screenshots
16+
17+
If applicable, add screenshots to help explain your problem.
18+
19+
### Desktop (please complete the following information):\*\*
20+
21+
- OS: [e.g. Linux, MacOSX, Windows 10]
22+
- @axa/native-proxy-agent version [e.g. v1.0.0]
23+
- Node.js version [e.g. v12.14.1]
24+
25+
### Additional context
26+
27+
Add any other context about the problem here.
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Feature request
2+
3+
## Is your feature request related to a problem? Please describe
4+
5+
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
6+
7+
## Describe the solution you'd like
8+
9+
A clear and concise description of what you want to happen.
10+
11+
## Describe alternatives you've considered
12+
13+
A clear and concise description of any alternative solutions or features you've considered.
14+
15+
## Additional context
16+
17+
Add any other context or screenshots about the feature request here.

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# Pull Request Template
2+
3+
## PR Checklist
4+
5+
- [ ] I have run `npm test` locally and all tests are passing.
6+
- [ ] I have added/updated tests for any new behavior.
7+
- [ ] I have added/updated documentation for any new behavior.
8+
- [ ] If this is a significant change, an issue has already been created where the problem / solution was discussed: [N/A, or add link to issue here]
9+
10+
## PR Description
11+
12+
<!-- Describe Your PR Here! -->

.github/dependabot.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# To get started with Dependabot version updates, you'll need to specify which
2+
# package ecosystems to update and where the package manifests are located.
3+
# Please see the documentation for all configuration options:
4+
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
5+
6+
version: 2
7+
updates:
8+
- package-ecosystem: "npm" # See documentation for possible values
9+
directory: "/" # Location of package manifests
10+
schedule:
11+
interval: "daily"

.github/workflows/main.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
2+
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
3+
4+
name: CI
5+
6+
on:
7+
push:
8+
branches: [main]
9+
pull_request:
10+
branches: [main]
11+
12+
jobs:
13+
build:
14+
runs-on: ubuntu-latest
15+
16+
strategy:
17+
matrix:
18+
node-version: [14.x, 16.x]
19+
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
20+
21+
steps:
22+
- uses: actions/checkout@v2
23+
- name: Use Node.js ${{ matrix.node-version }}
24+
uses: actions/setup-node@v2
25+
with:
26+
node-version: ${{ matrix.node-version }}
27+
cache: 'npm'
28+
- run: npm ci
29+
- run: npm run build --if-present
30+
- run: npm test

.github/workflows/release.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
2+
# For more information see: https://help.github.com/actions/language-and-framework-guides/publishing-nodejs-packages
3+
4+
name: Publish npm version when new GitHub release
5+
6+
on:
7+
release:
8+
types: [published]
9+
10+
jobs:
11+
publish-npm:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v2
15+
- uses: actions/setup-node@v2
16+
with:
17+
node-version: 16
18+
registry-url: https://registry.npmjs.org/
19+
- run: npm ci
20+
- run: npm run build
21+
- run: npm test
22+
- run: npm publish
23+
env:
24+
NODE_AUTH_TOKEN: ${{secrets.npm_token}}

.gitignore

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
*.csv
2+
*.dat
3+
*.iml
4+
*.log
5+
*.out
6+
*.pid
7+
*.seed
8+
*.sublime-*
9+
*.swo
10+
*.swp
11+
*.tgz
12+
.DS_Store
13+
.idea
14+
.project
15+
.strong-pm
16+
coverage
17+
node_modules
18+
npm-debug.log
19+
*.jtl
20+
logs
21+
target/*
22+
.vscode
23+
npm-shrinkwrap.json
24+
.history/
25+
.settings/
26+
junit.xml
27+
28+
# Ignore the compiled output.
29+
dist/
30+
31+
# TypeScript incremental compilation cache
32+
*.tsbuildinfo

.husky/.gitignore

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

0 commit comments

Comments
 (0)