This Electron/Angular2 demo is based off of https://auth0.com/blog/2015/12/15/create-a-desktop-app-with-angular-2-and-electron/,
which is linked
to this repo. There are some slight tweaks to the webconfig, as I couldn't get chenkie's source to run correctly.
##Issues encountered
- Despite copying the original tutorial's
package.json
, I had to manually install:
*npm install electron --save
*npm install es6-shim@0.33.3 --save
*npm install reflect-metadata@0.1.2 --save
*npm install rxjs@5.0.0-beta.0 --save
*npm install -g tsd
*tsd init
(though, to be fair, I'm not sure this was 100% necessary)
...apparently this is an issue with npm 3 and will probably be fixed in the near future.
####webpack.config.js changes:
- Removed Line 14
- Line 19 (webpack.config):
* Changed'app': .app/app
-->'app': ./app/app
####tsconfig.json
- Changed Line 11 to:
* "./app/app.ts"