Skip to content

Commit

Permalink
chore: run format and lint
Browse files Browse the repository at this point in the history
  • Loading branch information
mattjennings committed Apr 7, 2024
1 parent ca48bbf commit 1eca26a
Show file tree
Hide file tree
Showing 462 changed files with 4,618 additions and 4,721 deletions.
2 changes: 1 addition & 1 deletion .babelrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@
"@babel/preset-typescript"
],
"plugins": []
}
}
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ blank_issues_enabled: false
contact_links:
- name: Excalibur Discord Link
url: https://discord.gg/W6zUd4tTY3
about: Join the Excalibur Discord and come chat about making video games!
about: Join the Excalibur Discord and come chat about making video games!
2 changes: 1 addition & 1 deletion .github/pr-labeler.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
enhancement: ['feature/*', 'feat/*', 'enhancement/*']
bug: ['fix/*', 'bug/*']
chore: chore/*
chore: chore/*
24 changes: 12 additions & 12 deletions .github/workflows/browsersupport.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,21 @@ env:
BS_PASSWORD: ${{ secrets.BS_PASSWORD }}
on:
push:
branches: [ main ]
branches: [main]
jobs:
browser_support:
runs-on: [ubuntu-latest]
timeout-minutes: 15

steps:
- uses: actions/checkout@v4
with:
submodules: true
fetch-depth: 100
- uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
registry-url: 'https://registry.npmjs.org'
cache: npm
- run: npm ci
- run: npm run browserstack
- uses: actions/checkout@v4
with:
submodules: true
fetch-depth: 100
- uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
registry-url: 'https://registry.npmjs.org'
cache: npm
- run: npm ci
- run: npm run browserstack
89 changes: 44 additions & 45 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,70 +5,69 @@ name: CI

env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
COVERALLS_REPO_TOKEN: "${{ secrets.COVERALLS_REPO_TOKEN }}"
COVERALLS_GIT_BRANCH: "${{ github.ref }}"
COVERALLS_REPO_TOKEN: '${{ secrets.COVERALLS_REPO_TOKEN }}'
COVERALLS_GIT_BRANCH: '${{ github.ref }}'

on:
pull_request:
branches: [ main ]
branches: [main]
push:
branches: [ main ]
branches: [main]
workflow_call:

jobs:
build:
runs-on: [ubuntu-latest]

steps:
- uses: actions/checkout@v4
with:
submodules: true
fetch-depth: 100
- uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
registry-url: 'https://registry.npmjs.org'
cache: npm
- run: npm ci
- run: npm run linux:ci
- name: Coveralls
uses: coverallsapp/github-action@v2.2.3
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/checkout@v4
with:
submodules: true
fetch-depth: 100
- uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
registry-url: 'https://registry.npmjs.org'
cache: npm
- run: npm ci
- run: npm run linux:ci
- name: Coveralls
uses: coverallsapp/github-action@v2.2.3
with:
github-token: ${{ secrets.GITHUB_TOKEN }}

typedoc:
runs-on: [ubuntu-latest]
env:
PUPPETEER_SKIP_CHROMIUM_DOWNLOAD: true

steps:
- uses: actions/checkout@v4
with:
submodules: true
fetch-depth: 100
- uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
cache: npm
registry-url: 'https://registry.npmjs.org'
- run: npm ci --ignore-scripts
- run: npm run apidocs
- uses: actions/checkout@v4
with:
submodules: true
fetch-depth: 100
- uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
cache: npm
registry-url: 'https://registry.npmjs.org'
- run: npm ci --ignore-scripts
- run: npm run apidocs

examples:
runs-on: [ubuntu-latest]
env:
PUPPETEER_SKIP_CHROMIUM_DOWNLOAD: true

steps:
- uses: actions/checkout@v4
with:
submodules: true
fetch-depth: 100
- uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
cache: npm
registry-url: 'https://registry.npmjs.org'
- run: npm ci --ignore-scripts
- run: npm run build-storybook

steps:
- uses: actions/checkout@v4
with:
submodules: true
fetch-depth: 100
- uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
cache: npm
registry-url: 'https://registry.npmjs.org'
- run: npm ci --ignore-scripts
- run: npm run build-storybook
57 changes: 28 additions & 29 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Deploy
on:
push:
branches: [ main ]
branches: [main]

env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -16,31 +16,30 @@ jobs:
runs-on: [ubuntu-latest]

steps:
- uses: actions/checkout@v4
with:
submodules: true
fetch-depth: 100
- uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
registry-url: 'https://registry.npmjs.org'
cache: npm
- run: npm ci
- run: npm run build
- run: npm run build:esm
- run: echo "alpha_version=$(node -e "console.log(require('./version').getAlphaVersion());")" >> $GITHUB_ENV
- run: echo $alpha_version
- run: npm --no-git-tag-version version $alpha_version
- run: npm publish --tag next
- name: Create Tag
uses: actions/github-script@v7.0.1
with:
script: |
const {alpha_version} = process.env;
github.rest.git.createRef({
owner: context.repo.owner,
repo: context.repo.repo,
ref: `refs/tags/${alpha_version}`,
sha: context.sha
})
- uses: actions/checkout@v4
with:
submodules: true
fetch-depth: 100
- uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
registry-url: 'https://registry.npmjs.org'
cache: npm
- run: npm ci
- run: npm run build
- run: npm run build:esm
- run: echo "alpha_version=$(node -e "console.log(require('./version').getAlphaVersion());")" >> $GITHUB_ENV
- run: echo $alpha_version
- run: npm --no-git-tag-version version $alpha_version
- run: npm publish --tag next
- name: Create Tag
uses: actions/github-script@v7.0.1
with:
script: |
const {alpha_version} = process.env;
github.rest.git.createRef({
owner: context.repo.owner,
repo: context.repo.repo,
ref: `refs/tags/${alpha_version}`,
sha: context.sha
})
28 changes: 14 additions & 14 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ env:
release: true
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

jobs:
build:
uses: ./.github/workflows/build.yml
Expand All @@ -17,16 +17,16 @@ jobs:
runs-on: [ubuntu-latest]

steps:
- uses: actions/checkout@v4
with:
submodules: true
fetch-depth: 100
- uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
registry-url: 'https://registry.npmjs.org'
cache: npm
- run: npm ci
- run: npm run build
- run: npm run build:esm
- run: npm publish
- uses: actions/checkout@v4
with:
submodules: true
fetch-depth: 100
- uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
registry-url: 'https://registry.npmjs.org'
cache: npm
- run: npm ci
- run: npm run build
- run: npm run build:esm
- run: npm publish
23 changes: 11 additions & 12 deletions .github/workflows/stale.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,19 @@ name: Mark stale issues and pull requests

on:
schedule:
- cron: "0 0 * * *"
- cron: '0 0 * * *'

jobs:
stale:

runs-on: ubuntu-latest

steps:
- uses: actions/stale@v8
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
days-before-close: -1
exempt-issue-labels: good first issue,help wanted,on-deck
stale-issue-message: "This issue hasn't had any recent activity lately and is being marked as stale automatically."
stale-pr-message: "This PR hasn't had any recent activity lately and is being marked as stale automatically."
stale-issue-label: 'stale'
stale-pr-label: 'stale'
- uses: actions/stale@v8
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
days-before-close: -1
exempt-issue-labels: good first issue,help wanted,on-deck
stale-issue-message: "This issue hasn't had any recent activity lately and is being marked as stale automatically."
stale-pr-message: "This PR hasn't had any recent activity lately and is being marked as stale automatically."
stale-issue-label: 'stale'
stale-pr-label: 'stale'
3 changes: 1 addition & 2 deletions .storybook/manager.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { addons } from '@storybook/addons';

addons.setConfig({

// Excalibur will be listening for all key events
enableShortcuts: false
})
});
6 changes: 3 additions & 3 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ services:
context: .
dockerfile: docker/Dockerfile
working_dir: /opt/app
container_name: "dev"
container_name: 'dev'
volumes:
- "./:/opt/app"
- /opt/app/node_modules
- './:/opt/app'
- /opt/app/node_modules
Loading

0 comments on commit 1eca26a

Please sign in to comment.