Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: seleb/bitsy-hacks
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v13.3.6
Choose a base ref
...
head repository: seleb/bitsy-hacks
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: main
Choose a head ref
Loading
Showing 350 changed files with 44,244 additions and 33,205 deletions.
14 changes: 7 additions & 7 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "airbnb-base",
"extends": ["airbnb-base", "plugin:prettier/recommended"],
"env": {
"browser": true
},
@@ -11,8 +11,9 @@
}
},
"rules": {
"indent": "off", // prettier handles indentation
"max-len": "off", // just apply common-sense
"import/no-unresolved": "off", // `bitsy` can't be resolved
"import/no-unresolved": ["error", { "ignore": ["bitsy"] }], // `bitsy` can't be resolved
"no-param-reassign": "off", // necessary for most hacks

// for dev accessibility
@@ -27,10 +28,6 @@
"vars-on-top": "off",
"no-use-before-define": "off",

// tabs instead of spaces
"no-tabs": "off",
"indent": ["error", "tab"],

// don't prefer fancy stuff to account for lack of babel
"import/prefer-default-export": "off",
"import/no-default-export": "error",
@@ -51,14 +48,17 @@
"no-continue": "off",
},
"overrides": [{
"files": ["*.test.js", "test/*.js"],
"files": ["**/*.test.js", "**/*/test/**/*.js"],
"env": {
"jest": true,
"es6": true
},
"parserOptions": {
"ecmaVersion": 9,
"sourceType": "module"
},
"rules": {
"import/no-extraneous-dependencies": ["error", {"devDependencies": true}]
}
}]
}
11 changes: 11 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
version: 2
updates:
- package-ecosystem: "npm"
directory: "/"
schedule:
interval: "monthly"

- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "monthly"
22 changes: 14 additions & 8 deletions .github/workflows/branch.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,25 @@
name: branch

on:
pull_request:
branches:
- master
on: pull_request

jobs:
test:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 12
node-version: 18
- run: npm ci
- run: npm run lint

test:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 18
- run: npm ci
- run: npm run build
- run: npm test
27 changes: 27 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: main

on:
push:
branches:
- main

jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
- uses: actions/setup-node@v4
with:
node-version: 18
- run: npm ci
- uses: cycjimmy/semantic-release-action@v3
env:
GITHUB_TOKEN: ${{ secrets.REPO_READ_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
with:
semantic_version: 18.0.1
extra_plugins: |
@semantic-release/changelog@6.0.1
@semantic-release/git@10.0.1
26 changes: 26 additions & 0 deletions .github/workflows/maintenance.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: maintenance

on:
push:
branches:
- '*.x'
- '*.*.x'

jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 18
- run: npm ci
- uses: cycjimmy/semantic-release-action@v3
env:
GITHUB_TOKEN: ${{ secrets.REPO_READ_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
with:
semantic_version: 18.0.1
extra_plugins: |
@semantic-release/changelog@6.0.1
@semantic-release/git@10.0.1
25 changes: 0 additions & 25 deletions .github/workflows/master.yml

This file was deleted.

13 changes: 11 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -8,11 +8,20 @@ jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: josephbmanley/butler-publish-itchio-action@v1.0.2
- uses: actions/checkout@v4
- id: package-version
uses: martinbeentjes/npm-get-version-action@v1.3.1
- uses: josephbmanley/butler-publish-itchio-action@v1.0.3
env:
BUTLER_CREDENTIALS: ${{ secrets.BUTLER_CREDENTIALS }}
CHANNEL: win-linux-mac-stable
ITCH_GAME: bitsy-hacks
ITCH_USER: seansleblanc
PACKAGE: dist
VERSION: ${{ steps.package-version.outputs.current-version}}
- name: update Borksy
uses: peter-evans/repository-dispatch@v3
with:
token: ${{ secrets.REPO_READ_TOKEN }}
repository: Ayolland/borksy
event-type: update-hacks
7 changes: 7 additions & 0 deletions .prettierrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
module.exports = {
printWidth: 200,
trailingComma: 'es5',
useTabs: true,
singleQuote: true,
arrowParens: 'avoid',
};
Loading