Jacob Bolda
40ac52971e
feat: create-tauri-app wiring ( #1442 )
...
* chore(deps) Update Tauri JS CLI (#1319 )
Co-authored-by: Renovate Bot <bot@renovateapp.com>
* chore(deps) Update Tauri Core (#1318 )
Co-authored-by: Renovate Bot <bot@renovateapp.com>
* chore(deps) Update Tauri API (#1316 )
Co-authored-by: Renovate Bot <bot@renovateapp.com>
* chore(deps) Update Rust crate serde_json to 1.0.64 (#1315 )
Co-authored-by: Renovate Bot <bot@renovateapp.com>
* chore(deps) Update Rust crate once_cell to 1.7.2 (#1314 )
Co-authored-by: Renovate Bot <bot@renovateapp.com>
* chore(deps) Update Rust crate image to 0.23.14 (#1313 )
Co-authored-by: Renovate Bot <bot@renovateapp.com>
* feat(cli/build): improve no distDir error message (#1306 )
* feat(cli/build): improve no distDir error message
* chore: use Path's Display impl
Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
* chore(deps) Update Tauri API Definitions (#1317 )
Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
* feat(bundler/wix): install webview2 runtime (#1329 )
* feat(bundler/wix): install webview2 runtime
* add changefile
* chore(deps) Update Tauri API Definitions (major) (#1290 )
* chore(deps) Update Tauri API Definitions
* chore: update to husky v5
* chore: remove husky script
* chore: recreate lock file
Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
* chore(deps) Update Tauri JS CLI (#1291 )
Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
* refactor(core): app hooks (#1332 )
* fix(api/window): rename manager export to appWindow (#1342 )
* feat(api/shell): allow open command to open files (#1341 )
* chore(deps) Update Tauri API Definitions (#1344 )
Co-authored-by: Renovate Bot <bot@renovateapp.com>
* chore(deps) Update Rust crate tokio to 1.3 (#1343 )
Co-authored-by: Renovate Bot <bot@renovateapp.com>
* chore(deps) Update Rust crate open to 1.6.0 (#1348 )
Co-authored-by: Renovate Bot <bot@renovateapp.com>
* fix(core): wrong usage of wry RPC on event API (#1351 )
* copy cli config definition window visibility defaults (#1353 )
* feat(core): add file drop handler (#1352 )
* fix: get correct resource dir in AppImge (fix #1308 ) (#1333 )
Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
* feat: build without proc macros (#1226 )
Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
* chore(deps) Update Tauri JS CLI (#1346 )
Co-authored-by: Renovate Bot <bot@renovateapp.com>
* refactor(core): use Mutex in std to reduce async usage (#1350 )
Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
* fix(examples): build error (#1354 )
Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
* API example new ui (#1310 )
Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
* chore(deps): remove `winres` from template (#1357 )
* refactor(core): add `unlisten`, `once` APIs to the event system (#1359 )
* fix(cli): use correct arg in `_blanks` links polyfill (#1362 )
* fix(api/http): correct types (#1360 )
* fix(api/http): correct types
* Add changes
* Update correct-http-api-types.md
* chore(deps) Update Tauri JS CLI (#1364 )
Co-authored-by: Renovate Bot <bot@renovateapp.com>
* chore(deps) Update Tauri API Definitions (#1363 )
Co-authored-by: Renovate Bot <bot@renovateapp.com>
* fix(tauri/webview): Use different user_data_path for Windows (#1365 ) (#1366 )
Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
* fix(config): serde_json::Value::Object takes a Map instead of HashMap (#1371 )
* fix(config): serde_json::Value::Object takes a Map instead of HashMap
* fix: fmt
* fix(tauri.js): init command properly building with manifests (#1374 )
* fix(tauri.js): init command properly building with manifests
* fix: tests
* feat(bundler): add visual c++ redistributable files with MSM (#1368 )
* refactor(core): reduce usage on arc and mutex (#1361 )
Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
* feat(config): allow setting product name and version on tauri.conf.json (#1358 )
* feat: add current working directory to path api module (#1375 )
* refactor(core): move bundle script to /tauri crate (#1377 )
* refactor(core): move bundle script to /tauri crate
* fix(cli): clippy
* fix(core): tests
* refactor(core): custom protocol URL uses the app identifier (#1376 )
* refactor(core): custom protocol URL uses the app identifier
* fix: clippy
* fix(tauri-api): remove .exe from app_name on windows (#1379 )
* chore(deps) Update Tauri API Definitions (#1384 )
Co-authored-by: Renovate Bot <bot@renovateapp.com>
* chore(deps) Update Rust crate tokio to 1.4 (#1383 )
Co-authored-by: Renovate Bot <bot@renovateapp.com>
* fix(cli): prmpt user before install deps in init (#1381 )
Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
* chore(deps) Update dependency rollup to v2.42.4 (#1386 )
Co-authored-by: Renovate Bot <bot@renovateapp.com>
* refactor(cli): rewrite init command in Rust (#1382 )
Co-authored-by: nothingismagick <denjell@mailscript.com>
* refactor(bundler): specific settings on dedicated structs, update README (#1380 )
* replace lazy_static uses with once_cell (#1391 )
* chore(deps) Update Tauri JS CLI (#1385 )
Co-authored-by: Renovate Bot <bot@renovateapp.com>
* refactor(cli): rewrite info in Rust (#1389 )
* refactor(core): remove async from app hooks, add InvokeMessage type (#1392 )
* fix(cli): disable custom-protocol feature on dev command (#1393 )
* Fix extremely slow dev builds caused by embedding + compressing assets at compile time (#1395 )
* feat(bundler) code signing (#473 )
Co-authored-by: Rajiv Shah <rajivshah1@icloud.com>
Co-authored-by: David Lemarier <david@lemarier.ca>
* feat(cli): run beforeDev and beforeBuild in a shell, closes #1295 (#1399 )
* update to sharp 0.28.0 for cpu arm (m1) (#1404 )
Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
* feat(cli): propagate args passed after `dev --`, closes #1406 (#1407 )
* refactor(api): use secure RNG, closes #1356 (#1398 )
* chore(deps) Update Tauri API Definitions (#1411 )
Co-authored-by: Renovate Bot <bot@renovateapp.com>
* chore(deps) Update Rust crate rfd to 0.2.2 (#1410 )
Co-authored-by: Renovate Bot <bot@renovateapp.com>
* chore(deps) Update Tauri CLI (#1413 )
Co-authored-by: Renovate Bot <bot@renovateapp.com>
* chore(deps) Update Tauri Bundler (#1412 )
Co-authored-by: Renovate Bot <bot@renovateapp.com>
* refactor(core): rewrite shell execute API, closes #1229 (#1408 )
* chore(deps) Update dependency @rollup/plugin-commonjs to v18 (#1415 )
Co-authored-by: Renovate Bot <bot@renovateapp.com>
* chore(deps) Update Tauri JS CLI (#1414 )
Co-authored-by: Renovate Bot <bot@renovateapp.com>
* fix: asset resolution on debug mode
* fix(core): ignore query string on custom protocol asset resolver (#1420 )
* wire up existing and adjust recipe configuration
* merge dev
* fix default app name
* clean up vanillajs and proper pass args
* use scaffe to copy the react templates
* fix(api): remove cjs, rename .mjs to .js
* chore: tauri.js dead code elim (#1422 )
* remove templates, only used it CTA
* help command is empty, remove
* delete files that aren't imported / required
* set files array to ignore src and config files
* remove unused deps
* add arch notes for future ref
* change file
* allow specifying a binary
* resolve last bits to reach scaffe
* adjust vanilla js template dir path
Co-authored-by: Sanket Chaudhari <chaudharisanket2000@gmail.com>
* fix up cra scaffolding
* remove none and rely on vanillajs
* log shell commands
* remove no recipe question branch
* shift react template for better overwrite copying
* update deps
* simple readme
* implement dep manager
* pretty
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Noah Klayman <noahklayman@gmail.com>
Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
Co-authored-by: Lucas Fernandes Nogueira <lucasfernandesnog@gmail.com>
Co-authored-by: chip <chip@chip.sh>
Co-authored-by: Gabe Cohen <gcc3.14@gmail.com>
Co-authored-by: Ngo Iok Ui (Wu Yu Wei) <wusyong9104@gmail.com>
Co-authored-by: Alve Larsson <larsalvelarsson@gmail.com>
Co-authored-by: Amr Bashir <48618675+amrbashir@users.noreply.github.com>
Co-authored-by: Kid <44045911+kidonng@users.noreply.github.com>
Co-authored-by: david <david@lemarier.ca>
Co-authored-by: nothingismagick <denjell@mailscript.com>
Co-authored-by: William <william@venner.io>
Co-authored-by: Rajiv Shah <rajivshah1@icloud.com>
Co-authored-by: Mehdi Rezaei <mehdiraized@gmail.com>
Co-authored-by: Sanket Chaudhari <chaudharisanket2000@gmail.com>
2021-04-11 04:22:07 -05:00
Fernando Chu
4a996fd3b9
Add space after commas in command list ( #1307 )
2021-02-28 21:49:21 -03:00
Noah Klayman
b29c0685bc
refactor(tauri.js): remove create command ( #1265 )
...
also fixes window title not setting properly because window config is an array
2021-02-21 11:26:56 -03:00
Lucas Fernandes Nogueira
3e8abe3764
feat(cli) rewrite the core CLI in Rust ( #851 )
2021-01-30 12:15:47 -03:00
Zak Patterson
59e0de7650
Fix cli no prompt for app-name cli arg ( #980 )
...
* Fix cli no prompt for app-name cli arg
* Add change file
2020-08-19 14:37:46 -05:00
Jacob Bolda
6a21965ff3
chore: add prettier for js formatting ( #937 )
...
* chore: add prettier for js/ts formatting
* fix lint-staged to object
* test commit
* format all
* lock file bump
* eslint extends prettier
This will let us skip rules in eslint that prettier can control. Prettier for styles, eslint for code errors.
* add prettier config
* roll back to what we had with eslint settings
* skip mutation observer
* add prettier typescript eslint
* run prettier in lint workflow
* format:check script
* turn off space before function in eslint
it is fighting with prettier
* fix dir in workflow
* remove semis
* add api to eslint
* shift eslint ignore comment after prettier format
* ignore errors that currently exist
* build:typevalidators
* replace was broken on typevalidator build
* try pushing up error
* format
* try removing working dir from eslint workflow
* try node 12
* fix indent in action
* bump eslint
* fix supposeded error and try another
* try breaking eslint
* try building in action
* adjust action paths again
* need dot
* remove build
* fix(tauri.js/eslint): escape glob *
* fix(tauri.js): ignore lint error
* Create prettier-taurijs.md
Co-authored-by: Noah Klayman <noahklayman@gmail.com>
2020-08-18 21:36:46 -05:00
Zak Patterson
43a8c4d2bc
fix #920 : Create recipes ( #930 )
...
* Create recipes
A recipe consists of:
* Name
* List of NPM dependencies required (dev and production)
* Sub-commands needed
For example, the react recipes run create-react-app to set
up the UI. Future recipes can do anything, they could pull
down a sample UI, clone a repository, download a static HTML
file, initialize another environment that compiles to JS/wasm etc.
The devPath and dist folders nomally configured by the init command
are overridden by the recipe definition.
* Fix no recipe prompts
* Fix linter unsafe assignment error
* Add `beforeXCommand` settings to recipes
This is so good, it makes it possible to just run:
> yarn init
> yarn add tauri
> yarn tauri init # with recipe selected, adds app ui
> yarn tauri dev # starts app ui dev server and rust component
* Rename init to create
Also improve so it exports a function that can be passed
arguments, instead of just reading directly from command line
* Add new tauri init command aliased to create
* Update changes file
* Remove unneeded import
* Add customized splash page for react recipes
* Remove unneeded recipe buildconfig property
* Add no-browser setting to start react dev server
* Revert "Add no-browser setting to start react dev server"
This reverts commit 22bcf3ac5a
.
2020-08-17 12:07:44 -05:00
Zak Patterson
e1fd626453
Fix typos referring to CLI args in init command ( #921 )
...
* Fix typo referring to dev path cli arg
The devPath config variable is set to a non-existent command line arg
`argv.p`, it should be `argv.P`
So if the devPath is set via a command line argument, it defaults
to the default value:
```
/home/projects/example2
⟩ yarn tauri init -P http://THISDOESNOTHING
yarn run v1.22.4
$ /home/projects/example2/node_modules/.bin/tauri init -P http://THISDOESNOTHING
[tauri]: running init
? What is your app name? example2
? What should the window title be? Tauri App
? Where are your web assets (HTML/CSS/JS) located, relative to the "<current dir>/src-tauri" folder that will be created? ../dist
dependency:manager Installing missing dependencies... +0ms
dependency:cargo-commands "tauri-bundler" is already installed +18ms
app:spawn [sync] Running "cargo generate-lockfile" +2ms
Updating crates.io index
dependency:crates "tauri" is already installed +941ms
dependency:npm-packages "tauri" is already installed +1s
Done in 6.35s.
/home/projects/example2
⟩ cat ./src-tauri/tauri.conf.json | grep THISDOESNOTHING
/home/projects/example2
```
* Fix similar typo affecting the window title param
* Add change file
2020-08-03 20:38:15 -05:00
Noah Klayman
da6580ff7d
feat(tauri.js/init): set appName in api instead of bin ( #897 )
2020-07-28 10:05:49 -03:00
Noah Klayman
78add1e79e
feat(bundler): hide output from shell scripts unless --verbose is passed ( fixes #888 ) ( #893 )
...
* feat(bundler): hide output from bundle_appimage.sh
* fix(bundler/appimage): log file name instead of full path
to match behavior of .deb build
* feat(bundler): hide shell script output unless --verbose is passed
* feat(bundler): add notice about --verbose on error
* fix(bundler): windows fails to compile
* fix(bundler) do not warn about verbosity if verbose is set
* chore(changes) add change file
Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
2020-07-26 13:56:10 -03:00
Lucas Fernandes Nogueira
da99f632f0
fix(tauri.js) app name as kebab case ( #856 )
...
* fix(tauri.js) init regression, app name as kebab case
* chore(changes) update changefile
2020-07-19 09:57:28 -03:00
Lucas Fernandes Nogueira
0591f1f945
feat(tauri.js) run deps install
after tauri init
( #842 )
...
* feat(tauri.js) run `deps install` after `tauri init`
* fix(tauri.js) await on installDependencies (tauri init)
2020-07-15 21:56:31 -03:00
Lucas Fernandes Nogueira
f0ce94fc8e
feat(tauri.js) print outdated deps information on tauri info
( #841 )
2020-07-15 20:39:28 -03:00
Lucas Fernandes Nogueira
77282c1e51
feat(tauri.js) add dependency manager command ( #829 )
2020-07-15 18:01:37 -03:00
Noah Klayman
ee8724b90a
feat(tauri.js/init): prompt for default values (fix #422/#162) ( #472 )
...
* feat(tauri.js/init): prompt for default values
* fix(tauri.js/init): update help wording
* feat(tauri.js) prompt for appName on init
* feat(tauri.js) add --ci option
* chore(changes) add changefile
Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
2020-07-10 13:19:41 -03:00
Lucas Fernandes Nogueira
16d39b3c0d
fix(tauri.js) tauri icon
with --icon
flag, closes #750 ( #774 )
2020-07-09 10:26:26 -03:00
Lucas Fernandes Nogueira
7e2854007a
test(e2e) add FS API tests ( #521 )
...
* fix(tauri.js) update e2e test
* test(e2e) add FS API tests
* fix(tauri.js) lint errors
* fix(tauri) clippy checks
* fix(test) use " instead of '
2020-03-29 23:41:45 -03:00
Lucas Fernandes Nogueira
a084ccf756
feat(tauri.js) keep running on failures & watch tauri lib on con… ( #497 )
2020-03-08 13:39:29 -03:00
Lucas Fernandes Nogueira
ba2f4b55fd
feat(tauri.js) expose target arg to tauri build
( #490 )
2020-03-06 12:22:38 -03:00
Lucas Fernandes Nogueira
3ce95d2760
feat(tauri.js) add tauri info
command ( #236 )
...
* feat(tauri.js) add `tauri info` command
* fix(bug-report): add command information
- thanks @nklayman for the reminder
* fix(tauri-info): add cargo version
* feat(tauri.js) add cargo.toml and tauri.conf.json info
Co-authored-by: nothingismagick <drthompsonsmagickindustries@gmail.com>
2019-12-27 20:37:21 -03:00
Lucas Fernandes Nogueira
7845ec0e7a
refactor(tauri.js) keep folder structure on /dist ( #235 )
2019-12-27 20:34:24 -03:00
Lucas Fernandes Nogueira
a4e229ca10
feat(tauri) use config as JSON ( #214 )
...
* feat(tauri.js): move to typescript
* fix(tauri.js): properly export api as commonjs
* feat(tauri.js): convert tauricon to typescript
* fix(tauri.js/tauricon): type error
* chore(tauri.js/package): update yarn.lock
* chore(tauri.js/package): add build/pretest scripts
* refactor(tauri.js/template): remove duplicate types
* feat(tauri.js): use tauri.conf.json instead of .js
* feat(tauri) read config using tauri.conf.json
* fix(tauri) read devPath index.html from distDir
* chore(examples) move to conf.json
* chore(tauri.js) remove todo
* fix(ci) TAURI_DIR env variable
* fix(examples) move svelte-app config to tauri.conf.json
* fix(examples): line endings tauri.conf.json
* addition to previous commit
* fix(test): EOF in tauri.conf.json
Co-authored-by: Noah Klayman <noahklayman@gmail.com>
Co-authored-by: nothingismagick <drthompsonsmagickindustries@gmail.com>
2019-12-26 15:24:36 +01:00
Lucas Fernandes Gonçalves Nogueira
c2b3ac4b05
feat(tauri.js) add --version option
2019-12-24 09:47:15 -03:00
Noah Klayman
fab788b4bd
[needs review] Convert tauri.js to typescript ( #203 )
...
* feat(tauri.js): move to typescript
* fix(tauri.js): properly export api as commonjs
* feat(tauri.js): convert tauricon to typescript
* fix(tauri.js/tauricon): type error
* chore(tauri.js/package): update yarn.lock
* chore(tauri.js/package): add build/pretest scripts
* refactor(tauri.js/template): remove duplicate types
* chore(tauri.js) lint-fix
* fix(tauri.js) build tauricon.ts
* chore(tauri.js) remove unused code
Co-authored-by: nothingismagick <drthompsonsmagickindustries@gmail.com>
Co-authored-by: Lucas Fernandes Nogueira <lucasfernandesnog@gmail.com>
2019-12-24 09:40:03 -03:00
Noah Klayman
de68a86c8c
Refactor tauri.js to move command code outside of bin files ( #140 )
...
* refactor(tauri.js): move command code into helpers
* reafactor(tauri.js): move command helpers to api dir
* fix(tauri.js/tests): import tauricon from proper dir
* fix(tauri.js/tests): add api dir to moduleNameMapper
2019-12-10 21:44:49 +01:00
nothingismagick
435ed1ab8f
chore/updates ( #150 )
...
* chore(deps:examples): update
* chore(update:tauri): serde_json
Closes #146
2019-12-10 20:10:45 +01:00
Lucas
621b86ece4
feat(js-cli) eslint work by nothingismagick
2019-12-04 19:35:39 -03:00
Lucas Fernandes Nogueira
38b8da497c
fix(js-cli) tauri init broken when not using the local version #… ( #136 )
2019-12-04 17:49:14 -03:00
Daniel Thompson-Yvetot
55c101d9e6
fix(tauri.js:init): default to CWD
2019-12-01 23:30:59 +01:00
nothingismagick
e58110afd6
chore/upgrades node ( #115 )
...
* chore(checkin): cargo.lock
* feat(upgrades): update and try to fix node tests
* fix(@iarna): replace with @tauri-apps
* chore(deps): upgrade sharp
* feat(env): add env var that works on mac
* feat(deps): upgrade, cleanup and update code
* fix(workflow): env vars
* chore(deps): upgrades
* fix(.gitignore)
2019-11-30 15:39:13 -03:00
nothingismagick
6dcccf5a8e
feature/env ( #80 )
...
* fix(js-cli) resolve correct paths on `tauri init`
* feat(js-cli) inject src-tauri/ as lodash template
* fix(js-cli) entry paths
* feat(js-cli) rename APP_URL to devPath and allow .html values
* feat(js-cli) reload config when `tauri.conf.js` change detected
* feat(node): update to testing
* feat(template): fix phf, remove updater
* feat(samples): add vanillajs
* fix(templates): objectify tauri
Closes #99 .
* fix(examples): update cargo.toml
- to match signature
* chore(tauri): version update
* feat(workflows): fix dirs, add tokens
* fix(config): more robust env checking
* feat(fixture): start a testing fixture for tauri
* fix(workflow): use fixture for ENV
* fix(examples:vanilla): remove updater
* addition to previous commit re. fixture
* fix(config.rs): fix the unfix
* feat(js-cli) use the new cargo-tauri-cli
* chore(template) cleanup src-tauri/Cargo.toml
* chore(js-cli) toml features cleanup
* chore(js-cli) move edge to config > tauri
* fix(js-cli) appPaths resolve() instead of join()
2019-11-30 08:48:39 -03:00
nothingismagick
39ce652329
chore(monorepo): cleanup ( #73 )
...
* chore(monorepo): cleanup
* fix(tauri-cli): build errors
* fix(tauri:build.rs): dont' panic if env missing
* fix(finalize): setup for crates
* npm publish on release
actual publish currently disabled
* cargo publish on release
actual publish currently disabled
* update PR tests for new folder structure
* doesn't like the period on job name?
* fail on cargo warnings
otherwise we would assume green arrow is all good
* green on warnings for now
2019-11-27 19:26:24 -03:00