Commit Graph

4818 Commits

Author SHA1 Message Date
Rajiv Shah
36aca61572 fix(tauri.js): Fix file paths in tauricon (#240) 2019-12-29 12:24:15 +01:00
Tensor-Programming
83b3fcb8c8
feat(Tauri-core) Add Quicktest to Tauri-API (#239)
* add simple bat and ps1 setup scripts

* add proptest for property testing

* add comments.

* add basic bash script (needs improvement)

* add basic quickcheck tests.

* add more comments.

* add simple is_dir test.

* add support for windows commands; remove returns

* remove print statement

* change prefixes to ch and add script

* fix prefixes.

* move qc script to .scripts folder.

* fix bash path.

* move scripts to root and add if checks.

* update bash script with more logic to check dirs.

* update bash script with more logic to check dirs.

* clean up and verify

* update gitignore for .vscode folder outside root

* add docs

* update docs

* format scripts
2019-12-29 00:45:13 -05:00
Lucas Nogueira
8b17300162
chore(examples) delete Tauri-Phaser git submodule 2019-12-28 17:01:35 -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
Rajiv Shah
4bce0df301 fix(tauri.js): Various fixes to tauricon.ts (#237)
* fix(tauri.js): Various fixes to tauricon.ts

- Remove unnecessary awaits
- Fix png2icons import
- Avoid swallowing errors in icon generation

* fix(test): test for correct error message

Co-authored-by: nothingismagick <drthompsonsmagickindustries@gmail.com>
2019-12-27 12:06:54 +01:00
Lucas Nogueira
5b15552ed5
chore(tauri) better error message for asset_response 2019-12-26 19:47:01 -03:00
Tensor-Programming
b92eee019c
[Refactor] Remove unwraps from tauri (#234)
* remove unwraps from tauri code

* refactor bundler and remove unwraps

* remove errors

* cleaup and add distinctions

* reword panic
2019-12-26 16:09:04 -05: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
Rajiv Shah
8489a9a520 fix(examples): Ensure examples use tauri from source instead of crates.io (#232) 2019-12-26 11:35:24 +01:00
Rajiv Shah
65f1bf96ef fix(bundler): Return nonzero exit code when errors occur (#233)
* fix(bundler): Return nonzero exit code when errors occur

* fix(bundler): Always exit with exit code 1 when calling print_error
2019-12-26 11:32:48 +01:00
BenoitRanque
f800daaf44 Fix: #228 invalid JSON (#229) 2019-12-25 18:24:24 +01:00
Jacob Bolda
ea26b0a1ec
chore(examples) add Svelte renovate group (#227) 2019-12-25 09:21:04 -06:00
Rajiv Shah
5cc031830f chore(tauri): Update Cargo.lock (#216) 2019-12-25 01:02:07 +01:00
Rajiv Shah
612d616112 feat(examples): Add Svelte app example (#218)
* feat(examples): Add Svelte app example

Created with `npx degit sveltejs/template svelte-app`

* feat(examples): Copy scripts to Svelte example

* chore(examples): Remove unnecessary dependency

* feature(examples): Run tauri init and copy tauri config

* feature(examples): Copy Readme from examples

* fix(examples): Move svelte to dependencies

* Revert "chore(examples): Remove unnecessary dependency"

This reverts commit 2465e753b2.

* chore(examples): Update Svelte example's Tauri config

* chore(examples): Enable Svelte app smoke tests
2019-12-25 00:13:21 +01:00
Rajiv Shah
afb6386204 chore(tauri.js): Add prepare script (#217) 2019-12-24 18:32:44 -03:00
BenoitRanque
75f032ae52 Make yarn build consistent across examples (#215)
Document changes made in #200
2019-12-24 15:23:16 -06:00
Tensor-Programming
078ae1dfda
[Feature/Bug(#133)] add icon to windows Exe and MSI (#211)
* add icon to msi

* remove print

* make attohttpc windows only

* make attohttpc error windows only

* copy icon files to resource folder in output.

* add ico to template

* remove print

* remove duplicate

* add uninstaller to wix

* fix typos

* fix program flow

* add windows icon logic to template.

* update serde, phf and change includedir to tauri

* update next.js with new tauri setup

* update monolith

* remove unnessecary deps

* remove updater.rs and deps

* update react examples

* update vue example

* Revert "update vue example"

This reverts commit a5d58f55b4.

* Revert "update react examples"

This reverts commit cce215f97e.

* Revert "remove updater.rs and deps"

This reverts commit 8d422294f4.

* Revert "remove unnessecary deps"

This reverts commit 30e023f383.

* Revert "update monolith"

This reverts commit fac097f51a.

* Revert "update next.js with new tauri setup"

This reverts commit caf5f198ea.

* revert smoke-test changes

* revert smoke-test changes

* fix conflicts

* fix conflicts
2019-12-24 14:33:41 -05:00
Lucas Fernandes Gonçalves Nogueira
7dc2036095 test(tauri.js) add tests for --version option 2019-12-24 09:54:04 -03: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
Tensor-Programming
95808a5d53
add cfg_attr for windows cmd closed on prod (#210) 2019-12-23 14:52:17 -05:00
nothingismagick
92b71cc173 Update Cargo.toml to allow tests to build (#208) 2019-12-23 16:30:21 -03:00
Lucas Nogueira
d04b15fc90 fix(tauri) salt race condition 2019-12-22 23:31:38 -03:00
Lucas Nogueira
4db6171c37 fix(entry) emit event without payload 2019-12-22 23:31:12 -03:00
Tensor-Programming
e288180104
[WIP] Refactor(Crates) Tauri into individual Crates (#192)
* split tauri into 3 crates

* fix macros

* change builder into lib

* cleanup package paths

* add features back to lib

* make build function public

* add build-deps

* rename and fix.

* correct package name

* move crates to root and refactor names

* fix github action

* move fixture to tauri-build

* remove slash

* add .vscode features

* fix updater

* fix updater mistake

* fix(tauri) refactor buiilds

* fix seperation

* change get back to get

* fix cfg and remove dead code warnings.

* roll #160 into this pr

* add credit

* fix eof

* chore(tauri) move assets to mod, loadAssets cfg outside its definition

* chore(tauri) remove unused deps

* update updater and cfg

* fix(tauri) embedded-server with dead variable

* add review refactors and remove cli form workgroup

* chore(tauri) rename tauri to tauri-api and tauri-bundle to tauri

* fix workspace and updater

* rename update to updater
2019-12-22 14:04:45 -05:00
Jacob Bolda
7bd0c2f06d Create CODEOWNERS (#195)
* Create CODEOWNERS

* refactor(folders): keep lockstep with refactor/crates

added new folder codeowners

* refactor(names)

From the perspective of semantics, Shakespeare was wrong. Even if it smells as sweet, linguistic context helps you to know what to expect to smell before you smell the thing you want to smell.

# 👃

Co-authored-by: nothingismagick <drthompsonsmagickindustries@gmail.com>
2019-12-22 16:15:09 +01:00
BenoitRanque
cd85d681b7 Corrected example: Changed next build to next export (#200)
* Changed next build to next export

Propper comand to export a static site is next export. See [here](https://nextjs.org/docs#usage)

* Corrected build command per suggestion

Both next build && next export are needed

Co-Authored-By: Jacob Bolda <me@jacobbolda.com>

Co-authored-by: Jacob Bolda <me@jacobbolda.com>
2019-12-22 11:24:27 +01:00
BenoitRanque
e4fd3bb0d7 Created .gitignore to ignore WixTools (#199)
Compiling on windows downloads WixTools to src-tauri/WixTools folder.
We don't want that polluting our repo
2019-12-22 11:19:06 +01:00
Jacob Bolda
c496ec6b33 add empty build command to monolith (#201)
* add empty build command to monolith

* rerun init and add empty workspaces

seems if we don't add the empty workspaces the toml, it gets picked up as part of the root cargo package

* fix(cargo): match latest signature

* fix(updater): purge for now

* fix(config): whitelist:true and autoStart:false

Co-authored-by: nothingismagick <denjell@sfosc.org>
2019-12-22 10:57:32 +01:00
Jacob Bolda
4f9d2e2ba7 enable new examples in smoke tests (#194)
* rename smoke tests

* split into prod and source runs

* rename test job names for clarity

* snake case gatsby site

* remove airtable api key

* add new examples

* add new examples to renovate

* add scripts to package.json

* finish off vanillajs example
2019-12-21 10:47:33 +01:00
Jacob Bolda
8df78e29b6
slim down gatsby example, update deps (#193)
* shift example and slim config

removed gatsby-source-airtable and gatsby-theme-recipes to make things more simple, less fragile and speed up the build

* update action to point at new location

* update links

* add test articles

* add theme

* slim config, move to homepage folder

* update renovate path, enable automerge on examples

* turn off rebases, but keep on for examples
2019-12-21 00:34:36 -06:00
Dale Inverarity
adaef1a3d7 Added next.js example (#191) 2019-12-20 23:28:11 +01:00
Dale Inverarity
0298a78726 Fixed missing public folder for CRA example (#189) 2019-12-20 14:24:43 -06:00
renovate[bot]
9b6d99e751 chore(examples) Update Vue Examples (#180) 2019-12-20 13:22:32 +01:00
renovate[bot]
f96249489a chore(deps): update dependency lockfile-lint to v3.0.4 (#182) 2019-12-20 13:20:47 +01:00
renovate[bot]
bce81f3a00 chore(deps): pin dependencies (#184) 2019-12-20 13:17:55 +01:00
Rajiv Shah
1151181b36 fix(ci): Install webkit2gtk on ubuntu when building smoke tests via prod (#188) 2019-12-20 12:36:23 +01:00
Rajiv Shah
8f2333078e fix(examples): Fix gatsby themed-site build errors (#187) 2019-12-20 11:21:04 +01:00
Dale Inverarity
70afee5df3 Added MVP for integration with create-react-app (#186) 2019-12-19 21:45:35 +01:00
Noah Klayman
cb37da454e feat(runner/build): add error message for missing dist (#185)
If distDir/index.html cannot be found, print a helpful error message
Previously, a TypeError woud occur
2019-12-19 15:08:36 -03:00
Daniel Thompson-Yvetot
48b79534da
chore(tauri.js:version): bump 2019-12-19 00:19:46 +01:00
nothingismagick
acdb73febf Chore/updates new (#183)
* chore(deps): update and test

* fix(template): fix tauri.js init for mac
2019-12-18 20:19:09 -03:00
renovate[bot]
87bceb0a81 chore(examples) Pin dependencies (#171) 2019-12-18 11:42:44 +01:00
Lucas
bf3c5b0587 chore(js-cli) remove test code from tauri.js template 2019-12-17 22:42:37 -03:00
Lucas Fernandes Nogueira
0f12f5f6df feat(js-cli) inject CSP from tauri.config.js (#167) 2019-12-18 02:00:49 +01:00
Lucas
153e77d631 chore(js-cli) bump version to 0.2.0 2019-12-17 21:38:00 -03:00
Lucas
d68a3d8c4b chore(tauri) bump lib's crate version to 0.2.0 2019-12-17 21:37:54 -03:00
Lucas
da1a72a144 chore(js-cli) use tauri-inliner 2019-12-17 21:13:01 -03:00
Lucas Fernandes Nogueira
1951fc88c9 feat(tauri) lazy loading for the no-server mode (#161)
* feat(tauri) WIP on iframe wrapper

* fix(tauri) iframe communication working

* refactor(tauri) iframe injection on all modes

* feat(event): update tauri.js injection

* fix(tauri) rework on iframe/devServer

* feat(tauri.js) use load event to notify tauri ready

* fix(cargo.lock): remove erroneous lockfile

* WIP

* remove iframe

* feat(tauri) inline assets, inject tauri.js

* fix(example) tauri init

* fix(api) load bundled asset

* chore(api) remove println

* chore(template) remove deprecated event listener

* chore(example) gitignore tauri.js

* chore(package.json) update email

* fix(tauri) embedded-server's server_url definition

* chore(api) use salt on event listener again

* chore(webpack) add eslint

* remove forward slash

* perf(tauri) do not bundle inlined assets

* chore(tauri) macros and platform only when using the updater feature

* fix(tauri) proper feature check for the loadAsset API

* chore(tauri) add "forked from" reference

* chore(example) use @tauri-apps/tauri-webpack

* fix(tauri) dev-server mode fixes

* chore(example) use tauri-webpack 0.1.3

* feat(webpack) rewrite lazy loading only on the no-server mode

* fix(no-server) lazy load images

* chore(tauri) use forked includedir_codegen

* fix deps

* fix(tauri) use the right version for includedir deps

* chore(tauri) println rerun-if-changed on dev
2019-12-17 22:39:34 +01:00