https://github.com/jimschubert/electron-angular-example
An example application using Atom's electron and Angular2
https://github.com/jimschubert/electron-angular-example
Last synced: over 1 year ago
JSON representation
An example application using Atom's electron and Angular2
- Host: GitHub
- URL: https://github.com/jimschubert/electron-angular-example
- Owner: jimschubert
- License: mit
- Created: 2015-05-25T03:43:36.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2015-12-04T14:36:37.000Z (over 10 years ago)
- Last Synced: 2025-03-21T08:35:01.413Z (over 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 181 KB
- Stars: 27
- Watchers: 5
- Forks: 6
- Open Issues: 2
-
Metadata Files:
- Readme: readme.md
- License: license
Awesome Lists containing this project
README
# electron-angular-example
> An example desktop application written with Electron and Angular2.
## Dev
First, install dependencies. This will also trigger `jspm install` for client deps.
```
$ npm install
```
Gulp will compile all typescript files.
```
$ gulp
```
For a list of available tasks, run `gulp help`.
If you're having problems with file resolution, you can inspect the `ts-lint` and `compile-ts` tasks by passing a debug switch:
```
$ gulp --debug
```
### Run
```
$ npm start
```
### Build
Execute a build specific to your dev machine using the `build.js` wrapper script (which provides system defaults and other stuff around electron-packager).
```
$ node build.js
```
On x64 OS X for example, you can now run this from the `builds` directory:
```
$ open builds/darwin/x64/ElectronAngularExample.app
```
You may also run a specific build using the defined gulp tasks. These are pre-configured invocations of `node build.js`.
```
$ gulp build:linux:32
$ gulp build:linux:64
$ gulp build:darwin:64
$ gulp build:windows:32
$ gulp build:windows:64
```
Running all cross-platform builds is rolled up into `gulp release`.
## TODO
* Packaging of cross-platform releases?
* Icon settings
* OS X Signing
## License
MIT © [Jim Schubert](http://ipreferjim.com)