forked from wailsapp/wails
-
Notifications
You must be signed in to change notification settings - Fork 0
Add runtime build watch, remove custom condition, update TS templates #11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
IanVS
wants to merge
22
commits into
fbbdev:v3-alpha-feature/event-types
Choose a base branch
from
IanVS:ts-templates
base: v3-alpha-feature/event-types
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 18 commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
1a72b73
Convert remaining package.json to package.json.tmpl
IanVS 04ddcd1
Alphabetize dependencies
IanVS 44b3764
Move runtime to "dependencies"
IanVS f2cb563
Make tsconfig.json files into templates
IanVS 2777367
Add runtime plugin to vite config
IanVS 9805906
Add missing vite-env.d.ts files
IanVS b2111dc
Assign a type for results
IanVS 4302868
Allow import of runtime globals in dev
IanVS 3c77d11
Use ESNext
IanVS af41cd0
Revert "Use ESNext"
IanVS b0d3049
Revert "Allow import of runtime globals in dev"
IanVS 44b6a88
Add `build:code:watch` script, README instructions
IanVS 03965c0
Remove `wails-development` condition from templates
IanVS 268f485
Convert vite plugin to typescript
IanVS 503d2f5
Remove ts-ignore from generators
IanVS eab8feb
Downgrade vite for now
IanVS 77b2891
Allow types for `Create` to be exported
IanVS c69da05
Create TS project for bindings (lit-ts)
IanVS cd28108
Move type import to comment in js template
IanVS 0222d94
Remove `Create` from docs
IanVS 940b6b1
Remove end-of-line whitespace
IanVS 50bd660
Create bundler ts configs
IanVS File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# @wailsio/runtime | ||
|
||
## Development | ||
|
||
When developing wails, you can create templates with a direct link back to this package, enabling you to make changes here and see the impact in a real project. | ||
|
||
First, to enable this mode: | ||
|
||
1. `cd` to the wails `v3` directory | ||
2. `wails3 task install` | ||
|
||
Then, when you initialize a new project using `wails3 init`, the development version of wails will be used, and a link will be created in the `package.json` back to this directory. | ||
|
||
Before running `wails3 dev` in that new project, you'll need to build the output of this package: | ||
|
||
1. Install project dependencies with `npm i` | ||
2. Build the project using `npm run build:code` | ||
- Or `npm run build:code:watch` to automatically recompile when you make changes | ||
|
||
To revert a project back to the npm-published version of `@wailsio/runtime`, simply change the reference in `package.json` back to `"latest"`. |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure we can have a
type
import here in the JS template. JS output has to work out of the box in all supported webviews without any bundler/transpiler.We should probably make this a tsdoc import:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah thanks, got over-eager and thought this was TS, probably because of the
@ts-ignore
comment. Should have looked more closely at the file extension.