Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
vifer committed Jan 11, 2024
0 parents commit 48462b0
Show file tree
Hide file tree
Showing 514 changed files with 26,292 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .eslintrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
env:
browser: true
es2021: true
extends: standard-with-typescript
parserOptions:
ecmaVersion: latest
sourceType: module
rules:
'@typescript-eslint/semi': 'off'
'@typescript-eslint/strict-boolean-expressions': 'off'
'@typescript-eslint/ban-types': 'off'
'@typescript-eslint/explicit-function-return-type': 'off'
'@typescript-eslint/restrict-template-expressions': 'off'
'@typescript-eslint/comma-dangle': 'off'
'@typescript-eslint/space-before-function-paren': 'off'
'@typescript-eslint/member-delimiter-style': 'off'
'@typescript-eslint/indent': 'off'
'generator-star-spacing': 'off'
'@typescript-eslint/naming-convention': 'off'
'@typescript-eslint/no-extraneous-class': 'off'
ignorePatterns:
- 'jest.config.js'
- '**/__tests__/**'
45 changes: 45 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Bug report
description: Report a problem.
title: "[Bug]: "
labels: ["bug"]
body:
- type: markdown
attributes:
value: |
Use this form to report a bug or problem with the Paddle Node.js SDK.
Remember to remove sensitive information from screenshots, videos, or code samples before submitting.
**Do not create issues for potential security vulnerabilities.** Please see the [Paddle Vulnerability Disclosure Policy](https://www.paddle.com/vulnerability-disclosure-policy) and report any vulnerabilities [using our form](https://vdp.paddle.com/p/Report-a-Vulnerability).
Thanks for helping to make the Paddle platform better for everyone!
- type: textarea
id: description
attributes:
label: What happened?
description: Describe the bug in a sentence or two. Feel free to add screenshots or a video to better explain!
validations:
required: true
- type: textarea
id: reproduce
attributes:
label: Steps to reproduce
description: Explain how to reproduce this issue. We prefer a step-by-step walkthrough, where possible.
value: |
1.
2.
3.
...
validations:
required: true
- type: textarea
id: expected-behavior
attributes:
label: What did you expect to happen?
description: Tell us what should happen when you encounter this bug.
- type: textarea
id: logs
attributes:
label: Logs
description: Copy and paste any relevant logs. This is automatically formatted into code, so no need for backticks.
render: shell
8 changes: 8 additions & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
blank_issues_enabled: false
contact_links:
- name: Get help
url: https://developer.paddle.com/
about: For help with the Paddle Node.js SDK or building your integration, contact our support team at [[email protected]](mailto:[email protected]).
- name: Report a vulnerability
url: https://vdp.paddle.com/p/Report-a-Vulnerability
about: Please see the [Paddle Vulnerability Disclosure Policy](https://www.paddle.com/vulnerability-disclosure-policy) and report any vulnerabilities using https://vdp.paddle.com/p/Report-a-Vulnerability.
44 changes: 44 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Feature request
description: Suggest an idea.
title: "[Feature]: "
labels: ["feature"]
body:
- type: markdown
attributes:
value: |
Use this form to send us suggestions for improvements to the Paddle Node.js SDK.
For general feedback about the Paddle API or developer platform, contact our DX team directly
at [[email protected]](mailto:[email protected]).
Thanks for helping to make the Paddle platform better for everyone!
- type: textarea
id: request
attributes:
label: Tell us about your feature request
description: Describe what you'd like to see added or improved.
validations:
required: true
- type: textarea
id: problem
attributes:
label: What problem are you looking to solve?
description: Tell us how and why would implementing your suggestion would help.
validations:
required: true
- type: textarea
id: additional-information
attributes:
label: Additional context
description: Add any other context, screenshots, or illustrations about your suggestion here.
- type: dropdown
id: priority
attributes:
label: How important is this suggestion to you?
options:
- Nice to have
- Important
- Critical
default: 0
validations:
required: true
43 changes: 43 additions & 0 deletions .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Build & Test

on:
push:
branches:
- main
- v1.X
pull_request:
branches:
- main
- v1.X

concurrency:
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.head_ref || github.ref }}
cancel-in-progress: true

jobs:
run-build-test:
name: Run Build & test
runs-on: ubuntu-latest

permissions:
contents: read
actions: write

steps:
- name: Check out git repository
uses: actions/checkout@v3

- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: lts/*
cache: "yarn"

- name: Install yarn dependencies
run: yarn install

- name: Build
run: yarn build

- name: Test
run: yarn test
42 changes: 42 additions & 0 deletions .github/workflows/linting.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Lint

on:
push:
branches:
- main
- v1.X
pull_request:
branches:
- main
- v1.X

concurrency:
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.head_ref || github.ref }}
cancel-in-progress: true

jobs:
run-linters:
name: Run linters
runs-on: ubuntu-latest

permissions:
contents: read
actions: write

steps:
- name: Check out git repository
uses: actions/checkout@v3

- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: lts/*
cache: "yarn"

- name: Install yarn dependencies
run: yarn install

- name: Lint
run: |
yarn lint
yarn prettier
40 changes: 40 additions & 0 deletions .github/workflows/publish-latest.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Publish to latest Tag

on:
push:
branches:
- main

jobs:
run-publish:
name: Run publish
runs-on: ubuntu-latest

permissions:
contents: read
actions: write

steps:
- name: Check out git repository
uses: actions/checkout@v3

- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: lts/*
cache: "yarn"
registry-url: 'https://registry.npmjs.org'

- name: Install yarn dependencies
run: yarn install

- name: Build
run: yarn build

- name: Test
run: yarn test

- name: Publish
run: yarn publish:latest
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
34 changes: 34 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
/node_modules
/.pnp
.pnp.js

# testing
/coverage

# production
/dist

# misc
.DS_Store
*.pem
.idea

# debug
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# local env files
.env
.env.local
.env.development.local
.env.test.local
.env.production.local
src/version.ts
# Sentry
.sentryclirc

*.tsbuildinfo
8 changes: 8 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"singleQuote": true,
"semi": true,
"tabWidth": 2,
"printWidth": 120,
"trailingComma": "all",
"bracketSpacing": true,
}
Loading

0 comments on commit 48462b0

Please sign in to comment.