An easy to use boilerplate for Angular 2 applications. This includes all of the necesssary features for using Angular 2 as of the RC5 update, including forms, NgModule and an easy to use development flow.
Installing this boilerplate is extremely simple!
git clone https://github.com/c4wrd/angular2-electron-boilerplate
cd angular2-electron-boilerplate
npm install
That's it! You are now ready for development.
This boilerplate utilizes a few packages to ensure an automated and easy to use workflow with Angular 2. Here is a list of them and their purposes:
npm run build
).You can find the source of the application in src.
All source files for your application should be listed under src. These files will be copied to the dist folder on build, and all .ts files will automatically be transpiled to JavaScript. Sass files are also transpiled if placed in the src/assets/scss folder.
To build your application, you can simply run npm run build
. This will copy the files to the dist directory, but will not start the Electron application.
You can run your application with npm run start