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

added standard, ci and format fixes #76

Merged
merged 1 commit into from
Feb 26, 2024
Merged
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
23 changes: 23 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Build Status
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
strategy:
matrix:
node-version: [lts/*]
os: [ubuntu-latest, windows-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- run: npm install
- run: npm test
5 changes: 3 additions & 2 deletions lib/devtools.js
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,6 @@ customElements.define('developer-tooling', class extends HTMLElement {
this.initServer()
})


const shouldLoadApp = Pear.config.linkData?.startsWith('devtools/')
if (shouldLoadApp) {
this.addApp(Pear.config.linkData)
Expand Down Expand Up @@ -327,7 +326,9 @@ customElements.define('developer-tooling', class extends HTMLElement {
this.render()
this.changePortFormElem.classList.add('hidden')
})
this.devtoolsHttpServer.on('error', err => this.changePortErrorElem.textContent = err?.message)
this.devtoolsHttpServer.on('error', err => {
this.changePortErrorElem.textContent = err?.message
})
this.devtoolsHttpServer.on('request', (req, res) => {
if (req.url !== '/json/list') {
res.writeHead(404)
Expand Down
6 changes: 3 additions & 3 deletions lib/docs-viewer.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/system-status.js
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ customElements.define('system-status', class extends HTMLElement {
</blockquote>
<p>To finish installing Pear Runtime set your system path to</p>
<p><code>${BIN}</code></p>
<p>${!isWin? ' or click the button.' : ''}</p>
<p>${!isWin ? ' or click the button.' : ''}</p>
${!isWin ? '<p><button> Automatic Setup Completion </button><p>' : ''}
`
}
Expand Down
11 changes: 11 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,29 @@
"version": "1.0.0",
"main": "index.html",
"type": "module",
"scripts": {
"test": "standard --fix"
},
"pear": {
"gui": {
"backgroundColor": "#151517",
"height": 780,
"width": 1120
}
},
"standard": {
"globals": [
"Pear"
]
},
"dependencies": {
"b4a": "^1.6.4",
"bare-path": "^2.1.0",
"pear-inspect": "^1.0.3",
"redhat-overpass-font": "^1.0.0",
"ws": "^8.16.0"
},
"devDependencies": {
"standard": "^17.1.0"
}
}
Loading