create-tauri-app
create-tauri-app copied to clipboard
refactor: rewrite in rust
This PR has workflows setup to publish 2.0 alpha/beta releases to crates.io, npm, and github releaes with the aim to be able to test this rewrite and the new templates with real users. Once we are comfortable with the flow and the new templates we merge to dev and release stable 2.0
Different ways to try alpha/beta releases:
sh <(curl https://create.tauri.app/sh)
sh <(wget https://create.tauri.app/sh)
iwr https://creat.tauri.app/ps | iex
cargo install create-tauri-app --version 2.0.0-beta.1 && cargo create-tauri-app
npm create tauri-app@next
yarn global add create-tauri-app@next && create-tauri-app
pnpm create tauri-app@next
Before merging:
- modify the workflows for
devbranch (I left someTODOcomment for easier finding) - make a round of review before merging
What kind of change does this PR introduce?
- [ ] Bugfix
- [X] Feature
- [ ] Docs
- [ ] New Binding issue #___
- [ ] Code style update
- [X] Refactor
- [ ] Build-related changes
- [ ] Other, please describe:
Does this PR introduce a breaking change?
- [X] Yes, and the changes were approved in issue #___
- [ ] No
Checklist
- [X] When resolving issues, they are referenced in the PR's title (e.g
fix: remove a typo, closes #___, #___) - [X] A change file is added if any packages will require a version bump due to this PR per the instructions in the readme.
- [X] I have added a convincing reason for adding this feature, if necessary
Other information
closes #79 closes #77 closes #10 closes #53 closes #48 closes #44
TODO
- [x] cli arguments
- [x] positional - specify project name (which is used as directory name also)
- [x]
-y,--yes- skip prompts and use defaults - [x]
-m,--manager- specify the package manager - [x]
-t,--template- specify the template
- [x] napi and publish to npm
- [x] conditional template files based on package manager
- [x] add yew template
- [x] update shell scripts tagName automatically
- [x] covector pre-release from this branch to crates.io, npm, and github releases
- [x] cloudflare worker to serve sh/ps1 scripts at
https://create.tauri.app/{sh,ps} - [x] upload sh,ps1 scripts to github release
- [x]
create.tauri.app/v/{version_number}/{sh,ps}-> get specific version of scripts which in turn gets a specific version of the cli
Socket Security Report
Dependency issues detected. If you merge this pull request, you will not be alerted to the instances of these issues again.
📜 New install scripts detected
A dependency change in this PR is introducing new install scripts to your install step.
| Package | Script field | Location |
|---|---|---|
| [email protected] (added) | postinstall |
packages/worker/package.json via [email protected] |
Socket.dev scan summary
| Issue | Status |
|---|---|
| Did you mean? | ✅ no new possible package typos |
| Install scripts | ⚠️ 1 new install script detected |
| Telemetry | ✅ no new telemetry |
| Troll package | ✅ no new troll packages |
| Malware | ✅ no new malware |
| Native code | ✅ no new native modules |
Powered by socket.dev