Commit Graph

1139 Commits

Author SHA1 Message Date
Jacob Bolda
03b9cd1d58
chore: cargo audit as dry run to not fail publish (#1009)
If they're isn't a present fix, it doesn't make sense to fail a publish.
2020-09-02 12:40:00 -05:00
github-actions[bot]
b4c6142b39
apply version updates (#999)
Co-authored-by: jbolda <me@jacobbolda.com>
2020-09-02 12:26:08 -05:00
Cass
7a788fdcee
fix: improve checking for Rez (fix #994) (#995)
* fix: improve checking for Rez (fix #994)

Check for Rez in Xcode.app and in command line tools, and error if neither is installed.

* Remove hardcoded paths in favor of xcode-select --print-path

This reverts commit 54784a027c.

I'm not sure that this string substition will work how I want it to.

* Finally...fix issue finding xcode-select tools

* Add tip asking to run xcode-select --install

* Trim tailing whitespace

* add changefile
2020-08-28 01:29:11 -05:00
ho-ho-ho
37bcf5fea1
fix(bundler) missing newline in deb desktop file generation (fix: #899, #925) (#998)
* fix missing newline in desktop file generation

* add change file for PR #998
2020-08-27 15:48:42 -05:00
Jacob Bolda
3005204a31
chore: stray comma somehows (#985) 2020-08-21 08:21:43 -05:00
Jacob Bolda
2a9ea029b6
chore: package .crate as part of publish step (#984)
It is very strict about checking that the deps version specified is published. That means we need to have inter-repo deps already published before we hit this step, and therefore cannot do it as part of the prepublish step.
2020-08-21 08:14:34 -05:00
github-actions[bot]
5de4c8655d
Apply Version Updates From Current Changes (#931)
* apply version updates

* fix changelog format dealing with bullet points

Co-authored-by: jbolda <me@jacobbolda.com>
2020-08-21 07:48:20 -05:00
Jacob Bolda
06dd75b68a
chore: bump all js/rust deps (#983)
* bump tauri.js deps

* bump tauri core deps

* bump tauri-api deps

* bump tauri-bundler deps

* change file
2020-08-20 16:03:46 -05: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
Oleg Shilov
f98d4b9076
fix(tauri.js): fix return type for readBinaryFile api method (#927)
* fix(tauri.js): fix return type for `readBinaryFile` api method

* chore(tauri.js): add changelog
2020-08-07 19:56:29 -05:00
Oleg Shilov
0a5bac1dd6
fix(tauri.js): fix typings for open and save dialogs (#926)
* fix(tauri.js): fix typings for open and save dialogs

add JSDoc types;

* chore(tauri.js): add changelog
2020-08-07 19:54:17 -05:00
github-actions[bot]
2b3ef7bcfb
Apply Version Updates From Current Changes (#915)
Co-authored-by: jbolda <me@jacobbolda.com>
2020-08-03 22:45:11 -03: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
Lance Erickson
df70ca5196
Fix #912 multibyte character breaks message (#914)
* Fix #912 multibyte character breaks message

* Add change file

* Fix clippy
2020-08-01 18:34:50 -05:00
github-actions[bot]
22b085ecfd
Apply Version Updates From Current Changes (#877)
Co-authored-by: lucasfernog <lucas@tauri.studio>
2020-07-26 15:13:04 -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
63b9c64572
fix(bundler) properly detect the target directory (#895) 2020-07-25 17:04:45 -03:00
chip
b96b1fb6b8
inject css with template string to allow for line breaks (#894)
* inject css with template string to allow for line breaks

alternative solution would to be implement a struct `JsStringLiteral`
with `fmt::Display` that escapes all forbidden codepoints from the spec
https://www.ecma-international.org/ecma-262/#sec-literals-string-literals

template string literal seems fine as all browsers that tauri supports have
had support for them for the past 3-4+ years

Signed-off-by: Chip Reed <chip@chip.sh>

* chore(changes) adjust change file

Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
2020-07-25 15:52:52 -03:00
Lucas Fernandes Nogueira
a00ac023ee
fix(bundler) webview dll not being bundled, fixes #875 (#889) 2020-07-24 08:51:12 -03:00
Lucas Fernandes Nogueira
4abd12c2a4
fix(tauri) webview initialization on windows, fixes #879 (#885) 2020-07-23 08:38:40 -03:00
chip
e3e2e39208
fix(tauri) ensure css content is loaded inside a string (#884)
Signed-off-by: Chip Reed <chip@chip.sh>
2020-07-22 18:45:59 -03:00
Jacob Bolda
daa89213de
chore: publish sequence finishing touches (#873) 2020-07-21 14:35:43 -03:00
Lucas Fernandes Nogueira
ad717c6f33
chore(tauri) pin tauri-api dep version (#872) 2020-07-21 14:34:31 -03:00
github-actions[bot]
19af83c7e9
Apply Version Updates From Current Changes (#821)
Co-authored-by: lucasfernog <lucas@tauri.studio>
2020-07-20 16:39:42 -03:00
Jacob Bolda
d09180fd89
chore: covector tweaks for smoothness (#865)
* reorder packages that core is published last

* general ledger comment, not just npm

* we do want to create releases

* leading ! does not seem to negate

* dump a bunch of info to debug
2020-07-19 23:34:16 -05:00
Lucas Nogueira
dac0ae976e
chore(changes) add tauri-api to JS dialogs changefile 2020-07-19 23:50:59 -03:00
Jacob Bolda
2d721324a0
chore: implement covector publish (#845)
* add covector to root

* add workflow to covector config

* bump covector

* add webkit install on publish

* create workflow to version and publish

* remove workflows no longer needed

* add repo info to root package.json

* add early exits based on new output

* switch to dry run version of publish commands

* latest branch is being removed in this PR

* add summary component around yarn audit
2020-07-19 15:33:12 -05: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
cbd14c3077
fix(tauri.js) writeFile and writeBinaryFile API (#857) 2020-07-19 09:57:40 -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
45d3de6d97
fix(tauri.js) do not require a package.json (#855) 2020-07-19 09:57:09 -03:00
Lucas Fernandes Nogueira
0245833bb5
feat(tauri) make window.alert and window.confirm available, fix #848 (#854) 2020-07-18 18:13:57 -03:00
Lucas Fernandes Nogueira
42a8bb0e09
fix(api) promisified not cleaning up transformed callbacks, fixes #852 (#853) 2020-07-18 17:05:32 -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
dac1db3983
fix(tauri) notification body optional, requestPermission() regression, closes #793 (#844)
* fix(tauri) notification body optional, title required

* fix(tauri) regression on requestPermission()
2020-07-16 19:17:41 -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
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 Nogueira
bd0118f160
fix(changes) covector status pass 2020-07-14 11:54:52 -03:00
Lucas Nogueira
53e8dc1880
fix(bundler) support AppImage bundling on containers #822 2020-07-13 18:49:59 -03:00
Lucas Fernandes Nogueira
9130f1b1a4
refactor(bundler) standard output names and path (#823) 2020-07-13 18:41:22 -03:00
Lucas Fernandes Nogueira
78afee9725
feat(tauri) add plugin system for rust (#494)
* feat(tauri) add extension system

* chore(tauri) rename extension to plugin

* chore(tauri) add plugin docs

* chore(tauri) expose WebView type

* chore(changes) add changefile

* fix(tauri) clippy warns

* fix(changes) format

* fix(changes) typo
2020-07-12 19:36:11 -03:00
chip
660a2d87d6
feat(tauri.js) move exported api types into api modules (fix #807) (#809) 2020-07-12 19:34:44 -03:00
github-actions[bot]
3417bf5fbe
Apply Version Updates From Current Changes (#811)
Co-authored-by: lucasfernog <lucas@tauri.studio>
2020-07-12 10:15:48 -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
jbolda
c628e60c2c
apply version updates
Update cli/tauri.js/CHANGELOG.md

Update cli/tauri.js/CHANGELOG.md

Update cli/tauri.js/CHANGELOG.md

Update cli/tauri.js/CHANGELOG.md
2020-07-10 13:10:10 -05:00
Jacob Bolda
74b2cb20e6
feat: bump covector action to v0 2020-07-10 12:29:11 -05: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
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
Lucas Nogueira
f340b2914d
fix(tauri) addition to the previous commit 2020-07-10 12:07:48 -03:00
github-actions[bot]
70fdc6f699
Apply Version Updates From Current Changes (#792)
Co-authored-by: lucasfernog <lucas@tauri.studio>
2020-07-09 22:12:46 -03:00
Lucas Fernandes Nogueira
0967b4291e
fix(windows) properly run the LoopbackExempt command on dev/build/msi, closes #788 (#794) 2020-07-09 21:41:18 -03:00
Rajiv Shah
466742f542
fix(tauri.js): Bump lodash to 4.17.19 (#764) 2020-07-09 21:14:18 -03:00
Lucas Fernandes Nogueira
aad60f59c7
fix(tauri) ignore just the distDir's root index.html (#791) 2020-07-09 13:08:20 -03:00
github-actions[bot]
c3e5a18f43
Apply Version Updates From Current Changes (#786)
* apply version updates

* Update tauri/CHANGELOG.md

Co-authored-by: jbolda <me@jacobbolda.com>
2020-07-09 09:11:16 -05:00
Lucas Fernandes Nogueira
18452edd98
fix(tauri) properly rebuild when tauri conf changes (#787) 2020-07-09 10:52:47 -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
16d39b3c0d
fix(tauri.js) tauri icon with --icon flag, closes #750 (#774) 2020-07-09 10:26:26 -03:00
github-actions[bot]
460ac25269
Apply Version Updates From Current Changes (#772)
Co-authored-by: lucasfernog <lucas@tauri.studio>
2020-07-08 18:46:35 -03:00
Lucas Fernandes Nogueira
39d264db92
fix(bundler) dmg unbounded variable issue (#770) 2020-07-08 18:45:16 -03:00
github-actions[bot]
fed2641bb7
Apply Version Updates From Current Changes (#758)
Co-authored-by: lucasfernog <lucas@tauri.studio>
2020-07-08 14:06:40 -03:00
Lucas Fernandes Nogueira
acd8ceb72c
fix(tauri-bundler) appimage script (#766) 2020-07-08 14:05:34 -03:00
Lucas Fernandes Nogueira
960ad58c12
feat(tauri.js) validate tauri.conf.json schema on runtime (#756) 2020-07-07 15:42:15 -03:00
github-actions[bot]
fa720d5016
Apply Version Updates From Current Changes (#748)
Co-authored-by: lucasfernog <lucas@tauri.studio>
2020-07-06 10:37:03 -03:00
Lucas Fernandes Nogueira
6301df660a
fix(tauri.js) transpile TS API and fix cjs/esm export (#752) 2020-07-06 10:16:01 -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 Nogueira
e8ecd3ce3f
chore(changes) add bundler log improvement change file 2020-07-04 16:53:14 -03:00
github-actions[bot]
d8af70fa95
apply version updates (#721)
Co-authored-by: jbolda <me@jacobbolda.com>
2020-07-03 21:25:48 +02:00
Lucas Fernandes Nogueira
055d777a42
feat(bundler) bundle all binaries from the project (#726) 2020-06-30 19:06:39 -03:00
Lucas Fernandes Nogueira
6b097345ed
refactor(tauri) execute_promise String/Serialize management (#724) 2020-06-29 15:39:39 -03:00
Lucas Fernandes Nogueira
dd1bffe91e
refactor(api) rewrite readDir API (#722) 2020-06-27 15:40:46 -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
Rajiv Shah
467022f454
fix(bundler): Check if mksquashfs is installed before bundling AppImage, fix: #706 (#717) 2020-06-26 15:09:09 -03:00
github-actions[bot]
458becce46
Apply Version Updates From Current Changes (#715)
Co-authored-by: lucasfernog <lucas@tauri.studio>
2020-06-24 22:28:41 -03:00
Lucas Nogueira
f4a2bf994e
chore(changes) add changelog files 2020-06-24 22:12:16 -03:00
github-actions[bot]
414ea4b75d
Apply Version Updates From Current Changes (#678)
Co-authored-by: lucasfernog <lucas@tauri.studio>
2020-06-18 13:55:21 -03:00
Lucas Fernandes Nogueira
b04be6664e
fix(tauri) environment variables usage (#688) 2020-06-17 18:11:11 -03:00
Lucas Fernandes Nogueira
ea74c5cc01
fix(tauri) use appimagetool to build, finish script run, proper AppRun (#682) 2020-06-17 12:49:45 -03:00
Jacob Bolda
65e9c4fa40
feature: implement version change PR (#676)
* update readme with notes about character limits and designating bumps

* edit PR template to note addition of a change file

* add change file for #674

* add change file for #673

* add change file for #672

* add change file for #671

* add version action

* set version command in config

* add change file for #677

* add labels to PRs

* Update .changes/tauri-info-crash.md

Co-authored-by: Rajiv Shah <rajivshah1@icloud.com>

* Update .changes/HttpRequestBuilder-implementation.md

Co-authored-by: Rajiv Shah <rajivshah1@icloud.com>

* Update kill-beforeDevProcess-on-shutdown.md

* Update reflect-conf-changes.md

Co-authored-by: Rajiv Shah <rajivshah1@icloud.com>
Co-authored-by: Lucas Fernandes Nogueira <lucasfernandesnog@gmail.com>
2020-06-15 15:29:22 +02:00
Lucas Fernandes Nogueira
406dea79ed
feat(tauri) add Notifications API (#505) 2020-06-15 01:09:02 -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
Jacob Bolda
d475767a14
feature: implement covector (#668)
* feature: implement covector

* Create change-status-on-PR.yml

* Create readme.md

* action is nested

* trailing comma in config
2020-06-12 09:23:54 -05:00