-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ready 1.3.0 release + various DevOps enhancements (#25)
* adding pre-commit standard js * Add model reload feature (#24) * add reload functionality * Document reload functionality * version bump * better handling of msg.reload & empty payload * updated doc re: reload function * Update teachable_machine.html Co-authored-by: Yair Bonastre <[email protected]> * Update package.json Co-authored-by: Yair Bonastre <[email protected]> Co-authored-by: Yair Bonastre <[email protected]> * add pre-commit checks * add dependabot * add ci * upgrade npm packages * fixing changelog links * update example * proper import * improve badges * final changelog changes before release * fix ci only on push to main and pull requests Co-authored-by: Jacek <[email protected]>
- Loading branch information
1 parent
7d52747
commit 0fe6b7a
Showing
11 changed files
with
506 additions
and
130 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- | ||
version: 2 | ||
updates: | ||
- package-ecosystem: github-actions | ||
directory: / | ||
schedule: | ||
interval: weekly | ||
- package-ecosystem: npm | ||
directory: / | ||
schedule: | ||
interval: weekly |
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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
--- | ||
name: CI | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
|
||
jobs: | ||
pre-commit: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: Install pre-commit | ||
run: pip install pre-commit | ||
- name: Run pre-commit | ||
run: pre-commit run --all-files |
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,3 +1,4 @@ | ||
--- | ||
name: Publish npm package | ||
|
||
on: | ||
|
@@ -8,14 +9,14 @@ jobs: | |
publish: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
- name: Setup node | ||
uses: actions/[email protected] | ||
with: | ||
node-version: 12 | ||
registry-url: https://registry.npmjs.org/ | ||
- name: Publish npm package | ||
run: npm publish | ||
env: | ||
NODE_AUTH_TOKEN: ${{secrets.npm_token}} | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
- name: Setup node | ||
uses: actions/[email protected] | ||
with: | ||
node-version: 12 | ||
registry-url: https://registry.npmjs.org/ | ||
- name: Publish npm package | ||
run: npm publish | ||
env: | ||
NODE_AUTH_TOKEN: ${{secrets.npm_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,15 +1,25 @@ | ||
--- | ||
repos: | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v3.4.0 | ||
rev: v4.0.1 | ||
hooks: | ||
- id: trailing-whitespace | ||
- id: check-added-large-files | ||
- id: check-yaml | ||
- id: end-of-file-fixer | ||
- id: check-json | ||
- id: pretty-format-json | ||
args: ['--autofix', '--no-sort-keys'] | ||
args: [--autofix, --no-sort-keys] | ||
- repo: https://github.com/standard/standard | ||
rev: v16.0.3 | ||
hooks: | ||
- id: standard | ||
- repo: https://github.com/jumanjihouse/pre-commit-hook-yamlfmt | ||
rev: 0.1.0 | ||
hooks: | ||
- id: yamlfmt | ||
args: [--mapping, '2', --sequence, '2', --offset, '0'] | ||
- repo: https://github.com/executablebooks/mdformat | ||
rev: 0.7.10 | ||
hooks: | ||
- id: mdformat |
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 |
---|---|---|
|
@@ -2,11 +2,28 @@ | |
|
||
All notable changes to this project will be documented in this file. | ||
|
||
## [1.3.0] - 2021-09-24 | ||
|
||
### Added | ||
|
||
- Model reload option flag during running time - [#22](https://github.com/bonastreyair/node-red-contrib-teachable-machine/issues/22) - Thanks [@acejacek](https://github.com/acejacek) for the suggestion and the PR | ||
- `pre-commit` common checks with `standard`, `yamlfmt` and `mdformat` style checks | ||
- GitHub Actions **CI** test with badge | ||
- **npm** quality badge to the `README` file | ||
- Automatic dependency checks with **dependabot** | ||
|
||
### Changed | ||
|
||
- Upgraded `node-fetch` to version `3.0.0` | ||
- Upgraded `pureimage` to version `0.3.5` | ||
- Upgraded `package-lock.json` file format to `v7` | ||
- Updated the `basic` example with the new reload option flag | ||
|
||
## [1.2.2] - 2020-10-24 | ||
|
||
### Changed | ||
|
||
- Upgraded to `@tensorflow/tfjs-node v1.4.0` to help Raspberry Pi installation - [#18](https://github.com/bonastreyair/node-red-contrib-teachable-machine/issues/18) | ||
- Upgraded `@tensorflow/tfjs-node` to version `1.4.0` to help Raspberry Pi installation - [#18](https://github.com/bonastreyair/node-red-contrib-teachable-machine/issues/18) | ||
|
||
## [1.2.1] - 2020-10-24 | ||
|
||
|
@@ -25,8 +42,8 @@ All notable changes to this project will be documented in this file. | |
|
||
- Compatibility with official Node-RED Dockerized image based on [Alpine](https://hub.docker.com/_/alpine) image | ||
- Compatibility with Raspberry Pi | ||
- [`pureimage`](https://www.npmjs.com/package/pureimage) npm package dependency to manage buffer images using pure javascript - [#17](https://github.com/bonastreyair/node-red-contrib-teachable-machine/issues/17) | ||
- [`node-fetch`](https://www.npmjs.com/package/node-fetch) npm package dependency to manage http request to obtain the model info | ||
- `pureimage` npm package dependency to manage buffer images using pure javascript - [#17](https://github.com/bonastreyair/node-red-contrib-teachable-machine/issues/17) | ||
- `node-fetch` npm package dependency to manage http request to obtain the model info | ||
|
||
### Removed | ||
|
||
|
@@ -63,7 +80,7 @@ All notable changes to this project will be documented in this file. | |
|
||
### Changed | ||
|
||
- Dependancy is now `@tensorflow/tfjs v1.3.1` instead of `@tensorflow/tfjs-node v1.4.0`, to match teachable machine correct dependencies | ||
- Dependancy is now `@tensorflow/tfjs 1.3.1` instead of `@tensorflow/tfjs-node 1.4.0`, to match teachable machine correct dependencies | ||
|
||
## [1.1.2] - 2020-05-03 | ||
|
||
|
@@ -98,7 +115,7 @@ All notable changes to this project will be documented in this file. | |
|
||
- Updated image on how to use Teachable Machine and configuration node on Step 3 | ||
- Use standard image treatment for `README` instead of HTML | ||
- Upgraded to `@tensorflow/tfjs-node v1.4.0` to enable coexistantce with [tfjs-nodes](https://github.com/dceejay/tfjs-nodes) nodes - [#8](https://github.com/bonastreyair/node-red-contrib-teachable-machine/issues/8) | ||
- Upgraded `@tensorflow/tfjs-node` to version `1.4.0` to enable coexistantce with [tfjs-nodes](https://github.com/dceejay/tfjs-nodes) nodes - [#8](https://github.com/bonastreyair/node-red-contrib-teachable-machine/issues/8) | ||
|
||
## [1.0.1] - 2020-04-15 | ||
|
||
|
@@ -121,7 +138,7 @@ All notable changes to this project will be documented in this file. | |
|
||
### Changed | ||
|
||
- Icon updated to Tensorflow 2.0 new logo | ||
- Icon updated to **Tensorflow 2.0** new logo | ||
- Updated configuration node | ||
- Using all `README` badges from [Shields.io](https://shields.io/) | ||
- Outputs is always an array of results even if `Best prediction` is selected | ||
|
@@ -162,24 +179,7 @@ All notable changes to this project will be documented in this file. | |
|
||
### Changed | ||
|
||
- Downgraded `@tensorflow/tfjs-node` from version `v1.4.0` to `v1.3.1` for better compatibility | ||
- Output has changed from `checkbox` to a `list`, you can now select `Best predictions` or `All predictions` | ||
- Code cleaning | ||
|
||
### Fixed | ||
|
||
- WebGL loading error in JSDOM | ||
- When installing the node -> `npm WARN @teachablemachine/[email protected] requires a peer of @tensorflow/[email protected] but none is installed` | ||
|
||
## [0.1.1] - 2020-04-11 | ||
|
||
### Added | ||
|
||
- Comments in the code | ||
|
||
### Changed | ||
|
||
- Downgraded `@tensorflow/tfjs-node` from version `v1.4.0` to `v1.3.1` for better compatibility | ||
- Downgraded `@tensorflow/tfjs-node` from version `1.4.0` to `1.3.1` for better compatibility | ||
- Output has changed from `checkbox` to a `list`, you can now select `Best predictions` or `All predictions` | ||
- Code cleaning | ||
|
||
|
@@ -188,14 +188,29 @@ All notable changes to this project will be documented in this file. | |
- WebGL loading error in JSDOM | ||
- When installing the node -> `npm WARN @teachablemachine/[email protected] requires a peer of @tensorflow/[email protected] but none is installed` | ||
|
||
## [0.1.0] - 2020-04-11 | ||
## 0.1.0 - 2020-04-11 | ||
|
||
### Added | ||
|
||
- Functional using Teachable Machine Online Model URL | ||
- Option to select Top-1 or all results | ||
- CHANGELOG.md file | ||
- README.md file | ||
|
||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), | ||
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). | ||
- Functional using **Teachable Machine** Online Model URL | ||
- Option to select **Top-1** or all results | ||
- `CHANGELOG.md` file | ||
- `README.md` file | ||
|
||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). | ||
|
||
[0.1.1]: https://github.com/bonastreyair/node-red-contrib-teachable-machine/compare/v0.1.0...v0.1.1 | ||
[0.1.2]: https://github.com/bonastreyair/node-red-contrib-teachable-machine/compare/v0.1.1...v0.1.2 | ||
[0.1.3]: https://github.com/bonastreyair/node-red-contrib-teachable-machine/compare/v0.1.2...v0.1.3 | ||
[1.0.0]: https://github.com/bonastreyair/node-red-contrib-teachable-machine/compare/v0.1.3...v1.0.0 | ||
[1.0.1]: https://github.com/bonastreyair/node-red-contrib-teachable-machine/compare/v1.0.0...v1.0.1 | ||
[1.1.0]: https://github.com/bonastreyair/node-red-contrib-teachable-machine/compare/v1.0.1...v1.1.0 | ||
[1.1.1]: https://github.com/bonastreyair/node-red-contrib-teachable-machine/compare/v1.1.0...v1.1.1 | ||
[1.1.2]: https://github.com/bonastreyair/node-red-contrib-teachable-machine/compare/v1.1.1...v1.1.2 | ||
[1.1.3]: https://github.com/bonastreyair/node-red-contrib-teachable-machine/compare/v1.1.2...v1.1.3 | ||
[1.1.4]: https://github.com/bonastreyair/node-red-contrib-teachable-machine/compare/v1.1.3...v1.1.4 | ||
[1.1.5]: https://github.com/bonastreyair/node-red-contrib-teachable-machine/compare/v1.1.4...v1.1.5 | ||
[1.2.0]: https://github.com/bonastreyair/node-red-contrib-teachable-machine/compare/v1.1.5...v1.2.0 | ||
[1.2.1]: https://github.com/bonastreyair/node-red-contrib-teachable-machine/compare/v1.2.0...v1.2.1 | ||
[1.2.2]: https://github.com/bonastreyair/node-red-contrib-teachable-machine/compare/v1.2.1...v1.2.2 | ||
[1.3.0]: https://github.com/bonastreyair/node-red-contrib-teachable-machine/compare/v1.2.2...v1.3.0 |
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
Oops, something went wrong.