diff --git a/.github/auto_assign.yml b/.github/auto_assign.yml new file mode 100644 index 0000000..04d1983 --- /dev/null +++ b/.github/auto_assign.yml @@ -0,0 +1,28 @@ +# Set to true to add reviewers to pull requests +addReviewers: true + +# Set to true to add assignees to pull requests +addAssignees: true + +# A list of reviewers to be added to pull requests (GitHub user name) +reviewers: + - Sidaroth + - Garlov + +# A number of reviewers added to the pull request +# Set 0 to add all the reviewers (default: 0) +numberOfReviewers: 0 + +# A list of assignees, overrides reviewers if set +assignees: + - Sidaroth + - Garlov + +# A number of assignees to add to the pull request +# Set to 0 to add all of the assignees. +# Uses numberOfReviewers if unset. +numberOfAssignees: 1 + +# A list of keywords to be skipped the process that add reviewers if pull requests include it +# skipKeywords: +# - wip \ No newline at end of file diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..22199c7 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,12 @@ +# To get started with Dependabot version updates, you'll need to specify which +# package ecosystems to update and where the package manifests are located. +# Please see the documentation for all configuration options: +# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates + +version: 2 +updates: + - package-ecosystem: "npm" # See documentation for possible values + directory: "/" # Location of package manifests + schedule: + interval: "weekly" + open-pull-requests-limit: 10 diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md new file mode 100644 index 0000000..0e65e11 --- /dev/null +++ b/.github/pull_request_template.md @@ -0,0 +1,20 @@ +## Details + +*Details for how to test and what is being added should be described here*
+ +## Types of changes +What types of changes does your code introduce? + +_Put an `x` in the boxes that apply_ + +- [ ] Bugfix (non-breaking change which fixes an issue) +- [ ] New feature (non-breaking change which adds functionality) +- [ ] CI/CD Workflow update +- [ ] Minor or Documentation Update (if none of the other choices apply) + +## Checklist + +_Put an `x` in the boxes that apply. You can also fill these out after creating the PR._ + +- [ ] I have merged the corresponding branch (likely main) into this branch and handled any merge conflicts that arise. +- [ ] I have not used any code or snippet that is not an open license. \ No newline at end of file diff --git a/.github/workflows/auto_assign.yml b/.github/workflows/auto_assign.yml new file mode 100644 index 0000000..7e98987 --- /dev/null +++ b/.github/workflows/auto_assign.yml @@ -0,0 +1,12 @@ +name: "Auto Assign" +on: + pull_request: + types: [opened, ready_for_review] + +jobs: + add-reviewers: + runs-on: ubuntu-latest + steps: + - uses: kentaro-m/auto-assign-action@v1.2.5 + with: + configuration-path: .github/auto_assign.yml diff --git a/.github/workflows/blt.yml b/.github/workflows/blt.yml new file mode 100644 index 0000000..b91c332 --- /dev/null +++ b/.github/workflows/blt.yml @@ -0,0 +1,32 @@ +name: Build - Lint - Test + +on: + pull_request: + types: [opened, reopened, synchronize] + workflow_dispatch: + +jobs: + BLT: + runs-on: ubuntu-latest + permissions: + contents: read + steps: + - uses: actions/checkout@v3 + with: + ref: ${{ github.event.pull_request.head.sha }} + - uses: pnpm/action-setup@v2.2.4 + with: + version: 7.33.6 + - uses: actions/setup-node@v3 + with: + node-version: 20.7.0 + registry-url: https://npm.pkg.github.com/ + cache: 'pnpm' + - name: Install packages + run: pnpm install + - name: Lint + run: pnpm lint + - name: Build lib + run: pnpm build + # - name: Test + # run: pnpm test \ No newline at end of file diff --git a/package.json b/package.json index 93ee05a..4376430 100644 --- a/package.json +++ b/package.json @@ -3,6 +3,16 @@ "version": "2.0.0", "description": "Phaser 3 Boilerplate project for rapid development.", "author": "Christian Holt (Sidaroth@protonmail.com)", + "contributors": [ + { + "name": "Christian Holt", + "email": "sidaroth@protonmail.com" + }, + { + "name": "Øyvind Nordli", + "email": "oe.nordli@gmail.com" + } + ], "main": "src/index.ts", "scripts": { "start": "pnpm run dev", @@ -14,7 +24,6 @@ }, "license": "MIT", "licenseUrl": "http://www.opensource.org/licenses/mit-license.php", - "homepage": "https://sidaroth.no", "repository": { "type": "git", "url": "git+https://github.com/sidaroth/Phaser3.Boilerplate.git" diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 1616688..938deef 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -25,7 +25,7 @@ specifiers: tslib: ^2.6.2 typescript: ^5.2.2 uuid: ^9.0.1 - vite: ^4.4.10 + vite: ^4.4.11 vite-plugin-dts: ^3.6.0 vite-plugin-eslint: ^1.8.1 @@ -56,9 +56,9 @@ devDependencies: rollup-plugin-strip-code: 0.2.7 tslib: 2.6.2 typescript: 5.2.2 - vite: 4.4.10_xw5nuywhrj3t7rakopdrzdmjn4 - vite-plugin-dts: 3.6.0_c3vqjxdev4cverowl5dawv6nn4 - vite-plugin-eslint: 1.8.1_eslint@8.50.0+vite@4.4.10 + vite: 4.4.11_xw5nuywhrj3t7rakopdrzdmjn4 + vite-plugin-dts: 3.6.0_wtxub6vzumep4a4qdpl6kp7ro4 + vite-plugin-eslint: 1.8.1_eslint@8.50.0+vite@4.4.11 packages: @@ -2695,7 +2695,7 @@ packages: engines: {node: '>= 0.10'} dev: true - /vite-plugin-dts/3.6.0_c3vqjxdev4cverowl5dawv6nn4: + /vite-plugin-dts/3.6.0_wtxub6vzumep4a4qdpl6kp7ro4: resolution: {integrity: sha512-doxhDRFJCZD2sGjIp4V800nm8Y19GvmwckjG5vYPuiqJ7OBjc9NlW1Vp9Gkyh2aXlUs1jTDRH/lxWfcsPLOQHg==} engines: {node: ^14.18.0 || >=16.0.0} peerDependencies: @@ -2711,7 +2711,7 @@ packages: debug: 4.3.4 kolorist: 1.8.0 typescript: 5.2.2 - vite: 4.4.10_xw5nuywhrj3t7rakopdrzdmjn4 + vite: 4.4.11_xw5nuywhrj3t7rakopdrzdmjn4 vue-tsc: 1.8.15_typescript@5.2.2 transitivePeerDependencies: - '@types/node' @@ -2719,7 +2719,7 @@ packages: - supports-color dev: true - /vite-plugin-eslint/1.8.1_eslint@8.50.0+vite@4.4.10: + /vite-plugin-eslint/1.8.1_eslint@8.50.0+vite@4.4.11: resolution: {integrity: sha512-PqdMf3Y2fLO9FsNPmMX+//2BF5SF8nEWspZdgl4kSt7UvHDRHVVfHvxsD7ULYzZrJDGRxR81Nq7TOFgwMnUang==} peerDependencies: eslint: '>=7' @@ -2729,11 +2729,11 @@ packages: '@types/eslint': 8.44.3 eslint: 8.50.0 rollup: 2.79.1 - vite: 4.4.10_xw5nuywhrj3t7rakopdrzdmjn4 + vite: 4.4.11_xw5nuywhrj3t7rakopdrzdmjn4 dev: true - /vite/4.4.10_xw5nuywhrj3t7rakopdrzdmjn4: - resolution: {integrity: sha512-TzIjiqx9BEXF8yzYdF2NTf1kFFbjMjUSV0LFZ3HyHoI3SGSPLnnFUKiIQtL3gl2AjHvMrprOvQ3amzaHgQlAxw==} + /vite/4.4.11_xw5nuywhrj3t7rakopdrzdmjn4: + resolution: {integrity: sha512-ksNZJlkcU9b0lBwAGZGGaZHCMqHsc8OpgtoYhsQ4/I2v5cnpmmmqe5pM4nv/4Hn6G/2GhTdj0DhZh2e+Er1q5A==} engines: {node: ^14.18.0 || >=16.0.0} hasBin: true peerDependencies: