-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🔥 battle tested refactor and enhancements
- Loading branch information
1 parent
665a9fb
commit 2a5ac90
Showing
12 changed files
with
262 additions
and
281 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} | ||
} |
Oops, something went wrong.