Commit Graph

96 Commits

Author SHA1 Message Date
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
75eaaf0132 refactor: move schema validation to the Rust CLI (#1262) 2021-02-20 11:36:17 -03:00
Lucas Fernandes Nogueira
641374b153 feat(core): window creation at runtime (#1249) 2021-02-17 11:15:04 -03:00
Lucas Fernandes Nogueira
772d83e8fd fix(core): cli argument parser API not exiting on failure, update to latest (#1234) 2021-02-14 11:14:06 -03:00
Lucas Fernandes Nogueira
07208dff6c feat(core): add mult-window support (#1217) 2021-02-11 21:50:39 -03:00
Lucas Fernandes Nogueira
84d7cdae63 refactor(core): remove no-server and its APIs (#1215) 2021-02-11 02:33:18 -03:00
Lucas Fernandes Nogueira
df32e18be3 feat(repo): add setup scripts (#1189) 2021-02-10 02:24:38 -03:00
chip
e02c9419cb refactor(tauri): support for building without environmental variables (#850)
Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
2021-02-09 15:22:04 -03:00
Lucas Fernandes Nogueira
555d667f45 feat(examples) add example using the TS API module (rollup) (#738) 2021-02-04 21:12:03 -03:00
Lucas Fernandes Nogueira
3e8abe3764 feat(cli) rewrite the core CLI in Rust (#851) 2021-01-30 12:15:47 -03:00
Lucas Fernandes Nogueira
8da495f78c fix(tauri.js) deps cmd usage when npm is not installed, closes #1037 (#1053) 2020-12-05 00:17:57 -03:00
Christian W. Zuckschwerdt
4a74bca390 fix: getNpmLatestVersion, getNpmPackageVersion without npm (#1088)
Co-authored-by: Lucas Fernandes Nogueira <lucas@tauri.studio>
2020-12-04 23:00:15 -03:00
renovate[bot]
8388553670 chore(deps) Update Tauri JS CLI (#1063)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
2020-12-04 22:59:56 -03: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
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 Nogueira
16f1338fe5 chore(tauri.js) use --agressive on cargo update 2020-07-19 23:47:14 -03:00
Lucas Fernandes Nogueira
a6bb3b5905 refactor(tauri) rename whitelist to allowlist, ref #645 (#858)
* refactor(tauri) rename `whitelist` to `allowlist`, ref #645

* chore(changes) add changefile
2020-07-19 10:05:23 -03:00
Lucas Fernandes Nogueira
45d3de6d97 fix(tauri.js) do not require a package.json (#855) 2020-07-19 09:57:09 -03:00
Ngo Iok Ui (Wu Yu Wei)
cd5b401707 feature: import official webview rust binding (#846)
Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
2020-07-18 08:04:22 -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
17800571fe fix(tauri.js) exit dev when running as admin, fixes #781 (#839) 2020-07-15 20:05:07 -03:00
Lucas Fernandes Nogueira
77282c1e51 feat(tauri.js) add dependency manager command (#829) 2020-07-15 18:01:37 -03:00
Lucas Fernandes Nogueira
56f819d2ef feat(tauri) allow plugin config on tauri.conf.json (#824) 2020-07-13 18:18:06 -03:00
Lucas Fernandes Nogueira
0d6235e427 feat(tauri.js) add microsoft edge version to the info output (#810) 2020-07-12 09:41:20 -03:00
Lucas Fernandes Nogueira
fedee835e3 fix(tauri.js) windows Edge blank screen on tauri dev (#808) 2020-07-11 07:52:34 -03:00
Lucas Fernandes Nogueira
f208a68e40 fix(tauri.js) do not swallow init errors, fix conf inject (#802)
* fix(tauri.js) do not swallow init errors, fix conf inject

* fix(tauri.js) tests
2020-07-10 11:41:31 -03:00
Lucas Fernandes Nogueira
a26cffc575 fix(tauri.js) beforeDevCommand race condition (#801)
* fix(tauri.js) beforeDevCommand race condition

* chore(tauri.js) fix lint, change dev wait time to 30s
2020-07-10 16:17:47 +02:00
chip
e7b495133f fix(tauri.js) revert nullish coalesce addition (#799) 2020-07-10 08:27:03 -03:00
renovate[bot]
8dae73632f chore(deps) Update Tauri JS CLI (major) (#762)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
2020-07-09 22:05:56 -03:00
Lucas Fernandes Nogueira
6a179997b4 fix(tauri.js) default config is invalid closes #777 (#785) 2020-07-09 10:40:31 -03:00
Lucas Fernandes Nogueira
26635845bf feat(tauri) use port as number or the "random" string (#784) 2020-07-09 10:20:25 -03:00
Ken Chong
02df2bfea5 to enable custom port (#782)
* to enable custom port

current validator doesn't enable port config, with this patch would have allow the config, however this doesn't include the runner changes... runner might need changes too.

* Update config.schema.json

* Update config.validator.ts
2020-07-09 14:06:04 +02:00
Lucas Fernandes Nogueira
960ad58c12 feat(tauri.js) validate tauri.conf.json schema on runtime (#756) 2020-07-07 15:42:15 -03:00
Lucas Fernandes Nogueira
c3b5c1fdf8 Fix/includedir (#751)
* fix(tauri) assets embedding regression

* fix(tauri) fix & optimize embedded assets
2020-07-05 01:45:07 -03:00
Lucas Fernandes Nogueira
6d23b0673e docs(rust) add rustdocs to the crates (#723) 2020-06-28 10:34:43 -03:00
nothingismagick
2681ad361b refactor(tauri.js) rewrite API module in TypeScript, closes #679 #435 (#703)
Co-authored-by: Quentin Goinaud <armaldio@gmail.com>
Co-authored-by: Lucas Fernandes Nogueira <lucasfernandesnog@gmail.com>
Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
2020-06-27 12:20:00 -03:00
Lucas Fernandes Nogueira
ce8a7b8f6a feat(tauri.js) automatically detect current tauri version for template (#697) 2020-06-18 13:53:41 -03:00
Lucas Fernandes Nogueira
d299a2b94d feat(tauri) CLI args additions (positional args, bool as value for args with takesValue=false) (#695) 2020-06-18 13:01:47 -03:00
Lucas Nogueira
6cc5fc4370 chore(tauri.js) type definitions for Config with proper optional defs 2020-06-15 10:53:29 -03:00
Lucas Fernandes Nogueira
14a1ddfe18 feat(tauri) add app CLI interface config (#670) 2020-06-14 23:36:35 -03:00
chip
577a044bfa fix(cli): tell user of missing lockfile or manifest during info (#675) 2020-06-14 19:26:38 -03:00
nothingismagick
6ac410e04d fix(cli): info get tauri (#674)
* fix(cli): info get tauri

* fix(cli): cargo types

* fix(cli): proper types and detection

* fix(cli): remove unneeded interface
2020-06-14 12:28:49 -03:00
Lucas Fernandes Nogueira
9e7b05dc21 fix(tauri.js) regression on hot reload when Rust doesn't compile (#673) 2020-06-14 08:24:22 -03:00
Lucas Fernandes Nogueira
5e8547be26 fix(tauri.js) kill beforeDevProcess on shutdown (#671) 2020-06-13 20:11:22 -03:00
Lucas Fernandes Nogueira
4975497dad fix(tauri.js) properly reflect tauri.conf changes on tauri dev (#672) 2020-06-13 20:11:13 -03:00
Lucas Fernandes Nogueira
3953662b82 fix(tauri) use web-view fork to fix windows build on SDK 10.0.19041.1 (#657) 2020-06-11 12:12:58 -03:00
Lucas Fernandes Nogueira
0f55a8f4f7 fix(tauri) dev crashes when server not running, path not found, multiple app instances on HMR (#654) 2020-06-11 12:10:42 -03:00
chip
030f290e1b use cargo lockfile for tauri dependency during tauri info. close #610 (#655) 2020-06-11 11:19:57 -03:00