Skip to content

Commit

Permalink
🔥 battle tested refactor and enhancements
Browse files Browse the repository at this point in the history
  • Loading branch information
johntalton committed Jun 27, 2024
1 parent 665a9fb commit 2a5ac90
Show file tree
Hide file tree
Showing 12 changed files with 262 additions and 281 deletions.
7 changes: 0 additions & 7 deletions .github/codeql-config.yml

This file was deleted.

20 changes: 0 additions & 20 deletions .github/workflows/ANALYSIS.yml

This file was deleted.

19 changes: 3 additions & 16 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,25 +2,12 @@ name: CI
on: [ push, pull_request]

jobs:
Build:
CI:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
- run: npm install
- run: npm run build --if-present
Lnt:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- run: npm install
- run: npm run lint --if-present -- --quiet
Test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- run: npm install
- run: npm run build --if-present
- run: npm run test --if-present
15 changes: 3 additions & 12 deletions .github/workflows/RELEASE.yml
Original file line number Diff line number Diff line change
@@ -1,27 +1,18 @@
name: Publish Package (NPM / GitHub)
name: Publish Package (NPM)
on:
release:
types: [ created ]
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
# Publish to NPM
- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
registry-url: 'https://registry.npmjs.org/'
- run: npm install
- run: npm run build --if-present
- run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

# Publish to GitHub
# - uses: actions/setup-node@v3
# with:
# node-version: '14'
# registry-url: 'https://npm.pkg.github.com/'
# - run: npm publish
# env:
# NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
89 changes: 5 additions & 84 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,111 +1,32 @@
{
"name": "@johntalton/i2c-bus-mcp2221",
"version": "2.0.1",
"description": "",
"version": "4.0.0",
"type": "module",
"exports": {
"import": "./lib/index.js",
"require": null
},
"files": [
"src/**/*.ts",
"lib/**/*.js",
"lib/**/*.d.ts",
"lib/**/*.d.ts.map"
],
"scripts": {
"lint": "npm run lint:ts",
"lint:ts": "./node_modules/.bin/eslint --no-inline-config --report-unused-disable-directives --ext .ts src/*.ts",
"test": "npm run test:mocha",
"test:mocha": "mocha",
"build": "tsc -p .",
"build:watch": "tsc -p . -w"
},
"eslintConfig": {
"ignorePatterns": [
"lib",
"test"
],
"extends": [
"@johntalton/eslint-config/ts"
],
"env": {
"node": true
},
"rules": {
"no-tabs": "off",
"indent": [
"error",
"tab"
],
"max-len": [
"warn",
{
"code": 120
}
],
"class-methods-use-this": [ "warn" ],
"spellcheck/spell-checker": [
"warn",
{
"ignoreRequire": true,
"identifiers": false,
"minLength": 4,
"skipWords": [
"mcp2221"
]
}
]
}
},
"mocha": {
"spec": [
"test/*.spec.js"
],
"grep": "@broken|@slow",
"invert": true,
"parallel": true,
"watch": false,
"sort": false,
"forbitOnly": true,
"check-leaks": true,
"global": [],
"require": [
"source-map-support/register",
"ts-node/register/transpile-only"
]
},
"repository": {
"type": "git",
"url": "git+https://github.com/johntalton/i2c-bus-mcp2221.git"
},
"author": "[email protected]",
"license": "MIT",
"devDependencies": {
"@johntalton/eslint-config": "^2.0.0",
"@types/chai": "^4.2.14",
"@types/mocha": "^9.1.0",
"@types/node": "^17.0.21",
"@typescript-eslint/eslint-plugin": "^5.14.0",
"c8": "^7.3.0",
"chai": "^4.2.0",
"eslint": "^8.11.0",
"eslint-plugin-fp": "^2.3.0",
"eslint-plugin-immutable": "^1.0.0",
"eslint-plugin-import": "^2.22.1",
"eslint-plugin-mocha": "^10.0.3",
"eslint-plugin-no-loops": "^0.3.0",
"eslint-plugin-no-use-extend-native": "^0.5.0",
"eslint-plugin-promise": "^6.0.0",
"eslint-plugin-security": "^1.4.0",
"eslint-plugin-spellcheck": "^0.0.19",
"mocha": "^9.2.2",
"nodemon": "^2.0.4",
"source-map-support": "^0.5.19",
"ts-node": "^10.7.0",
"typescript": "^4.2.3"
"typescript": "^5.5.2"
},
"dependencies": {
"@johntalton/and-other-delights": "^6.0.0",
"@johntalton/mcp2221": "^3.0.3"
"@johntalton/and-other-delights": "^8.3.0",
"@johntalton/mcp2221": "^4.0.0"
}
}
Loading

0 comments on commit 2a5ac90

Please sign in to comment.