https://github.com/johnvidler/pxt-ext-deploy
A tiny python file to automate deploying a Makecode extension correctly when editing from VSCode or other external editors
https://github.com/johnvidler/pxt-ext-deploy
automation git makecode pxt pxt-microbit vscode
Last synced: about 1 month ago
JSON representation
A tiny python file to automate deploying a Makecode extension correctly when editing from VSCode or other external editors
- Host: GitHub
- URL: https://github.com/johnvidler/pxt-ext-deploy
- Owner: JohnVidler
- License: mit
- Created: 2024-07-12T09:28:00.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-07-13T11:24:52.000Z (almost 2 years ago)
- Last Synced: 2026-03-01T19:24:16.629Z (3 months ago)
- Topics: automation, git, makecode, pxt, pxt-microbit, vscode
- Language: Python
- Homepage: https://johnvidler.co.uk/
- Size: 4.88 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# pxt-ext-deploy
A simple(ish) python3 script to automate some basic checks, and to increment your version numbers correctly when deploying Makecode extensions from vscode (or other external editors).
## Usage
Copy `deploy.py` into the root of your extension (the same directory as `pxt.json`) then run with `python3 deploy.py` (or `./deploy.py` if you mark it as executable).
By default this will attempt to update `pxt.json` and your git tags to match the next valid patch version (`0.0.x`), and commit it into your repository.
## Arguments
- `--major` - Increment the major version number (Resets the minor and patch versions)
- `--minor` - Increment the minor version number (Resets the patch version)
- `--patch` - Increment the patch version number. This is the default operation, so can be omitted but is included for completeness.
- `-m` or `--message` - Set a custom commit message for the changes in git.