5
0
mirror of https://github.com/wailsapp/wails.git synced 2025-05-02 08:10:56 +08:00
Create beautiful applications using Go
Go to file
Oleg Gulevskyy ca8a1fab36
Ability to define prefix / suffix for TS module (#2101)
* add tspostfix and tsprefix flags + organise under struct

* postifx -> suffix

* tsPrefix options on bindings struct

* pass prefix and suffix to the executable

* add support for CLI flags for generating module

* method to set TSpref/suff to bindings

* use passed ts prefix for typescriptify

* add brief Readme udpate to include new flags

* create reusable common flags

* use common flags instead of hardcoded text

* support tsprefix & suffix for dev

* add tsPrefix & tsSuffix for build cmd

* take pref & suff in account when gen d.ts

* export colorsful log functions into utils for reuse

* detect and warn the user about usage of reserved keyword

* fmt

* add TrimSpace on fn input

* refactor utils -> logutils

* add bindings -> ts_generation options to wailsjson parse

* use wailsjson for ts generation

* update warning message + extract to func

* remove suff/pref info from readme

* update json schema

* add tests for prefix and suffix case

* rename suffix method

* Update v2/internal/typescriptify/typescriptify.go

Co-authored-by: Lea Anthony <lea.anthony@gmail.com>

* Update website/static/schemas/config.v2.json

Co-authored-by: Lea Anthony <lea.anthony@gmail.com>

* Update website/static/schemas/config.v2.json

Co-authored-by: Lea Anthony <lea.anthony@gmail.com>

* update changelog

* Minor tweaks

Co-authored-by: Lea Anthony <lea.anthony@gmail.com>
2022-11-24 21:33:58 +11:00
.github Add single listener deregistration (#1969) 2022-10-23 09:03:37 +11:00
assets/images [ImgBot] Optimize images (#1812) 2022-09-12 21:57:07 +10:00
cmd [ImgBot] Optimize images (#1812) 2022-09-12 21:57:07 +10:00
lib locking the event manager before mutating it. this should resolve issue #950 2021-12-06 16:21:35 -06:00
licenses updated licenses + gomod 2019-02-20 22:48:59 +11:00
runtime Bump loader-utils from 1.4.1 to 1.4.2 in /runtime/js (#2115) 2022-11-22 05:34:10 +11:00
scripts v2.0.0 2022-09-22 11:00:57 +10:00
v2 Ability to define prefix / suffix for TS module (#2101) 2022-11-24 21:33:58 +11:00
website Ability to define prefix / suffix for TS module (#2101) 2022-11-24 21:33:58 +11:00
.all-contributorsrc v2.0.0 2022-09-22 11:00:57 +10:00
.eslintignore feat: significant overhaul of runtime 2019-07-20 19:32:30 +10:00
.eslintrc feat: significant overhaul of runtime 2019-07-20 19:32:30 +10:00
.gitignore v2.0.0 2022-09-22 11:00:57 +10:00
.goreleaser.yml release 0.11.3 2019-04-25 20:14:10 +10:00
.hound.yml fix: more lint fixes 2019-07-13 22:10:43 +10:00
.jshintrc chore: add .jshintrc file to indicate es6 2019-06-19 20:54:36 +10:00
app_other.go [v2] go fmt + windowIsTranslucent 2021-09-15 20:30:14 +10:00
app_windows.go [v2] go fmt + windowIsTranslucent 2021-09-15 20:30:14 +10:00
app.go Initial support for firebug (#543) 2020-10-28 21:20:47 +11:00
CHANGELOG.md chore: sort out files (#1776) 2022-08-22 20:02:27 +10:00
cli.go feat: significant overhaul of runtime 2019-07-20 19:32:30 +10:00
config.go [v2] beta.0 test 2021-09-27 21:05:43 +10:00
CONTRIBUTING.md chore: sort out files (#1776) 2022-08-22 20:02:27 +10:00
CONTRIBUTORS.md Fix BackgroundColour documentation. Update changelog. Move contributors into website. Create changelog link. 2022-07-25 20:11:04 +10:00
go.mod chore: run go fmt ./... and go mod tidy 2021-11-25 12:14:27 +08:00
go.sum chore: run go fmt ./... and go mod tidy 2021-11-25 12:14:27 +08:00
LICENSE Update license and readme 2019-04-08 19:18:39 +10:00
README.ja.md docs: Add README.ko.md (#2093) 2022-11-17 05:40:59 +11:00
README.ko.md docs: Add README.ko.md (#2093) 2022-11-17 05:40:59 +11:00
README.md docs: Add README.ko.md (#2093) 2022-11-17 05:40:59 +11:00
README.zh-Hans.md docs: Add README.ko.md (#2093) 2022-11-17 05:40:59 +11:00


Build desktop applications using Go & Web Technologies.

GitHub Go Reference CodeFactor Awesome Slack
Build GitHub tag (latest SemVer pre-release)

Table of Contents

Introduction

The traditional method of providing web interfaces to Go programs is via a built-in web server. Wails offers a different approach: it provides the ability to wrap both Go code and a web frontend into a single binary. Tools are provided to make this easy for you by handling project creation, compilation and bundling. All you have to do is get creative!

Features

  • Use standard Go for the backend
  • Use any frontend technology you are already familiar with to build your UI
  • Quickly create rich frontends for your Go programs using pre-built templates
  • Easily call Go methods from Javascript
  • Auto-generated Typescript definitions for your Go structs and methods
  • Native Dialogs & Menus
  • Native Dark / Light mode support
  • Supports modern translucency and "frosted window" effects
  • Unified eventing system between Go and Javascript
  • Powerful cli tool to quickly generate and build your projects
  • Multiplatform
  • Uses native rendering engines - no embedded browser!

Roadmap

The project roadmap may be found here. Please consult this before open up an enhancement request.

Getting Started

The installation instructions are on the official website.

Sponsors

This project is supported by these kind people / companies:

FAQ

  • Is this an alternative to Electron?

    Depends on your requirements. It's designed to make it easy for Go programmers to make lightweight desktop applications or add a frontend to their existing applications. Wails does offer native elements such as menus and dialogs, so it could be considered a lightweight electron alternative.

  • Who is this project aimed at?

    Go programmers who want to bundle an HTML/JS/CSS frontend with their applications, without resorting to creating a server and opening a browser to view it.

  • What's with the name?

    When I saw WebView, I thought "What I really want is tooling around building a WebView app, a bit like Rails is to Ruby". So initially it was a play on words (Webview on Rails). It just so happened to also be a homophone of the English name for the Country I am from. So it stuck.

Stargazers over time

Star History Chart

Contributors

The contributors list is getting too big for the readme! All the amazing people who have contributed to this project have their own page here.

License

FOSSA Status

Inspiration

This project was mainly coded to the following albums: