-
Notifications
You must be signed in to change notification settings - Fork 97
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: flatten repo structure (#563)
* refactor: flatten repo structure this makes it easier for new contributors to find where templates live * fmt * update syntax * saturating sub * revert lte syntax change * fix manifest * react and solid
- Loading branch information
Showing
297 changed files
with
288 additions
and
586 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
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
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 |
---|---|---|
|
@@ -10,7 +10,7 @@ on: | |
- dev | ||
paths: | ||
- '.github/workflows/deploy-scripts.yml' | ||
- 'packages/worker/**' | ||
- 'worker/**' | ||
|
||
jobs: | ||
deploy: | ||
|
@@ -22,6 +22,6 @@ jobs: | |
- uses: cloudflare/[email protected] | ||
with: | ||
command: publish | ||
workingDirectory: 'packages/worker' | ||
workingDirectory: 'worker' | ||
apiToken: ${{ secrets.CF_API_TOKEN }} | ||
accountId: ${{ secrets.CF_ACCOUNT_ID }} |
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
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
File renamed without changes.
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,53 @@ | ||
# Tauri Contributing Guide | ||
|
||
Please checkout [Tauri contributing guide](https://github.com/tauri-apps/tauri/blob/dev/.github/CONTRIBUTING.md). | ||
|
||
## Development Guide | ||
|
||
You need to have [Rust](https://www.rust-lang.org) and [Cargo](https://doc.rust-lang.org/cargo/getting-started/installation.html) installed. | ||
|
||
### Testing your changes | ||
|
||
```bash | ||
cargo run | ||
``` | ||
|
||
or | ||
|
||
```bash | ||
cargo run -- <cli arguments> | ||
``` | ||
|
||
#### Adding a new template | ||
|
||
> [!IMPORTANT] | ||
> You should open a new issue first to discuss the addition of a certain template. | ||
- Add a directory in `templates` and name it `template-<template-name>` where `<template-name>` is the name of the template and add all the files you need there. | ||
- A template also must have a `_cta_manifest_` file which contains info about the template: | ||
|
||
```ini | ||
beforeDevCommand = {% pkg_manager_run_command %} dev | ||
beforeBuildCommand = {% pkg_manager_run_command %} build | ||
devPath = http://localhost:1420 | ||
distDir = ../dist | ||
|
||
# the next sction is used to determine what files to copy from `templates/_assets_` | ||
# if you introduce a new file like an icon that is shared between multiple templates, | ||
# it should be added to `templates/_assets_` and add entry for it here | ||
# for example: `tauri.svg` is shared between all templates so it lives in `templates/_assets_` | ||
# and is always added to the next section | ||
[files] | ||
# the first part is the path of the file under `templates/_assets_` | ||
# the second part is the path that the file will be copied to under the final template directory | ||
tauri.svg = public/tauri.svg | ||
``` | ||
|
||
- In `src/template.rs`, add an entry in the `Template` enum, and modify its methods if needed. | ||
- In `src/package_manager.rs` add your new template to the appropriate package manager in the `templates` method. | ||
- Modify `.scripts/generate-templates-matrix.js` and append the template name inside the template list for the appropriate package manager so the CI would run tests for it. | ||
- Before making a commit, make sure to run `cargo fmt --all` and `pnpm format` in the repo root. | ||
|
||
## Financial Contribution | ||
|
||
Tauri is an MIT-licensed open source project. Its ongoing development can be supported via [Github Sponsors](https://github.com/sponsors/nothingismagick) or [Open Collective](https://opencollective.com/tauri). We prefer Github Sponsors as donations made are doubled through the matching fund program. |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.