Skip to content

Commit

Permalink
lock ncc, add eslint, lint in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
abe-winter committed Dec 20, 2023
1 parent 3d24e1d commit 1ddd046
Show file tree
Hide file tree
Showing 9 changed files with 1,630 additions and 481 deletions.
26 changes: 26 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
module.exports = {
"env": {
"node": true,
"commonjs": true,
"es2021": true
},
"extends": "eslint:recommended",
"overrides": [
{
"env": {
"node": true
},
"files": [
".eslintrc.{js,cjs}"
],
"parserOptions": {
"sourceType": "script"
}
}
],
"parserOptions": {
"ecmaVersion": "latest"
},
"rules": {
}
}
16 changes: 16 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
on:
push:

jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: install
run: npm install
- name: lint
run: eslint src
- name: check ncc
run: |
make dist/index.js
git status
13 changes: 0 additions & 13 deletions .github/workflows/testme.yml

This file was deleted.

3 changes: 1 addition & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
dist/index.js: src/index.js
npm install -g @vercel/ncc
ncc build $^ --target es2020
node_modules/.bin/ncc build $^ --target es2020
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,10 @@ jobs:
key-value: ${{ secrets.viam_key_value }}
```
## Build commands
## Auth instructions
## Environment and base image
## Examples
- ...
Loading

0 comments on commit 1ddd046

Please sign in to comment.