Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions .c8rc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"all": true,
"src": ["src"],
"include": ["src/**/*.ts"],
"exclude": ["test"],
"extension": [".ts"],
"reporter": ["lcov", "text-summary"],
"report-dir": "./coverage",
"check-coverage": true,
"branches": 0,
"lines": 20,
"functions": 17,
"statements": 20
}
10 changes: 10 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"name": "@openhps/react-native",
"image": "mcr.microsoft.com/devcontainers/javascript-node:22",
"postCreateCommand": "npm ci",
"customizations": {
"vscode": {
"extensions": ["dbaeumer.vscode-eslint", "esbenp.prettier-vscode"]
}
}
}
39 changes: 0 additions & 39 deletions .eslintrc.js

This file was deleted.

1 change: 0 additions & 1 deletion .gitconfig

This file was deleted.

60 changes: 60 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
# Dependency updates for this OpenHPS module.
# Docs: https://docs.github.com/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file
#
# Grouped deliberately: the lint and test stacks each have to move as a unit
# because of peer ranges between them (eslint <-> typescript-eslint <-> plugins).
# Ungrouped daily updates are what left ~10 abandoned dependabot branches behind.
version: 2
updates:
- package-ecosystem: npm
directory: /
schedule:
interval: weekly
day: monday
open-pull-requests-limit: 10
versioning-strategy: increase-if-necessary
groups:
lint:
patterns:
- eslint
- eslint-*
- '@eslint/*'
- typescript-eslint
- '@typescript-eslint/*'
- prettier
- globals
test:
patterns:
- mocha
- mocha-*
- chai
- '@types/chai'
- '@types/mocha'
- nyc
- ts-node
build:
patterns:
- webpack
- webpack-*
- terser-webpack-plugin
- typedoc
- typedoc-*
- '@babel/*'
- size-limit
- '@size-limit/*'
types:
patterns:
- '@types/*'
exclude-patterns:
- '@types/chai'
- '@types/mocha'
ignore:
# TypeScript majors are gated on the typedoc and typescript-eslint peer
# ranges, so they are bumped deliberately rather than automatically.
- dependency-name: typescript
update-types: ['version-update:semver-major']
- package-ecosystem: github-actions
directory: /
schedule:
interval: weekly
day: monday
14 changes: 14 additions & 0 deletions .github/workflows/auto-merge.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: auto-merge

on: pull_request_target

# Least privilege: the previous fleet config used `permissions: write-all`.
permissions:
contents: write
pull-requests: write

jobs:
auto-merge:
if: github.actor == 'dependabot[bot]'
uses: OpenHPS/workflows/.github/workflows/auto-merge.yml@v1
secrets: inherit
19 changes: 19 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: CI

on:
push:
branches: [master, dev]
pull_request:
branches: [master, dev]
workflow_dispatch:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/master' }}

jobs:
ci:
uses: OpenHPS/workflows/.github/workflows/module.yml@v1
secrets: inherit
with:
run-tests: false
190 changes: 0 additions & 190 deletions .github/workflows/main.yml

This file was deleted.

5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,8 @@ coverage/
artifacts/
.nyc_output/
test-results.xml

# OpenHPS baseline
.cache/
xunit.xml
.DS_Store
1 change: 1 addition & 0 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
npx --no-install commitlint --edit "$1"
1 change: 1 addition & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
npx --no-install lint-staged
4 changes: 4 additions & 0 deletions .lintstagedrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"*.ts": ["eslint --fix", "prettier --write"],
"*.{json,md,yml,yaml}": ["prettier --write"]
}
Loading
Loading