Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace noble with simpleble #44

Closed
wants to merge 9 commits into from
Closed
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
13 changes: 13 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
root = true

[*]
charset = utf-8
end_of_line = lf
indent_size = 4
indent_style = space
insert_final_newline = true
max_line_length = 80
trim_trailing_whitespace = true

[*.md]
trim_trailing_whitespace = false
2 changes: 2 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
node_modules
dist
deno_dist
build
docs
166 changes: 83 additions & 83 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,87 +1,87 @@
{
"parser": "@typescript-eslint/parser",
"plugins": [
"@typescript-eslint"
"parser": "@typescript-eslint/parser",
"plugins": [
"@typescript-eslint"
],
"extends": [
// https://eslint.org/docs/rules/
"eslint:recommended",
// https://github.com/typescript-eslint/typescript-eslint/tree/master/packages/eslint-plugin
"plugin:@typescript-eslint/recommended",
"prettier"
],
"rules": {
"@typescript-eslint/no-empty-interface": [
"warn"
],
"extends": [
// https://eslint.org/docs/rules/
"eslint:recommended",
// https://github.com/typescript-eslint/typescript-eslint/tree/master/packages/eslint-plugin
"plugin:@typescript-eslint/recommended"
"@typescript-eslint/no-this-alias": [
"warn"
],
"rules": {
"@typescript-eslint/no-empty-interface": [
"warn"
],
"@typescript-eslint/no-this-alias": [
"warn"
],
"@typescript-eslint/no-unused-vars": [
"warn",
{
"argsIgnorePattern": "^_"
}
],
"block-spacing": [
"error",
"always"
],
"brace-style": [
"error",
"1tbs",
{
"allowSingleLine": true
}
],
"eol-last": [
"error"
],
"indent": [
"error",
4,
{
"SwitchCase": 1
}
],
"linebreak-style": [
"error",
"unix"
],
"no-console": [
"warn"
],
"no-constant-condition": [
"error",
{
"checkLoops": false
}
],
"no-trailing-spaces": [
"error"
],
"object-curly-spacing": [
"error",
"always"
],
"quotes": [
"error",
"single"
],
"semi": [
"error",
"always"
]
},
"env": {
"commonjs": true,
"es6": true,
"node": true
},
"parserOptions": {
"ecmaVersion": 12,
"sourceType": "module",
"project": [
"./tsconfig.json"
]
}
"@typescript-eslint/no-unused-vars": [
"warn",
{
"argsIgnorePattern": "^_"
}
],
"block-spacing": [
"error",
"always"
],
"brace-style": [
"error",
"1tbs",
{
"allowSingleLine": true
}
],
"eol-last": [
"error"
],
"indent": [
"error",
4,
{
"SwitchCase": 1
}
],
"linebreak-style": [
"error",
"unix"
],
"no-console": [
"warn"
],
"no-constant-condition": [
"error",
{
"checkLoops": false
}
],
"no-trailing-spaces": [
"error"
],
"object-curly-spacing": [
"error",
"always"
],
"quotes": [
"error",
"single"
],
"semi": [
"error",
"always"
]
},
"env": {
"es6": true,
"node": true
},
"parserOptions": {
"ecmaVersion": 12,
"sourceType": "module",
"project": [
"./tsconfig.json"
]
}
}
84 changes: 64 additions & 20 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,27 +11,71 @@ on:

jobs:
build:
runs-on: ubuntu-latest
runs-on: ${{ matrix.os }}
strategy:
matrix:
os:
- ubuntu-latest
- macos-latest
- windows-latest
node-version:
- 10.x
- 12.x
- 14.x
steps:
- uses: actions/checkout@v2
- name: Clone Repository
uses: actions/checkout@v2
with:
submodules: recursive

- name: Install DBus
if: contains(matrix.os, 'ubuntu')
run: |
sudo apt-get update
sudo apt-get install -y libdbus-1-dev

- name: Setup CMake
if: contains(matrix.os, 'macos')
uses: jwlawson/[email protected]
with:
fetch-depth: 0
- uses: actions/setup-node@v2
cmake-version: '3.21.x'

- name: Add msbuild to PATH
if: contains(matrix.os, 'windows')
uses: microsoft/[email protected]

- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 10.16.x
node-version: ${{ matrix.node-version }}
cache: "npm"

- name: Install dependencies
run: npm ci --ignore-scripts

- name: Build
run: yarn
- name: Deploy to gh-pages
if: ${{ github.event_name == 'push' }}
run: |
git config --global user.name thegecko
git config --global user.email [email protected]
git add .
git add --force dist docs
git stash save
git checkout gh-pages
git pull
git merge master --no-commit -X theirs
git checkout stash -- .
git commit --allow-empty --message "Automatic Deployment"
git push
run: npm run build

docs:
needs: [ build ]
runs-on: ubuntu-latest

steps:
- name: Clone Repository
uses: actions/checkout@v2

- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 16
cache: "npm"

- name: Docs
run: npm run docs

- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs
enable_jekyll: false
Loading