Comments (6)
This is available on master now.
https://github.com/NathanWalker/angular2-seed-advanced#electron-app
from angular-seed-advanced.
@realsaraf Thank you for the kind words.
Here's a couple excellent resources on Electron + ng2:
https://github.com/angular/angular-electron
https://www.xplatform.rocks/2016/02/14/angular2-and-electron-the-definitive-guide/
https://auth0.com/blog/2015/12/15/create-a-desktop-app-with-angular-2-and-electron/
Good tips: http://blog.axosoft.com/2016/03/04/electron-things-to-know/
My hope is to bring that support within a month from now, however I'm always open to PR's. ;)
If you plan to contribute in anyway, just bear in mind the project organization and try to stay true to that.
There's 2 paths to take (not sure yet which one will make most sense and work out):
- Keep everything together in
src
folder. Electron bootstrap and all. Concern here is the same as NativeScript. Doing so requires web builds to also depend on the electron libraries for the TS build to succeed unless you can come up with a clever way to exclude certainframeworks
on TS build of web and then include them in the electron build. - Create an
electron
folder as I did withnativescript
. Then add aprepare
andstart
task similar to here: https://github.com/NathanWalker/angular2-seed-advanced/blob/master/nativescript/package.json#L11-L12 ... This is what brings the shared codebase into it's respective build. Then in theelectron
folder you only create the bare minimum on top of the shared codebase to make it work. You would still createdesktop.framework
in the mainsrc
directory which would contain anyshared
desktop setup similar to what I did withnativescript.framework
here: https://github.com/NathanWalker/angular2-seed-advanced/tree/master/src/frameworks/nativescript.framework
from angular-seed-advanced.
Hi @NathanWalker ,
Thank you for your prompt response and the tips. I will try to follow what you said and if i come up with something good, i will try to submit a PR.
from angular-seed-advanced.
As far as NW.js, there are these comparisons:
https://www.xplatform.rocks/2016/02/09/nw-js-vs-electron/
http://tangiblejs.com/posts/nw-js-electron-compared
from angular-seed-advanced.
Thanks
from angular-seed-advanced.
Experimentation is being done here:
https://github.com/NathanWalker/angular2-seed-advanced/tree/4-electron-support
Blocked by Router
trouble at moment.
Run by the following:
npm run start.desktop --desktop
from angular-seed-advanced.
Related Issues (20)
- Angular Seed as the engine for an app builder (WYSIWYG app creator) HOT 2
- Upgrade to @ngrx v4 HOT 1
- Recommendations on multi-platform dev HOT 8
- deploying to heroku HOT 1
- Integrate material2 design into angular-seed-advanced HOT 7
- refactor: rename shared > modules [ update README ]
- Angular 5.1.x update missing @angular/service-worker/build/gulp HOT 4
- @angular/cli Oriented Electron Seed HOT 1
- Devdependencies not updated
- [android, device] Application entry point file not found. HOT 11
- css precompile not work while run android HOT 3
- Is there a simple example that mimics communication between sibling components?
- "@angular/compiler-cli/index"' has no exported member 'CodeGenerator' HOT 1
- Bundling adds and than removes files.
- Error: com.tns.NativeScriptException: Failed to find module: "./app/modules/core/index", relative to: app/ HOT 1
- use native UI
- The dev/prod build of angluar seed app is throwing Uncaught SyntaxError: Unexpected token < exception HOT 3
- JS error HOT 1
- NativeScript `tns preview`
- Unable to run on iOS emulator using `npm run start.ios` HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from angular-seed-advanced.