Skip to content

Commit 257c60d

Browse files
authored
Merge pull request #265 from mercadopago/master-v2
Master v2
2 parents 8515895 + e54c864 commit 257c60d

File tree

402 files changed

+11121
-35677
lines changed

Some content is hidden

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

402 files changed

+11121
-35677
lines changed

.eslintignore

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
node_modules/*
2-
coverage/*
3-
.idea/*
1+
/*.js
2+
node_modules
3+
dist

.eslintrc

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

.eslintrc.js

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
module.exports = {
2+
'env': {
3+
'es2021': true,
4+
'node': true
5+
},
6+
'extends': [
7+
'eslint:recommended',
8+
'plugin:@typescript-eslint/recommended'
9+
],
10+
'parser': '@typescript-eslint/parser',
11+
'parserOptions': {
12+
'ecmaVersion': 12,
13+
'sourceType': 'module'
14+
},
15+
'plugins': [
16+
'@typescript-eslint'
17+
],
18+
'rules': {
19+
'@typescript-eslint/no-explicit-any': 'off',
20+
'indent': [
21+
'error',
22+
'tab'
23+
],
24+
'linebreak-style': [
25+
'error',
26+
'unix'
27+
],
28+
'quotes': [
29+
'error',
30+
'single'
31+
],
32+
'semi': [
33+
'error',
34+
'always'
35+
],
36+
"object-curly-spacing": [
37+
"error",
38+
"always"
39+
]
40+
}
41+
};

.github/ISSUE_TEMPLATE/bug_report.md

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

.github/ISSUE_TEMPLATE/feature_request.md

Lines changed: 0 additions & 17 deletions
This file was deleted.
Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
1-
name: CI
1+
name: Node.js CI
22

33
on:
44
push:
5-
branches: [ "master" ]
5+
branches: [ "master", "master-v2" ]
66
pull_request:
7-
branches: [ "master" ]
7+
branches: [ "*" ]
88

99
jobs:
10-
test:
11-
name: Test on Node v${{ matrix.node-version }}
10+
build:
11+
1212
runs-on: ubuntu-latest
1313

1414
strategy:
1515
matrix:
16-
node-version: [14.x, 16.x, 18.x, 19.x]
16+
node-version: [12.x, 14.x, 16.x, 18.x]
1717

1818
steps:
1919
- uses: actions/checkout@v3
@@ -22,5 +22,5 @@ jobs:
2222
with:
2323
node-version: ${{ matrix.node-version }}
2424
cache: 'npm'
25-
- run: npm ci --legacy-peer-deps
25+
- run: npm ci
2626
- run: npm test

.github/worflows/publish.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Node.js Publish Package
2+
3+
on:
4+
release:
5+
types: [created]
6+
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v3
12+
- uses: actions/setup-node@v3
13+
with:
14+
node-version: 18
15+
- run: npm ci
16+
- run: npm test
17+
18+
publish-npm:
19+
needs: build
20+
runs-on: ubuntu-latest
21+
steps:
22+
- uses: actions/checkout@v3
23+
- uses: actions/setup-node@v3
24+
with:
25+
node-version: 18
26+
registry-url: https://registry.npmjs.org/
27+
- run: npm ci
28+
- run: npm publish
29+
env:
30+
NODE_AUTH_TOKEN: ${{secrets.npm_token}}

.github/workflows/publish.yml

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

.gitignore

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,19 @@
1+
# ============= Lint =============
2+
# Cache eslint
3+
.eslintcache
4+
15
# ============= Istanbul =============
26
# Coverage Folder
37
coverage/
48

9+
# ============= BUILD =============
10+
/dist
11+
*tsbuildinfo
12+
13+
# ============= Examples =============
14+
/examples/dist
15+
/examples/node_modules
16+
517
# ============= OSX =============
618
*.DS_Store
719
.AppleDouble

.husky/pre-commit

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

0 commit comments

Comments
 (0)