-
Notifications
You must be signed in to change notification settings - Fork 123
chore: misc prep for release with ES modules, yargs, and nexe builds #788
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
Conversation
|
78cfb49
to
c633832
Compare
c633832
to
40ee2e3
Compare
CHANGELOG.md
Outdated
* All commands now have examples in their help (`smartthings <command> --help`). | ||
* args that require enum-like types are now case-insensitive. e.g. You can now list zigbee devices | ||
with `smartthings devices --type zigbee`. | ||
* The config file location is now determined by https://www.npmjs.com/package/env-paths[envPaths] library |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Markdown syntax error on the URL.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Heh, oops. That was asciidoc format. Fixed.
CHANGELOG.md
Outdated
rather than an argument. e.g. `smartthings capabilities myteam.myCapability --capability-version 1` | ||
instead of `smartthings capabilities myteam.myCapability 1`. Note that the version is always one, | ||
so this flag is not necessary at this time. | ||
* We now use ES modules. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probably can replace these with something more generic since they don't impact end user features.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed this.
|
||
The CLI can be used on any platform that supports Node 24. | ||
|
||
First, install at least [Node version 24.8.0](https://nodejs.org/en/download/current) on your machine. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This link will likely change to something else in the near future rather than node 24. Do you want to just say latest Node or did you need it to say 24 specifically? If so maybe there is a direct link to node24 that can be used.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As discussed in chat, I'm just going to leave this. It's okay if they install a newer version.
name: 'smartthings', | ||
input: packFile, | ||
resources: ['package.json'], | ||
remote: 'https://github.com/SmartThingsCommunity/cli-nexe-builds/releases/download/1.0.0', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This doesn't seem to resolve? Should the 1.0.0 be the node version?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is correct. It is true that it doesn't resolve in a web browser but I don't think nexe ever tries to resolve this URL by itself. It's adding the asset name to it and resolving that.
(Look at the URLs for the assets on this page:
https://github.com/SmartThingsCommunity/cli-nexe-builds/releases/tag/1.0.0
It's the base of all of them.)
a9d4baa
to
be98ce5
Compare
be98ce5
to
80b5426
Compare
This PR includes stuff to prepare for a yargs/ES modules prerelease:
update-readme.ts
that lists commands in the README; for now, it just lists commands with their descriptionsconfiguration.md
with updated config file location infopackage.json
pkg
toolreadme
command/script now runs newupdate-readme
scriptpackage
command/readme now runs newbuild-binaries
scriptzip-binaries
has been rolled intopackage
and has been remove.completion
option which adds acompletion
commandncc
, we get theseCHANGELOG.md