GitXplorerGitXplorer
t

dart_electron_starter_kit

public
31 stars
1 forks
0 issues

Commits

List of commits on branch master.
Unverified
fb0e6d0fdd1b4d6844f3266415571486c20d0185

bump build_web_compilers

tthosakwe committed 6 years ago
Verified
b120aa62a28a7aecf13cb464863f49aa8571b119

Delete yarn.lock

tthosakwe committed 6 years ago
Unverified
941795142e2b2ce4191428dd36d4f5c3022449a9

remove idea

tthosakwe committed 6 years ago
Unverified
0d919d07129364997666b162b26835c76d795264

README

tthosakwe committed 6 years ago
Unverified
3d95ef936a22ef2875947ec26f5306037ecc508a

Perfected packaging + build

tthosakwe committed 6 years ago
Unverified
a647a1ac8c14a28888a0fe9d552ba8856c174add

Updates

tthosakwe committed 6 years ago

README

The README file for this repository.

dart_electron_starter_kit

Boilerplate project for building Electron apps with Dart. This starter kit is minimal, and only contains what you need to get started right away.

Screenshot

Setup

Assuming you have both npm (or yarn) and the Dart SDK installed, setup is simple:

git clone https://github.com/thosakwe/dart_electron_starter_kit [project-name]
cd [project-name]
pub get
npm install

Afterwards, run npm run dev to start developing.

Development

This package uses package:build_web_compilers and the Dart Dev Compiler to compile a Dart app to JS on-the-fly. Thanks to, package:build_runner, this allows for incremental builds, and hot-reloading.

Now, you can write your Electron app with Dart, leveraging existing JS interop libraries, and, of course, other Dart packages.

Release

To build for production, first run npm run build (or yarn build).

The output directory, build/web/ contains a package.json pointing to the built application, and can be run as follows:

cd build/web
npm install
npm start

Packaging

The output directory's package manifest, build/web/package.json, includes electron-packager, and therefore can be packaged for distribution on Windows, MacOS, and Linux.

Just run npm run build in build/web to build for the host platform. To build for all platforms, run npm run package.