Explorar o código

refactor(repo): add /tooling folder (#1457)

Lucas Fernandes Nogueira %!s(int64=4) %!d(string=hai) anos
pai
achega
aea614587b
Modificáronse 100 ficheiros con 143 adicións e 715 borrados
  1. 1 1
      .changes/cli-no-targets.md
  2. 1 1
      .changes/cli-rust.md
  3. 1 1
      .changes/command-shell.md
  4. 11 11
      .changes/config.json
  5. 1 1
      .changes/fix-blank-hyperlinks-polyfiil.md
  6. 1 1
      .changes/fix-ts-api-typings.md
  7. 2 2
      .changes/license.md
  8. 1 1
      .changes/package-config.md
  9. 2 2
      .changes/readme.md
  10. 2 2
      .changes/refactor-info.md
  11. 2 2
      .changes/refactor-init.md
  12. 1 1
      .changes/remove-no-server.md
  13. 1 1
      .changes/revert-and-shift-tauri-create.md
  14. 1 1
      .changes/tauri-api.md
  15. 1 1
      .changes/tauri-cli.md
  16. 2 2
      .changes/tauri-dev-propagate-args.md
  17. 2 2
      .changes/taurijs-dead-code-elim.md
  18. 1 1
      .changes/updater-alpha.md
  19. 5 3
      .github/CODEOWNERS
  20. 12 12
      .github/CONTRIBUTING.md
  21. 6 6
      .github/workflows/artifacts-updater.yml
  22. 1 1
      .github/workflows/audit.yml
  23. 3 3
      .github/workflows/build-smoke-tests.yml
  24. 3 3
      .github/workflows/core-lint-fmt.yml
  25. 2 2
      .github/workflows/covector-version-or-publish.yml
  26. 4 4
      .github/workflows/js-lint.yml
  27. 4 4
      .github/workflows/test-bundler.yml
  28. 4 4
      .github/workflows/test-core.yml
  29. 6 6
      .github/workflows/udeps.yml
  30. 1 1
      .github/workflows/update-docs.yml
  31. 2 2
      .gitignore
  32. 2 2
      .husky/pre-commit
  33. 2 2
      .scripts/setup.sh
  34. 29 28
      README.md
  35. 0 3
      cli/tauri.js/test/jest/raw-loader-transformer.js
  36. 0 0
      core/tauri/scripts/bundle.js
  37. 3 3
      examples/api/package.json
  38. 0 483
      examples/api/public/build/bundle.js
  39. 0 0
      examples/api/public/build/bundle.js.map
  40. 1 1
      examples/api/yarn.lock
  41. 2 2
      examples/helloworld/package.json
  42. 2 2
      examples/multiwindow/package.json
  43. 2 2
      examples/updater/package.json
  44. 1 1
      maskfile.md
  45. 2 2
      package.json
  46. 3 3
      renovate.json
  47. 0 0
      tooling/api/.eslintrc.js
  48. 0 0
      tooling/api/.gitignore
  49. 0 0
      tooling/api/.prettierrc.js
  50. 0 0
      tooling/api/babel.config.js
  51. 0 0
      tooling/api/package.json
  52. 1 1
      tooling/api/rollup.config.js
  53. 0 0
      tooling/api/src/app.ts
  54. 0 0
      tooling/api/src/bundle.ts
  55. 0 0
      tooling/api/src/cli.ts
  56. 0 0
      tooling/api/src/dialog.ts
  57. 0 0
      tooling/api/src/event.ts
  58. 0 0
      tooling/api/src/fs.ts
  59. 0 0
      tooling/api/src/globalShortcut.ts
  60. 0 0
      tooling/api/src/helpers/event.ts
  61. 0 0
      tooling/api/src/helpers/tauri.ts
  62. 0 0
      tooling/api/src/http.ts
  63. 0 0
      tooling/api/src/index.ts
  64. 0 0
      tooling/api/src/notification.ts
  65. 0 0
      tooling/api/src/path.ts
  66. 0 0
      tooling/api/src/shell.ts
  67. 0 0
      tooling/api/src/tauri.ts
  68. 0 0
      tooling/api/src/updater.ts
  69. 0 0
      tooling/api/src/window.ts
  70. 0 0
      tooling/api/tsconfig.json
  71. 5 94
      tooling/api/yarn.lock
  72. 0 0
      tooling/bundler/.gitignore
  73. 0 0
      tooling/bundler/.license_template
  74. 0 0
      tooling/bundler/CHANGELOG.md
  75. 0 0
      tooling/bundler/Cargo.lock
  76. 0 0
      tooling/bundler/Cargo.toml
  77. 0 0
      tooling/bundler/License_Apache.md
  78. 0 0
      tooling/bundler/License_MIT.md
  79. 1 1
      tooling/bundler/README.md
  80. 0 0
      tooling/bundler/rustfmt.toml
  81. 0 0
      tooling/bundler/src/bundle.rs
  82. 0 0
      tooling/bundler/src/bundle/appimage_bundle.rs
  83. 0 0
      tooling/bundler/src/bundle/category.rs
  84. 0 0
      tooling/bundler/src/bundle/common.rs
  85. 0 0
      tooling/bundler/src/bundle/deb_bundle.rs
  86. 0 0
      tooling/bundler/src/bundle/dmg_bundle.rs
  87. 0 0
      tooling/bundler/src/bundle/ios_bundle.rs
  88. 0 0
      tooling/bundler/src/bundle/macos_bundle.rs
  89. 0 0
      tooling/bundler/src/bundle/msi_bundle.rs
  90. 0 0
      tooling/bundler/src/bundle/path_utils.rs
  91. 0 0
      tooling/bundler/src/bundle/platform.rs
  92. 0 0
      tooling/bundler/src/bundle/rpm_bundle.rs
  93. 0 0
      tooling/bundler/src/bundle/settings.rs
  94. 0 0
      tooling/bundler/src/bundle/templates/appimage
  95. 0 0
      tooling/bundler/src/bundle/templates/dmg/bundle_dmg
  96. 0 0
      tooling/bundler/src/bundle/templates/dmg/dmg-license.py
  97. 0 0
      tooling/bundler/src/bundle/templates/dmg/template.applescript
  98. 0 0
      tooling/bundler/src/bundle/templates/main.wxs
  99. 0 0
      tooling/bundler/src/bundle/updater_bundle.rs
  100. 0 0
      tooling/bundler/src/bundle/wix.rs

+ 1 - 1
.changes/cli-no-targets.md

@@ -1,5 +1,5 @@
 ---
-"tauri-cli": minor
+"cli.rs": minor
 ---
 
 You can now run `cargo tauri build -t none` to speed up the build if you don't need executables.

+ 1 - 1
.changes/cli-rust.md

@@ -1,5 +1,5 @@
 ---
-"tauri-cli": minor
+"cli.rs": minor
 "tauri-bundler": minor
 ---
 

+ 1 - 1
.changes/command-shell.md

@@ -1,5 +1,5 @@
 ---
-"tauri-cli": patch
+"cli.rs": patch
 ---
 
 Run `beforeDevCommand` and `beforeBuildCommand` in a shell.

+ 11 - 11
.changes/config.json

@@ -140,21 +140,21 @@
   },
   "packages": {
     "api": {
-      "path": "./api",
+      "path": "./tooling/api",
       "manager": "javascript",
       "assets": [
         {
-          "path": "./api/tauri-${ pkgFile.version }.tgz",
+          "path": "./tooling/api/tauri-${ pkgFile.version }.tgz",
           "name": "api-${ pkgFile.version }.tgz"
         }
       ]
     },
     "tauri-bundler": {
-      "path": "./cli/tauri-bundler",
+      "path": "./tooling/bundler",
       "manager": "rust"
     },
-    "tauri-cli": {
-      "path": "./cli/core",
+    "cli.rs": {
+      "path": "./tooling/cli.rs",
       "manager": "rust",
       "dependencies": [
         "api",
@@ -162,16 +162,16 @@
         "tauri"
       ]
     },
-    "tauri.js": {
-      "path": "./cli/tauri.js",
+    "cli.js": {
+      "path": "./tooling/cli.js",
       "manager": "javascript",
       "dependencies": [
-        "tauri-cli"
+        "cli.rs"
       ],
       "assets": [
         {
-          "path": "./cli/tauri.js/tauri-${ pkgFile.version }.tgz",
-          "name": "tauri.js-${ pkgFile.version }.tgz"
+          "path": "./tooling/cli.js/tauri-${ pkgFile.version }.tgz",
+          "name": "cli.js-${ pkgFile.version }.tgz"
         }
       ]
     },
@@ -179,7 +179,7 @@
       "path": "./cli/create-tauri-app",
       "manager": "javascript",
       "dependencies": [
-        "tauri.js"
+        "cli.js"
       ]
     },
     "tauri-utils": {

+ 1 - 1
.changes/fix-blank-hyperlinks-polyfiil.md

@@ -1,5 +1,5 @@
 ---
-"tauri-cli": patch
+"cli.rs": patch
 ---
 
 Fixes `<a target="_blank">` polyfill.

+ 1 - 1
.changes/fix-ts-api-typings.md

@@ -1,5 +1,5 @@
 ---
-"tauri.js": patch
+"cli.js": patch
 "tauri": minor
 ---
 

+ 2 - 2
.changes/license.md

@@ -1,8 +1,8 @@
 ---
 "api": patch
 "tauri-bundler": patch
-"tauri-cli": patch
-"tauri.js": patch
+"cli.rs": patch
+"cli.js": patch
 "tauri-utils": patch
 "tauri-macros": patch
 "tauri-build": patch

+ 1 - 1
.changes/package-config.md

@@ -1,6 +1,6 @@
 ---
 "tauri": minor
-"tauri-cli": minor
+"cli.rs": minor
 ---
 
 Adds `productName` and `version` configs on `tauri.conf.json > package`.

+ 2 - 2
.changes/readme.md

@@ -12,8 +12,8 @@ Use the following format:
 ---
 "api": patch
 "tauri-bundler": patch
-"tauri-cli": patch
-"tauri.js": patch
+"cli.rs": patch
+"cli.js": patch
 "tauri-utils": patch
 "tauri-macros": patch
 "tauri-build": patch

+ 2 - 2
.changes/refactor-info.md

@@ -1,6 +1,6 @@
 ---
-"tauri-cli": minor
-"tauri.js": minor
+"cli.rs": minor
+"cli.js": minor
 ---
 
 The `info` command was rewritten in Rust.

+ 2 - 2
.changes/refactor-init.md

@@ -1,6 +1,6 @@
 ---
-"tauri-cli": minor
-"tauri.js": minor
+"cli.rs": minor
+"cli.js": minor
 ---
 
 The `init` command was rewritten in Rust.

+ 1 - 1
.changes/remove-no-server.md

@@ -1,6 +1,6 @@
 ---
 "tauri": minor
-"tauri.js": minor
+"cli.js": minor
 ---
 
 Removed the `no-server` mode, the `inliner`, the `dev` server proxy and the `loadAsset` API.

+ 1 - 1
.changes/revert-and-shift-tauri-create.md

@@ -1,6 +1,6 @@
 ---
 "create-tauri-app": minor
-"tauri.js": patch
+"cli.js": patch
 ---
 
 Revert `tauri create` deletion and shift remaining pieces that weren't deleted to `create-tauri-app`.

+ 1 - 1
.changes/tauri-api.md

@@ -1,5 +1,5 @@
 ---
-"tauri.js": minor
+"cli.js": minor
 ---
 
 The Tauri API interface is now shipped with the `@tauri-apps/api` package instead of the deprecated `tauri` package.

+ 1 - 1
.changes/tauri-cli.md

@@ -1,5 +1,5 @@
 ---
-"tauri.js": minor
+"cli.js": minor
 ---
 
 The Tauri Node.js CLI package is now `@tauri-apps/cli`.

+ 2 - 2
.changes/tauri-dev-propagate-args.md

@@ -1,6 +1,6 @@
 ---
-"tauri-cli": patch
-"tauri.js": patch
+"cli.rs": patch
+"cli.js": patch
 ---
 
 All the arguments passed after `tauri dev --` are now propagated to the binary.

+ 2 - 2
.changes/taurijs-dead-code-elim.md

@@ -1,5 +1,5 @@
 ---
-"tauri.js": patch
+"cli.js": patch
 ---
 
-Eliminate the dead code in tauri.js. Also removed some unused dependencies and updated the publish config that we are not publishing the Typescript files (since this is now primarily a CLI).
+Eliminate the dead code in cli.js. Also removed some unused dependencies and updated the publish config that we are not publishing the Typescript files (since this is now primarily a CLI).

+ 1 - 1
.changes/updater-alpha.md

@@ -1,5 +1,5 @@
 ---
-"tauri-cli": minor
+"cli.rs": minor
 "tauri-bundler": minor
 "tauri": minor
 ---

+ 5 - 3
.github/CODEOWNERS

@@ -13,10 +13,12 @@
 
 /examples/ @tauri-apps/testing
 
-/cli/tauri-bundler/ @tauri-apps/bundler
+/tooling/api/ @tauri-apps/core
 
-/cli/core/ @tauri-apps/core
+/tooling/bundler/ @tauri-apps/bundler
 
-/cli/tauri.js/ @tauri-apps/js-cli
+/tooling/cli.rs/ @tauri-apps/core
+
+/tooling/cli.js/ @tauri-apps/js-cli
 
 /core/** @tauri-apps/core

+ 12 - 12
.github/CONTRIBUTING.md

@@ -46,43 +46,43 @@ Hi! We, the maintainers, are really excited that you are interested in contribut
 
 First, [join our Discord server](https://discord.gg/SpmNs4S) and let us know that you want to contribute. This way we can point you in the right direction and help ensure your contribution will be as helpful as possible.
 
-To set up your machine for development, follow the [Tauri setup guide](https://tauri.studio/en/docs/getting-started/intro#setting-up-your-environment) to get all the tools you need to develop Tauri apps. The only additional tool you may need is [Yarn](https://yarnpkg.com/), it is only required if you are developing the Node CLI/API (`cli/tauri.js` and `api`). Next, fork and clone this repo. It is structured as a monorepo, which means that all the various Tauri packages are under the same repository. The development process varies depending on what part of Tauri you are contributing to, see the guides below for per-package instructions.
+To set up your machine for development, follow the [Tauri setup guide](https://tauri.studio/en/docs/getting-started/intro#setting-up-your-environment) to get all the tools you need to develop Tauri apps. The only additional tool you may need is [Yarn](https://yarnpkg.com/), it is only required if you are developing the Node CLI/API (`tooling/cli.js` and `api`). Next, fork and clone this repo. It is structured as a monorepo, which means that all the various Tauri packages are under the same repository. The development process varies depending on what part of Tauri you are contributing to, see the guides below for per-package instructions.
 
 Some Tauri packages will be automatically built when running one of the examples. Others, however, will need to be built beforehand. To build these automatically, run the `.scripts/setup.sh` (Linux and macOS) or `.scripts/setup.ps1` (Windows) script. This will install the Rust and Node.js CLI and build the JS API. After that, you should be able to run all the examples.
 
 ### Packages Overview
 
-- The JS API (`/api`) contains JS bindings to the builtin Rust functions in the Rust API.
-- Tauri.js (`/cli/tauri.js`) is the primary CLI for creating and developing Tauri apps.
-- The Rust CLI (`/cli/core`) is a new version of the CLI that will replace Tauri.js, but now it only supports build and dev commands. Tauri.js will automatically use the Rust CLI for these commands.
-- Tauri Bundler (`/cli/tauri-bundler`) is used by the Rust CLI to package executables into installers.
+- The JS API (`/tooling/api`) contains JS bindings to the builtin Rust functions in the Rust API.
+- The Rust CLI (`/tooling/cli.rs`) is the primary CLI for creating and developing Tauri apps.
+- cli.js (`/tooling/cli.js`) is a Node.js CLI wrapper for `cli.rs`.
+- Tauri Bundler (`/tooling/bundler`) is used by the Rust CLI to package executables into installers.
 - Tauri Core (`/core/tauri`) is the heart of Tauri. It contains the code that starts the app, configures communication between Rust and the Webview, and ties all the other packages together.
 - The Macros (`/core/tauri-macros`) are used by Tauri Core for various functions.
 
-### Developing The Node.js CLI (Tauri.js)
+### Developing The Node.js CLI (cli.js)
 
-Tauri.js is a CLI tool that houses the `init`, `info`, `icon`, and `deps` command. It also handles the `build` and `dev` command by forwarding them to the Rust CLI, which will eventually replace this modules completely. The code for Tauri.js is located in `[Tauri repo root]/cli/tauri.js`. There are a few package scripts you should be aware of:
+`cli.js` is a CLI tool that houses the `icon`, and `deps` command. The code for cli.js is located in `[Tauri repo root]/tooling/cli.js`. There are a few package scripts you should be aware of:
 
 - `build` builds the CLI
 - `test` runs the unit and e2e test suite
 - `lint` runs ESLint to catch linting errors
 - `format` formats code with Prettier to match the style guide
 
-To test your changes, we recommend using the helloworld example app, located in `[Tauri repo root]/examples/helloworld`. Run `yarn tauri [COMMAND]` to run a command using your local Tauri.js copy. You will need to rebuild Tauri.js after every change by running `yarn build` in the Tauri.js directory.
+To test your changes, we recommend using the helloworld example app, located in `[Tauri repo root]/examples/helloworld`. Run `yarn tauri [COMMAND]` to run a command using your local cli.js copy. You will need to rebuild cli.js after every change by running `yarn build` in the cli.js directory.
 
-If you want to use your local copy of Tauri.js in another app, we recommend using [Yarn link](https://classic.yarnpkg.com/en/docs/cli/link/). First, make sure you have don't have Tauri.js installed globally by running `npm uninstall -g tauri && yarn global remove tauri`. Then, run `yarn link` in the Tauri.js directory (note that the setup script will do this for you, so you can skip this step if you ran that). Now, you can just run `tauri [COMMAND]` anywhere, and your local copy will be used.
+If you want to use your local copy of cli.js in another app, we recommend using [yarn link](https://classic.yarnpkg.com/en/docs/cli/link/). First, make sure you have don't have cli.js installed globally by running `npm uninstall -g tauri && yarn global remove tauri`. Then, run `yarn link` in the cli.js directory (note that the setup script will do this for you, so you can skip this step if you ran that). Now, you can just run `tauri [COMMAND]` anywhere, and your local copy will be used.
 
 ### Developing Tauri Bundler and Rust CLI
 
-The code for the bundler is located in `[Tauri repo root]/cli/tauri-bundler`, and the code for the Rust CLI is located in `[Tauri repo root]/cli/core`. If you are using your local copy of Tauri.js (see above), any changes you make to the bundler and CLI will be automatically built and applied when running the build or dev command. Otherwise, running `cargo install --path .` in the Rust CLI directory will allow you to run `cargo tauri build` and `cargo tauri dev` anywhere, using the updated copy of the bundler and cli. You will have to run this command each time you make a change in either package.
+The code for the bundler is located in `[Tauri repo root]/tooling/bundler`, and the code for the Rust CLI is located in `[Tauri repo root]/tooling/cli.rs`. If you are using your local copy of cli.js (see above), any changes you make to the bundler and CLI will be automatically built and applied when running the build or dev command. Otherwise, running `cargo install --path .` in the Rust CLI directory will allow you to run `cargo tauri build` and `cargo tauri dev` anywhere, using the updated copy of the bundler and cli. You will have to run this command each time you make a change in either package.
 
-### Developing Tauri Core and Related Components (Rust API, Macros, and Utils)
+### Developing Tauri Core and Related Components (Rust API, Macros, Codegen, and Utils)
 
 The code for Tauri Core is located in `[Tauri repo root]/core/tauri`, and the Rust API, Macros, and Utils are in `[Tauri repo root]/core/tauri-(api/macros/utils)`. The easiest way to test your changes is to use the `[Tauri repo root]/examples/helloworld` app. It automatically rebuilds and uses your local copy of the Tauri core packages. Just run `yarn tauri build` or `yarn tauri dev` in the helloworld app directory after making changes to test them out. To use your local changes in another project, edit its `src-tauri/Cargo.toml` file so that the `tauri` key looks like `tauri = { path = "PATH", features = [ "api-all", "cli" ] }`, where `PATH` is the relative path to `[Tauri repo root]/core/tauri`. Then, your local copy of the Tauri core packages will be rebuilt and used whenever you build that project.
 
 ### Developing the JS API
 
-The JS API provides bindings between the developer's JS in the Webview and the builtin Tauri APIs, written in Rust. Its code is located in `[Tauri repo root]/api`. After making changes to the code, run `yarn build` to build it. To test your changes, we recommend using the API example app, located in `[Tauri repo root]/examples/api`. It will automatically use your local copy of the JS API and provides a helpful UI to test the various commands.
+The JS API provides bindings between the developer's JS in the Webview and the builtin Tauri APIs, written in Rust. Its code is located in `[Tauri repo root]/tooling/api`. After making changes to the code, run `yarn build` to build it. To test your changes, we recommend using the API example app, located in `[Tauri repo root]/examples/api`. It will automatically use your local copy of the JS API and provides a helpful UI to test the various commands.
 
 ## Financial Contribution
 

+ 6 - 6
.github/workflows/artifacts-updater.yml

@@ -8,8 +8,8 @@ on:
     paths:
       - '.github/workflows/artifacts-updater.yml'
       - 'core/tauri/**'
-      - 'cli/core/**'
-      - 'cli/tauri-bundler/**'
+      - 'tooling/cli.rs/**'
+      - 'tooling/bundler/**'
       - 'examples/updater/**'
 
 jobs:
@@ -32,18 +32,18 @@ jobs:
         run: |
           sudo apt-get update
           sudo apt-get install -y webkit2gtk-4.0
-      - run: cargo install --path ./cli/core --force
+      - run: cargo install --path ./tooling/cli.rs --force
       - name: install cli deps via yarn
-        working-directory: ./cli/tauri.js
+        working-directory: ./tooling/cli.js
         run: yarn
       - name: build cli
-        working-directory: ./cli/tauri.js
+        working-directory: ./tooling/cli.js
         run: yarn build
       - name: build sample artifacts (updater)
         working-directory: ./examples/updater
         run: |
           yarn install
-          node ../../cli/tauri.js/bin/tauri build
+          node ../../tooling/cli.js/bin/tauri build
         env:
           TAURI_PRIVATE_KEY: dW50cnVzdGVkIGNvbW1lbnQ6IHJzaWduIGVuY3J5cHRlZCBzZWNyZXQga2V5ClJXUlRZMEl5YTBGV3JiTy9lRDZVd3NkL0RoQ1htZmExNDd3RmJaNmRMT1ZGVjczWTBKZ0FBQkFBQUFBQUFBQUFBQUlBQUFBQWdMekUzVkE4K0tWQ1hjeGt1Vkx2QnRUR3pzQjVuV0ZpM2czWXNkRm9hVUxrVnB6TUN3K1NheHJMREhQbUVWVFZRK3NIL1VsMDBHNW5ET1EzQno0UStSb21nRW4vZlpTaXIwZFh5ZmRlL1lSN0dKcHdyOUVPclVvdzFhVkxDVnZrbHM2T1o4Tk1NWEU9Cg==
       - uses: actions/upload-artifact@v2

+ 1 - 1
.github/workflows/audit.yml

@@ -30,5 +30,5 @@ jobs:
     steps:
       - uses: actions/checkout@v2
       - name: yarn audit
-        working-directory: cli/tauri.js
+        working-directory: tooling/cli.js
         run: yarn audit

+ 3 - 3
.github/workflows/build-smoke-tests.yml

@@ -71,10 +71,10 @@ jobs:
           sudo apt-get update
           sudo apt-get install -y webkit2gtk-4.0
       - name: yarn install for cli
-        working-directory: tauri/cli/tauri.js
+        working-directory: tauri/tooling/cli.js
         run: yarn
-      - name: build tauri.js
-        working-directory: tauri/cli/tauri.js
+      - name: build cli.js
+        working-directory: tauri/tooling/cli.js
         run: |
           yarn build-release
           yarn global add $PWD

+ 3 - 3
.github/workflows/core-lint-fmt.yml

@@ -10,7 +10,7 @@ on:
       - '.github/workflows/core-lint-fmt.yml'
       - 'core/**'
       - 'examples/**'
-      - 'cli/core/**'
+      - 'tooling/cli.rs/**'
 
 jobs:
   workspace_clippy_fmt_check:
@@ -48,7 +48,7 @@ jobs:
       - uses: actions-rs/clippy-check@v1
         with:
           token: ${{ secrets.GITHUB_TOKEN }}
-          args: --manifest-path ./cli/core/Cargo.toml --all-targets --all-features -- -D warnings
+          args: --manifest-path ./tooling/cli.rs/Cargo.toml --all-targets --all-features -- -D warnings
           name: cli
       - uses: actions-rs/toolchain@v1
         with:
@@ -59,7 +59,7 @@ jobs:
       - uses: actions-rs/cargo@v1
         with:
           command: fmt
-          args: --manifest-path ./cli/core/Cargo.toml --all -- --check
+          args: --manifest-path ./tooling/cli.rs/Cargo.toml --all -- --check
 
   core_clippy_check:
     runs-on: ubuntu-latest

+ 2 - 2
.github/workflows/covector-version-or-publish.yml

@@ -106,8 +106,8 @@ jobs:
       fail-fast: false
       matrix:
         package:
-          - name: tauri.js
-            registryName: tauri
+          - name: cli.js
+            registryName: \@tauri-apps/cli
           - name: tauri-bundler
             registryName: tauri-bundler
           - name: tauri-utils

+ 4 - 4
.github/workflows/js-lint.yml

@@ -8,7 +8,7 @@ on:
   pull_request:
     paths:
       - '.github/workflows/js-lint.yml'
-      - 'cli/tauri.js/**'
+      - 'tooling/cli.js/**'
 
 jobs:
   eslint-check:
@@ -19,11 +19,11 @@ jobs:
         with:
           node-version: '12'
       - name: install deps via yarn
-        working-directory: ./cli/tauri.js/
+        working-directory: ./tooling/cli.js/
         run: yarn
       - name: run eslint
-        working-directory: ./cli/tauri.js/
+        working-directory: ./tooling/cli.js/
         run: yarn lint
       - name: run prettier
-        working-directory: ./cli/tauri.js/
+        working-directory: ./tooling/cli.js/
         run: yarn format:check

+ 4 - 4
.github/workflows/test-bundler.yml

@@ -8,7 +8,7 @@ on:
   pull_request:
     paths:
       - '.github/workflows/test-bundler.yml'
-      - 'cli/tauri-bundler/**'
+      - 'tooling/bundler/**'
 env:
   RUST_BACKTRACE: 1
 
@@ -34,7 +34,7 @@ jobs:
           sudo apt-get install -y webkit2gtk-4.0
       - name: test
         run: |
-          cd ./cli/tauri-bundler
+          cd ./tooling/bundler
           cargo test
 
   clippy-fmt-check:
@@ -52,7 +52,7 @@ jobs:
         uses: actions-rs/clippy-check@v1
         with:
           token: ${{ secrets.GITHUB_TOKEN }}
-          args: --manifest-path ./cli/tauri-bundler/Cargo.toml --all-targets -- -D warnings
+          args: --manifest-path ./tooling/bundler/Cargo.toml --all-targets -- -D warnings
           name: bundler
       - name: install rustfmt
         uses: actions-rs/toolchain@v1
@@ -65,4 +65,4 @@ jobs:
         uses: actions-rs/cargo@v1
         with:
           command: fmt
-          args: --manifest-path ./cli/tauri-bundler/Cargo.toml --all -- --check
+          args: --manifest-path ./tooling/bundler/Cargo.toml --all -- --check

+ 4 - 4
.github/workflows/test-core.yml

@@ -55,13 +55,13 @@ jobs:
           toolchain: stable
           override: true
       - name: build api
-        working-directory: ./api
+        working-directory: ./tooling/api
         run: yarn && yarn build
       - name: build CLI
         uses: actions-rs/cargo@v1
         with:
           command: build
-          args: --manifest-path ./cli/core/Cargo.toml
+          args: --manifest-path ./tooling/cli.rs/Cargo.toml
 
   test-tauri-js-cli:
     runs-on: ${{ matrix.platform }}
@@ -81,10 +81,10 @@ jobs:
       - name: test
         timeout-minutes: 30
         run: |
-          cd ./cli/tauri.js
+          cd ./tooling/cli.js
           yarn
           yarn test
       - name: run release build
         timeout-minutes: 15
-        working-directory: cli/tauri.js
+        working-directory: tooling/cli.js
         run: yarn build-release

+ 6 - 6
.github/workflows/udeps.yml

@@ -9,8 +9,8 @@ on:
     paths:
       - '.github/workflows/udeps.yml'
       - 'core/**'
-      - 'cli/tauri-bundler/**'
-      - 'cli/core/**'
+      - 'tooling/bundler/**'
+      - 'tooling/cli.rs/**'
 
 jobs:
   udeps:
@@ -45,13 +45,13 @@ jobs:
     - name: Cache bundler cargo target
       uses: actions/cache@v2
       with:
-        path: cli/tauri-bundler/target
+        path: tooling/bundler/target
         key: ubuntu-latest-nightly-cargo-build-bundler-target-${{ hashFiles('**/Cargo.toml') }}
 
     - name: Cache CLI cargo target
       uses: actions/cache@v2
       with:
-        path: cli/core/target
+        path: tooling/cli.rs/target
         key: ubuntu-latest-nightly-cargo-build-cli-target-${{ hashFiles('**/Cargo.toml') }}
 
     - uses: actions-rs/cargo@v1
@@ -72,9 +72,9 @@ jobs:
     - uses: actions-rs/cargo@v1
       with:
         command: udeps
-        args: --manifest-path ./cli/tauri-bundler/Cargo.toml --all-targets --all-features
+        args: --manifest-path ./tooling/bundler/Cargo.toml --all-targets --all-features
 
     - uses: actions-rs/cargo@v1
       with:
         command: udeps
-        args: --manifest-path ./cli/core/Cargo.toml --all-targets --all-features
+        args: --manifest-path ./tooling/cli.rs/Cargo.toml --all-targets --all-features

+ 1 - 1
.github/workflows/update-docs.yml

@@ -47,7 +47,7 @@ jobs:
       - name: run typedocusaurus
         uses: tauri-apps/typedocusaurus/github-action@v1
         with:
-          originPath: ./tauri/api/
+          originPath: ./tauri/tooling/api/
           sidebarFile: sidebars.json
           targetPath: en/api/js
           docusaurusPath: ./tauri-docs/

+ 2 - 2
.gitignore

@@ -79,11 +79,11 @@ target
 /Cargo.lock
 /yarn.lock
 
-/cli/tauri.js/test/jest/tmp
+/tooling/cli.js/test/jest/tmp
 
 # doing this because of how our tests currently (naively) drop the tauri.conf.js in that folder
 # todo: needs a proper fic
-/cli/tauri.js/tauri.conf.js
+/tooling/cli.js/tauri.conf.js
 
 # ignore frida handlers
 __handlers__/

+ 2 - 2
.husky/pre-commit

@@ -1,9 +1,9 @@
 #!/bin/sh
 . "$(dirname "$0")/_/husky.sh"
 
-cd api
+cd tooling/api
 yarn format
 yarn lint-fix
-cd ../cli/tauri.js
+cd ../cli.js
 yarn format
 yarn lint-fix

+ 2 - 2
.scripts/setup.sh

@@ -9,7 +9,7 @@ yarn && yarn build
 cd ..
 
 echo "Building the Tauri Rust CLI..."
-cd cli/core
+cd tooling/cli.rs
 cargo install --path .
 cd ../..
 echo "Tauri Rust CLI installed. Run it with '$ cargo tauri [COMMAND]'."
@@ -18,7 +18,7 @@ echo "Do you want to install the Node.js CLI?"
 select yn in "Yes" "No"; do
     case $yn in
         Yes )
-            cd cli/tauri.js
+            cd tooling/cli.js
             yarn && yarn build && yarn link
             cd ../..
             echo "Tauri Node.js CLI installed. Run it with '$ tauri [COMMAND]'."

+ 29 - 28
README.md

@@ -20,12 +20,13 @@ Tauri Apps
 
 ## Current Releases
 
-| Component | Description  | Version | Lin | Win | Mac |
-|-----------|---------|------|-----|-----|-----|
-| [**tauri.js CLI**](https://github.com/tauri-apps/tauri/tree/dev/cli/tauri.js) | create, develop and build apps | [![](https://img.shields.io/npm/v/tauri.svg)](https://www.npmjs.com/package/tauri) |✅|✅|✅|
-| [**tauri core**](https://github.com/tauri-apps/tauri/tree/dev/tauri)  | binding to the low level WEBVIEW   | [![](https://img.shields.io/crates/v/tauri.svg)](https://crates.io/crates/tauri)|✅|✅|✅|
-| [**tauri bundler**](https://github.com/tauri-apps/tauri/tree/dev/cli/tauri-bundler) | manufacture the final binaries | [![](https://img.shields.io/crates/v/tauri-bundler.svg)](https://crates.io/crates/tauri-bundler)  |✅|✅|✅ |
-| [**tauri utils**](https://github.com/tauri-apps/tauri/tree/dev/tauri-utils) | common tools for tauri| [![](https://img.shields.io/crates/v/tauri-utils.svg)](https://crates.io/crates/tauri-utils)  |✅|✅|✅ |
+| Component                                                                   | Description                    | Version                                                                                          | Lin | Win | Mac |
+| --------------------------------------------------------------------------- | ------------------------------ | ------------------------------------------------------------------------------------------------ | --- | --- | --- |
+| [**cli.rs**](https://github.com/tauri-apps/tauri/tree/dev/tooling/cli.rs)   | create, develop and build apps | [![](https://img.shields.io/crates/v/tauri-cli.svg)](https://crates.io/crates/tauri-cli)         | ✅   | ✅   | ✅   |
+| [**cli.js**](https://github.com/tauri-apps/tauri/tree/dev/tooling/cli.js)   | Node.js CLI wrapper for cli.rs | [![](https://img.shields.io/npm/v/tauri.svg)](https://www.npmjs.com/package/tauri)               | ✅   | ✅   | ✅   |
+| [**core**](https://github.com/tauri-apps/tauri/tree/dev/core/tauri)         | runtime core                   | [![](https://img.shields.io/crates/v/tauri.svg)](https://crates.io/crates/tauri)                 | ✅   | ✅   | ✅   |
+| [**bundler**](https://github.com/tauri-apps/tauri/tree/dev/tooling/bundler) | manufacture the final binaries | [![](https://img.shields.io/crates/v/tauri-bundler.svg)](https://crates.io/crates/tauri-bundler) | ✅   | ✅   | ✅   |
+| [**utils**](https://github.com/tauri-apps/tauri/tree/dev/core/tauri-utils)  | common tools for tauri         | [![](https://img.shields.io/crates/v/tauri-utils.svg)](https://crates.io/crates/tauri-utils)     | ✅   | ✅   | ✅   |
 
 
 ## Introduction
@@ -91,28 +92,28 @@ If you are interested in making a tauri-app, please visit the [documentation web
 
 ### Comparison between Tauri and Electron
 
-| Detail | Tauri | Electron |
-|--|--------|----------|
-| Installer Size Linux | 3.1 MB | 52.1 MB |
-| Memory Consumption Linux | 180 MB | 462 MB |
-| Launch Time Linux | 0.39s | .80s |
-| Interface Service Provider | Varies | Chromium |
-| Backend Binding | Rust | Node.js (ECMAScript) |
-| Underlying Engine | C/C++ | V8 (C/C++) |
-| FLOSS | Yes | No |
-| Multithreading | Yes | Yes |
-| Bytecode Delivery | Yes | No |
-| Multiple Windows | Soon | Yes |
-| Auto Updater | Soon | Yes (1) |
-| Cross Platform | Yes | Yes |
-| Custom App Icon | Yes | Yes |
-| Windows Binary | Yes | Yes |
-| MacOS Binary | Yes | Yes |
-| Linux Binary | Yes | Yes |
-| iOS Binary | Soon | No |
-| Android Binary | Soon | No |
-| Desktop Tray | Soon | Yes |
-| Sidecar Binaries | Yes | No |
+| Detail                     | Tauri  | Electron             |
+| -------------------------- | ------ | -------------------- |
+| Installer Size Linux       | 3.1 MB | 52.1 MB              |
+| Memory Consumption Linux   | 180 MB | 462 MB               |
+| Launch Time Linux          | 0.39s  | .80s                 |
+| Interface Service Provider | Varies | Chromium             |
+| Backend Binding            | Rust   | Node.js (ECMAScript) |
+| Underlying Engine          | C/C++  | V8 (C/C++)           |
+| FLOSS                      | Yes    | No                   |
+| Multithreading             | Yes    | Yes                  |
+| Bytecode Delivery          | Yes    | No                   |
+| Multiple Windows           | Soon   | Yes                  |
+| Auto Updater               | Soon   | Yes (1)              |
+| Cross Platform             | Yes    | Yes                  |
+| Custom App Icon            | Yes    | Yes                  |
+| Windows Binary             | Yes    | Yes                  |
+| MacOS Binary               | Yes    | Yes                  |
+| Linux Binary               | Yes    | Yes                  |
+| iOS Binary                 | Soon   | No                   |
+| Android Binary             | Soon   | No                   |
+| Desktop Tray               | Soon   | Yes                  |
+| Sidecar Binaries           | Yes    | No                   |
 
 #### Notes
 1. Electron has no native auto updater on Linux, but is offered by electron-packager

+ 0 - 3
cli/tauri.js/test/jest/raw-loader-transformer.js

@@ -1,3 +0,0 @@
-module.exports = {
-  process: (content) => `module.exports = {default: ${JSON.stringify(content)}}`
-}

A diferenza do arquivo foi suprimida porque é demasiado grande
+ 0 - 0
core/tauri/scripts/bundle.js


+ 3 - 3
examples/api/package.json

@@ -5,7 +5,7 @@
     "build": "rollup -c",
     "dev": "rollup -c -w",
     "start": "sirv public",
-    "tauri": "node ../../cli/tauri.js/bin/tauri"
+    "tauri": "node ../../tooling/cli.js/bin/tauri"
   },
   "devDependencies": {
     "@rollup/plugin-commonjs": "17.1.0",
@@ -17,7 +17,7 @@
     "svelte": "3.35.0"
   },
   "dependencies": {
-    "@tauri-apps/api": "link:../../api",
+    "@tauri-apps/api": "link:../../tooling/api",
     "sirv-cli": "1.0.11"
   }
-}
+}

A diferenza do arquivo foi suprimida porque é demasiado grande
+ 0 - 483
examples/api/public/build/bundle.js


A diferenza do arquivo foi suprimida porque é demasiado grande
+ 0 - 0
examples/api/public/build/bundle.js.map


+ 1 - 1
examples/api/yarn.lock

@@ -62,7 +62,7 @@
     estree-walker "^1.0.1"
     picomatch "^2.2.2"
 
-"@tauri-apps/api@link:../../api":
+"@tauri-apps/api@link:../../tooling/api":
   version "0.0.0"
   uid ""
 

+ 2 - 2
examples/helloworld/package.json

@@ -2,6 +2,6 @@
   "name": "hello-world",
   "version": "1.0.0",
   "scripts": {
-    "tauri": "node ../../cli/tauri.js/bin/tauri"
+    "tauri": "node ../../tooling/cli.js/bin/tauri"
   }
-}
+}

+ 2 - 2
examples/multiwindow/package.json

@@ -5,7 +5,7 @@
   "main": "index.js",
   "scripts": {
     "test": "echo \"Error: no test specified\" && exit 1",
-    "tauri": "node ../../cli/tauri.js/bin/tauri"
+    "tauri": "node ../../tooling/cli.js/bin/tauri"
   },
   "private": true
-}
+}

+ 2 - 2
examples/updater/package.json

@@ -2,6 +2,6 @@
   "name": "updater",
   "version": "1.0.0",
   "scripts": {
-    "tauri": "node ../../cli/tauri.js/bin/tauri"
+    "tauri": "node ../../tooling/cli.js/bin/tauri"
   }
-}
+}

+ 1 - 1
maskfile.md

@@ -67,7 +67,7 @@ case "$PWD" in
   cargo web deploy
   [ $example = `basename $(dirname $PWD)` ] && cd ..
 
-  yarn add tauri@link:../../../cli/tauri.js
+  yarn add tauri@link:../../../tooling/cli.js
   yarn && yarn tauri dev
 ;;
 *)

+ 2 - 2
package.json

@@ -6,7 +6,7 @@
   "repository": {
     "type": "git",
     "url": "https://github.com/tauri-apps/tauri.git",
-    "directory": "cli/tauri.js"
+    "directory": "tooling/cli.js"
   },
   "scripts": {
     "format": "prettier --write --end-of-line=auto \"./**/*.{js,jsx,ts,tsx,html,css,json}\" --ignore-path .gitignore",
@@ -17,4 +17,4 @@
     "husky": "^5.1.3",
     "prettier": "^2.0.5"
   }
-}
+}

+ 3 - 3
renovate.json

@@ -89,7 +89,7 @@
     {
       "enabled": true,
       "paths": [
-        "cli/core/**"
+        "tooling/cli.rs/**"
       ],
       "groupName": "Tauri CLI",
       "groupSlug": "allTauriCLI",
@@ -102,7 +102,7 @@
     {
       "enabled": true,
       "paths": [
-        "cli/tauri-bundler/**"
+        "tooling/bundler/**"
       ],
       "groupName": "Tauri Bundler",
       "groupSlug": "allTauriBundler",
@@ -115,7 +115,7 @@
     {
       "enabled": true,
       "paths": [
-        "cli/tauri.js/**"
+        "tooling/cli.js/**"
       ],
       "groupName": "Tauri JS CLI",
       "groupSlug": "allTauriJSCLI",

+ 0 - 0
api/.eslintrc.js → tooling/api/.eslintrc.js


+ 0 - 0
api/.gitignore → tooling/api/.gitignore


+ 0 - 0
api/.prettierrc.js → tooling/api/.prettierrc.js


+ 0 - 0
api/babel.config.js → tooling/api/babel.config.js


+ 0 - 0
api/package.json → tooling/api/package.json


+ 1 - 1
api/rollup.config.js → tooling/api/rollup.config.js

@@ -69,7 +69,7 @@ export default [
     output: [
       {
         name: '__TAURI__',
-        dir: '../core/tauri/scripts',
+        dir: '../../core/tauri/scripts',
         entryFileNames: 'bundle.js',
         format: 'umd',
         plugins: [

+ 0 - 0
api/src/app.ts → tooling/api/src/app.ts


+ 0 - 0
api/src/bundle.ts → tooling/api/src/bundle.ts


+ 0 - 0
api/src/cli.ts → tooling/api/src/cli.ts


+ 0 - 0
api/src/dialog.ts → tooling/api/src/dialog.ts


+ 0 - 0
api/src/event.ts → tooling/api/src/event.ts


+ 0 - 0
api/src/fs.ts → tooling/api/src/fs.ts


+ 0 - 0
api/src/globalShortcut.ts → tooling/api/src/globalShortcut.ts


+ 0 - 0
api/src/helpers/event.ts → tooling/api/src/helpers/event.ts


+ 0 - 0
api/src/helpers/tauri.ts → tooling/api/src/helpers/tauri.ts


+ 0 - 0
api/src/http.ts → tooling/api/src/http.ts


+ 0 - 0
api/src/index.ts → tooling/api/src/index.ts


+ 0 - 0
api/src/notification.ts → tooling/api/src/notification.ts


+ 0 - 0
api/src/path.ts → tooling/api/src/path.ts


+ 0 - 0
api/src/shell.ts → tooling/api/src/shell.ts


+ 0 - 0
api/src/tauri.ts → tooling/api/src/tauri.ts


+ 0 - 0
api/src/updater.ts → tooling/api/src/updater.ts


+ 0 - 0
api/src/window.ts → tooling/api/src/window.ts


+ 0 - 0
api/tsconfig.json → tooling/api/tsconfig.json


+ 5 - 94
api/yarn.lock → tooling/api/yarn.lock

@@ -1318,11 +1318,6 @@ astral-regex@^2.0.0:
   resolved "https://registry.yarnpkg.com/astral-regex/-/astral-regex-2.0.0.tgz#483143c567aeed4785759c0865786dc77d7d2e31"
   integrity sha512-Z7tMw1ytTXt5jqMcOP+OQteU1VuNK9Y02uuJtKQ1Sv69jXQKKg5cibLwGJow8yzZP+eAc18EmLGPal0bp36rvQ==
 
-at-least-node@^1.0.0:
-  version "1.0.0"
-  resolved "https://registry.yarnpkg.com/at-least-node/-/at-least-node-1.0.0.tgz#602cd4b46e844ad4effc92a8011a3c46e0238dc2"
-  integrity sha512-+q/t7Ekv1EDY2l6Gda6LLiX14rU9TV20Wa3ofeQmwPFZbOMo9DXrLbOjFaaclkXKWidIaopwAObQDqwWtGUjqg==
-
 babel-plugin-dynamic-import-node@^2.3.3:
   version "2.3.3"
   resolved "https://registry.yarnpkg.com/babel-plugin-dynamic-import-node/-/babel-plugin-dynamic-import-node-2.3.3.tgz#84fda19c976ec5c6defef57f9427b3def66e17a3"
@@ -1468,11 +1463,6 @@ colorette@^1.2.1:
   resolved "https://registry.yarnpkg.com/colorette/-/colorette-1.2.2.tgz#cbcc79d5e99caea2dbf10eb3a26fd8b3e6acfa94"
   integrity sha512-MKGMzyfeuutC/ZJ1cba9NqcNpfeqMUcYmyF1ZFY6/Cn7CNSAKx6a+s48sqLqyAiZuaP2TcqMhoo+dlwFnVxT9w==
 
-colors@^1.4.0:
-  version "1.4.0"
-  resolved "https://registry.yarnpkg.com/colors/-/colors-1.4.0.tgz#c50491479d4c1bdaed2c9ced32cf7c7dc2360f78"
-  integrity sha512-a+UqTh4kgZg/SlGvfbzDHpgRu7AAQOmmqRHJnxhRZICKFUT91brVhNNt58CMWU9PsBbv3PDCZUHbVxuDiH2mtA==
-
 commander@^2.20.0:
   version "2.20.3"
   resolved "https://registry.yarnpkg.com/commander/-/commander-2.20.3.tgz#fd485e84c03eb4881c20722ba48035e8531aeb33"
@@ -1933,16 +1923,6 @@ flatted@^3.1.0:
   resolved "https://registry.yarnpkg.com/flatted/-/flatted-3.1.1.tgz#c4b489e80096d9df1dfc97c79871aea7c617c469"
   integrity sha512-zAoAQiudy+r5SvnSw3KJy5os/oRJYHzrzja/tBDqrZtNhUw8bt6y8OBzMWcjWr+8liV8Eb6yOhw8WZ7VFZ5ZzA==
 
-fs-extra@^9.1.0:
-  version "9.1.0"
-  resolved "https://registry.yarnpkg.com/fs-extra/-/fs-extra-9.1.0.tgz#5954460c764a8da2094ba3554bf839e6b9a7c86d"
-  integrity sha512-hcg3ZmepS30/7BSFqRvoo3DOMQu7IjqxO5nCDt+zM9XWjb33Wg7ziNT+Qvqbuc3+gWpzO02JubVyk2G4Zvo1OQ==
-  dependencies:
-    at-least-node "^1.0.0"
-    graceful-fs "^4.2.0"
-    jsonfile "^6.0.1"
-    universalify "^2.0.0"
-
 fs.realpath@^1.0.0:
   version "1.0.0"
   resolved "https://registry.yarnpkg.com/fs.realpath/-/fs.realpath-1.0.0.tgz#1504ad2523158caa40db4a2787cb01411994ea4f"
@@ -1989,7 +1969,7 @@ glob-parent@^5.0.0, glob-parent@^5.1.0:
   dependencies:
     is-glob "^4.0.1"
 
-glob@7.1.6, glob@^7.0.0, glob@^7.1.3, glob@^7.1.6:
+glob@7.1.6, glob@^7.1.3, glob@^7.1.6:
   version "7.1.6"
   resolved "https://registry.yarnpkg.com/glob/-/glob-7.1.6.tgz#141f33b81a7c2492e125594307480c46679278a6"
   integrity sha512-LwaxwyZ72Lk7vZINtNNrywX0ZuLyStrdDtabefZKAY5ZGJhVtgdznluResxNmPitE0SAO+O26sWTHeKSI2wMBA==
@@ -2032,23 +2012,11 @@ globby@^11.0.1:
     merge2 "^1.3.0"
     slash "^3.0.0"
 
-graceful-fs@^4.1.2, graceful-fs@^4.1.6, graceful-fs@^4.2.0:
+graceful-fs@^4.1.2:
   version "4.2.6"
   resolved "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-4.2.6.tgz#ff040b2b0853b23c3d31027523706f1885d76bee"
   integrity sha512-nTnJ528pbqxYanhpDYsi4Rd8MAeaBA67+RZ10CM1m3bTAVFEDcd5AuA4a6W5YkGZ1iNXHzZz8T6TBKLeBuNriQ==
 
-handlebars@^4.7.6, handlebars@^4.7.7:
-  version "4.7.7"
-  resolved "https://registry.yarnpkg.com/handlebars/-/handlebars-4.7.7.tgz#9ce33416aad02dbd6c8fafa8240d5d98004945a1"
-  integrity sha512-aAcXm5OAfE/8IXkcZvCepKU3VzW1/39Fb5ZuqMtgI/hT8X2YgoMvBY5dLhq/cpOvw7Lk1nK/UF71aLG/ZnVYRA==
-  dependencies:
-    minimist "^1.2.5"
-    neo-async "^2.6.0"
-    source-map "^0.6.1"
-    wordwrap "^1.0.0"
-  optionalDependencies:
-    uglify-js "^3.1.4"
-
 has-bigints@^1.0.0:
   version "1.0.1"
   resolved "https://registry.yarnpkg.com/has-bigints/-/has-bigints-1.0.1.tgz#64fe6acb020673e3b78db035a5af69aa9d07b113"
@@ -2117,11 +2085,6 @@ inherits@2:
   resolved "https://registry.yarnpkg.com/inherits/-/inherits-2.0.4.tgz#0fa2c64f932917c3433a0ded55363aae37416b7c"
   integrity sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==
 
-interpret@^1.0.0:
-  version "1.4.0"
-  resolved "https://registry.yarnpkg.com/interpret/-/interpret-1.4.0.tgz#665ab8bc4da27a774a40584e812e3e0fa45b1a1e"
-  integrity sha512-agE4QfB2Lkp9uICn7BAqoscw4SZP9kTE2hxiFI3jBPmXJfdqiahTbUuKGsMoN2GtqL9AxhYioAcVvgsb1HvRbA==
-
 is-arrayish@^0.2.1:
   version "0.2.1"
   resolved "https://registry.yarnpkg.com/is-arrayish/-/is-arrayish-0.2.1.tgz#77c99840527aa8ecb1a8ba697b80645a7a926a9d"
@@ -2296,15 +2259,6 @@ json5@^2.1.2:
   dependencies:
     minimist "^1.2.5"
 
-jsonfile@^6.0.1:
-  version "6.1.0"
-  resolved "https://registry.yarnpkg.com/jsonfile/-/jsonfile-6.1.0.tgz#bc55b2634793c679ec6403094eb13698a6ec0aae"
-  integrity sha512-5dgndWOriYSm5cnYaJNhalLNDKOqFwyDB/rr1E9ZsGciGvKPs8R2xYGCacuf3z6K1YKDz182fd+fY3cn3pMqXQ==
-  dependencies:
-    universalify "^2.0.0"
-  optionalDependencies:
-    graceful-fs "^4.1.6"
-
 levn@^0.4.1:
   version "0.4.1"
   resolved "https://registry.yarnpkg.com/levn/-/levn-0.4.1.tgz#ae4562c007473b932a6200d403268dd2fffc6ade"
@@ -2365,7 +2319,6 @@ lodash@4.17.21, lodash@>=4.17.19, lodash@^4.17.15, lodash@^4.17.19, lodash@^4.17
   resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.21.tgz#679591c564c3bffaae8454cf0b3df370c3d6911c"
   integrity sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==
 
-
 lru-cache@^6.0.0:
   version "6.0.0"
   resolved "https://registry.yarnpkg.com/lru-cache/-/lru-cache-6.0.0.tgz#6d6fe6570ebd96aaf90fcad1dafa3b2566db3a94"
@@ -2373,11 +2326,6 @@ lru-cache@^6.0.0:
   dependencies:
     yallist "^4.0.0"
 
-lunr@^2.3.9:
-  version "2.3.9"
-  resolved "https://registry.yarnpkg.com/lunr/-/lunr-2.3.9.tgz#18b123142832337dd6e964df1a5a7707b25d35e1"
-  integrity sha512-zTU3DaZaF3Rt9rhN3uBMGQD3dD2/vFQqnvZCDv4dl5iOzq2IZQqTxu90r4E5J+nP70J3ilqVCrbho2eWaeW8Ow==
-
 magic-string@^0.25.7:
   version "0.25.7"
   resolved "https://registry.yarnpkg.com/magic-string/-/magic-string-0.25.7.tgz#3f497d6fd34c669c6798dcb821f2ef31f5445051"
@@ -2385,11 +2333,6 @@ magic-string@^0.25.7:
   dependencies:
     sourcemap-codec "^1.4.4"
 
-marked@^2.0.1:
-  version "2.0.1"
-  resolved "https://registry.yarnpkg.com/marked/-/marked-2.0.1.tgz#5e7ed7009bfa5c95182e4eb696f85e948cefcee3"
-  integrity sha512-5+/fKgMv2hARmMW7DOpykr2iLhl0NgjyELk5yn92iE7z8Se1IS9n3UsFm86hFXIkvMBmVxki8+ckcpjBeyo/hw==
-
 merge-stream@^2.0.0:
   version "2.0.0"
   resolved "https://registry.yarnpkg.com/merge-stream/-/merge-stream-2.0.0.tgz#52823629a14dd00c9770fb6ad47dc6310f2c1f60"
@@ -2444,11 +2387,6 @@ natural-compare@^1.4.0:
   resolved "https://registry.yarnpkg.com/natural-compare/-/natural-compare-1.4.0.tgz#4abebfeed7541f2c27acfb29bdbbd15c8d5ba4f7"
   integrity sha1-Sr6/7tdUHywnrPspvbvRXI1bpPc=
 
-neo-async@^2.6.0:
-  version "2.6.2"
-  resolved "https://registry.yarnpkg.com/neo-async/-/neo-async-2.6.2.tgz#b4aafb93e3aeb2d8174ca53cf163ab7d7308305f"
-  integrity sha512-Yd3UES5mWCSqR+qNT93S3UoYUkqAZ9lLg8a7g9rimsWmYGK8cVToA4/sF3RrshdyV3sAGMXVUmpMYOw+dLpOuw==
-
 node-modules-regexp@^1.0.0:
   version "1.0.0"
   resolved "https://registry.yarnpkg.com/node-modules-regexp/-/node-modules-regexp-1.0.0.tgz#8d9dbe28964a4ac5712e9131642107c71e90ec40"
@@ -2642,7 +2580,7 @@ prettier@2.2.1:
   resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.2.1.tgz#795a1a78dd52f073da0cd42b21f9c91381923ff5"
   integrity sha512-PqyhM2yCjg/oKkFPtTGUojv7gnZAoG80ttl45O6x2Ug/rMJw4wcc9k6aaf2hibP7BGVCCM33gZoGjyvt9mm16Q==
 
-progress@^2.0.0, progress@^2.0.3:
+progress@^2.0.0:
   version "2.0.3"
   resolved "https://registry.yarnpkg.com/progress/-/progress-2.0.3.tgz#7e8cf8d8f5b8f239c1bc68beb4eb78567d572ef8"
   integrity sha512-7PiHtLll5LdnKIMw100I+8xJXR5gW2QwWYkT6iJva0bXitZKa/XMrSbdmg3r2Xnaidz9Qumd0VPaMrZlF9V9sA==
@@ -2681,13 +2619,6 @@ read-pkg@^2.0.0:
     normalize-package-data "^2.3.2"
     path-type "^2.0.0"
 
-rechoir@^0.6.2:
-  version "0.6.2"
-  resolved "https://registry.yarnpkg.com/rechoir/-/rechoir-0.6.2.tgz#85204b54dba82d5742e28c96756ef43af50e3384"
-  integrity sha1-hSBLVNuoLVdC4oyWdW70OvUOM4Q=
-  dependencies:
-    resolve "^1.1.6"
-
 regenerate-unicode-properties@^8.2.0:
   version "8.2.0"
   resolved "https://registry.yarnpkg.com/regenerate-unicode-properties/-/regenerate-unicode-properties-8.2.0.tgz#e5de7111d655e7ba60c057dbe9ff37c87e65cdec"
@@ -2756,7 +2687,7 @@ resolve-from@^4.0.0:
   resolved "https://registry.yarnpkg.com/resolve-from/-/resolve-from-4.0.0.tgz#4abcd852ad32dd7baabfe9b40e00a36db5f392e6"
   integrity sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==
 
-resolve@^1.1.6, resolve@^1.10.0, resolve@^1.10.1, resolve@^1.13.1, resolve@^1.14.2, resolve@^1.17.0, resolve@^1.19.0:
+resolve@^1.10.0, resolve@^1.10.1, resolve@^1.13.1, resolve@^1.14.2, resolve@^1.17.0, resolve@^1.19.0:
   version "1.20.0"
   resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.20.0.tgz#629a013fb3f70755d6f0b7935cc1c2c5378b1975"
   integrity sha512-wENBPt4ySzg4ybFQW2TT1zMQucPK95HSh/nq2CFTZVOGut2+pQvSsgtda4d26YrYcr067wjbmzOG8byDPBX63A==
@@ -2890,7 +2821,7 @@ source-map@^0.5.0:
   resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.5.7.tgz#8a039d2d1021d22d1ea14c80d8ea468ba2ef3fcc"
   integrity sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w=
 
-source-map@^0.6.0, source-map@^0.6.1:
+source-map@^0.6.0:
   version "0.6.1"
   resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.6.1.tgz#74722af32e9614e9c287a8d0bbde48b5e2f1a263"
   integrity sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==
@@ -3108,11 +3039,6 @@ typescript@4.2.4:
   resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.2.4.tgz#8610b59747de028fda898a8aef0e103f156d0961"
   integrity sha512-V+evlYHZnQkaz8TRBuxTA92yZBPotr5H+WhQ7bD3hZUndx5tGOa1fuCgeSjxAzM1RiN5IzvadIXTVefuuwZCRg==
 
-uglify-js@^3.1.4:
-  version "3.13.1"
-  resolved "https://registry.yarnpkg.com/uglify-js/-/uglify-js-3.13.1.tgz#2749d4b8b5b7d67460b4a418023ff73c3fefa60a"
-  integrity sha512-EWhx3fHy3M9JbaeTnO+rEqzCe1wtyQClv6q3YWq0voOj4E+bMZBErVS1GAHPDiRGONYq34M1/d8KuQMgvi6Gjw==
-
 unbox-primitive@^1.0.0:
   version "1.0.0"
   resolved "https://registry.yarnpkg.com/unbox-primitive/-/unbox-primitive-1.0.0.tgz#eeacbc4affa28e9b3d36b5eaeccc50b3251b1d3f"
@@ -3146,11 +3072,6 @@ unicode-property-aliases-ecmascript@^1.0.4:
   resolved "https://registry.yarnpkg.com/unicode-property-aliases-ecmascript/-/unicode-property-aliases-ecmascript-1.1.0.tgz#dd57a99f6207bedff4628abefb94c50db941c8f4"
   integrity sha512-PqSoPh/pWetQ2phoj5RLiaqIk4kCNwoV3CI+LfGmWLKI3rE3kl1h59XpX2BjgDrmbxD9ARtQobPGU1SguCYuQg==
 
-universalify@^2.0.0:
-  version "2.0.0"
-  resolved "https://registry.yarnpkg.com/universalify/-/universalify-2.0.0.tgz#75a4984efedc4b08975c5aeb73f530d02df25717"
-  integrity sha512-hAZsKq7Yy11Zu1DE0OzWjw7nnLZmJZYTDZZyEFHZdUhV8FkH5MCfoU1XMaxXovpyW5nq5scPqq0ZDP9Zyl04oQ==
-
 uri-js@^4.2.2:
   version "4.4.1"
   resolved "https://registry.yarnpkg.com/uri-js/-/uri-js-4.4.1.tgz#9b1a52595225859e55f669d928f88c6c57f2a77e"
@@ -3171,11 +3092,6 @@ validate-npm-package-license@^3.0.1:
     spdx-correct "^3.0.0"
     spdx-expression-parse "^3.0.0"
 
-vscode-textmate@^5.2.0:
-  version "5.2.0"
-  resolved "https://registry.yarnpkg.com/vscode-textmate/-/vscode-textmate-5.2.0.tgz#01f01760a391e8222fe4f33fbccbd1ad71aed74e"
-  integrity sha512-Uw5ooOQxRASHgu6C7GVvUxisKXfSgW4oFlO+aa+PAkgmH89O3CXxEEzNRNtHSqtXFTl0nAC1uYj0GMSH27uwtQ==
-
 which-boxed-primitive@^1.0.1:
   version "1.0.2"
   resolved "https://registry.yarnpkg.com/which-boxed-primitive/-/which-boxed-primitive-1.0.2.tgz#13757bc89b209b049fe5d86430e21cf40a89a8e6"
@@ -3218,11 +3134,6 @@ y18n@^5.0.5:
   resolved "https://registry.yarnpkg.com/y18n/-/y18n-5.0.5.tgz#8769ec08d03b1ea2df2500acef561743bbb9ab18"
   integrity sha512-hsRUr4FFrvhhRH12wOdfs38Gy7k2FFzB9qgN9v3aLykRq0dRcdcpz5C9FxdS2NuhOrI/628b/KSTJ3rwHysYSg==
 
-yallist@^3.0.2:
-  version "3.1.1"
-  resolved "https://registry.yarnpkg.com/yallist/-/yallist-3.1.1.tgz#dbb7daf9bfd8bac9ab45ebf602b8cbad0d5d08fd"
-  integrity sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==
-
 yallist@^4.0.0:
   version "4.0.0"
   resolved "https://registry.yarnpkg.com/yallist/-/yallist-4.0.0.tgz#9bb92790d9c0effec63be73519e11a35019a3a72"

+ 0 - 0
cli/tauri-bundler/.gitignore → tooling/bundler/.gitignore


+ 0 - 0
cli/core/.license_template → tooling/bundler/.license_template


+ 0 - 0
cli/tauri-bundler/CHANGELOG.md → tooling/bundler/CHANGELOG.md


+ 0 - 0
cli/tauri-bundler/Cargo.lock → tooling/bundler/Cargo.lock


+ 0 - 0
cli/tauri-bundler/Cargo.toml → tooling/bundler/Cargo.toml


+ 0 - 0
cli/tauri-bundler/License_Apache.md → tooling/bundler/License_Apache.md


+ 0 - 0
cli/tauri-bundler/License_MIT.md → tooling/bundler/License_MIT.md


+ 1 - 1
cli/tauri-bundler/README.md → tooling/bundler/README.md

@@ -4,7 +4,7 @@ Wrap Rust executables in OS-specific app bundles.
 
 ## About
 
-This is a fork of the awesome [cargo-bundle](https://github.com/burtonageo/cargo-bundle), turned into a library used by the [Tauri CLI](../core).
+This is a fork of the awesome [cargo-bundle](https://github.com/burtonageo/cargo-bundle), turned into a library used by the [Tauri CLI](../cli.rs).
 
 ## Configuration
 

+ 0 - 0
cli/core/templates/src-tauri/rustfmt.toml → tooling/bundler/rustfmt.toml


+ 0 - 0
cli/tauri-bundler/src/bundle.rs → tooling/bundler/src/bundle.rs


+ 0 - 0
cli/tauri-bundler/src/bundle/appimage_bundle.rs → tooling/bundler/src/bundle/appimage_bundle.rs


+ 0 - 0
cli/tauri-bundler/src/bundle/category.rs → tooling/bundler/src/bundle/category.rs


+ 0 - 0
cli/tauri-bundler/src/bundle/common.rs → tooling/bundler/src/bundle/common.rs


+ 0 - 0
cli/tauri-bundler/src/bundle/deb_bundle.rs → tooling/bundler/src/bundle/deb_bundle.rs


+ 0 - 0
cli/tauri-bundler/src/bundle/dmg_bundle.rs → tooling/bundler/src/bundle/dmg_bundle.rs


+ 0 - 0
cli/tauri-bundler/src/bundle/ios_bundle.rs → tooling/bundler/src/bundle/ios_bundle.rs


+ 0 - 0
cli/tauri-bundler/src/bundle/macos_bundle.rs → tooling/bundler/src/bundle/macos_bundle.rs


+ 0 - 0
cli/tauri-bundler/src/bundle/msi_bundle.rs → tooling/bundler/src/bundle/msi_bundle.rs


+ 0 - 0
cli/tauri-bundler/src/bundle/path_utils.rs → tooling/bundler/src/bundle/path_utils.rs


+ 0 - 0
cli/tauri-bundler/src/bundle/platform.rs → tooling/bundler/src/bundle/platform.rs


+ 0 - 0
cli/tauri-bundler/src/bundle/rpm_bundle.rs → tooling/bundler/src/bundle/rpm_bundle.rs


+ 0 - 0
cli/tauri-bundler/src/bundle/settings.rs → tooling/bundler/src/bundle/settings.rs


+ 0 - 0
cli/tauri-bundler/src/bundle/templates/appimage → tooling/bundler/src/bundle/templates/appimage


+ 0 - 0
cli/tauri-bundler/src/bundle/templates/dmg/bundle_dmg → tooling/bundler/src/bundle/templates/dmg/bundle_dmg


+ 0 - 0
cli/tauri-bundler/src/bundle/templates/dmg/dmg-license.py → tooling/bundler/src/bundle/templates/dmg/dmg-license.py


+ 0 - 0
cli/tauri-bundler/src/bundle/templates/dmg/template.applescript → tooling/bundler/src/bundle/templates/dmg/template.applescript


+ 0 - 0
cli/tauri-bundler/src/bundle/templates/main.wxs → tooling/bundler/src/bundle/templates/main.wxs


+ 0 - 0
cli/tauri-bundler/src/bundle/updater_bundle.rs → tooling/bundler/src/bundle/updater_bundle.rs


+ 0 - 0
cli/tauri-bundler/src/bundle/wix.rs → tooling/bundler/src/bundle/wix.rs


Algúns arquivos non se mostraron porque demasiados arquivos cambiaron neste cambio