Giter VIP home page Giter VIP logo

electron-angular's Introduction

electron-angular

A starter template for an Angular 5 Electron app

Development

To get started run npm install then npm run refresh. refresh is short for npm run build && npm run electron

JIT Development

Development in the browser

This angular app can be launched with ng serve as any other anglar app can. There is a mock object for electron in /src/mocks/electron.mock.ts. The mock object is used in /src/services/electron.service.ts when running in the browser. You may need to build this out as your application uses more advanced electron features.

Using other libraries

This project uses the Angular CLI to perform an AOT build of the Typescript files in the app. This will pull in script you reference via your Typescript imports.

If you want to use a library that you're more comfortable with like jQuery in an Angular App. You can just install the library via npm and then import the library when required. npm install jquery@latest

Then add this to your Typescript file import $ from 'jquery';

Build

Run npm run build to build the project.

Run npm run electron or electron . to run the app in electron

The build artifacts will be stored in the dist/ directory. Including an updated copy of the Electron required files main.js and package.json to allow for easy packaging. This logic is performed in copy-files-for-packaging.js.

Package

Run npm run package to package the dist folder.

electron-angular's People

Contributors

drewgreenwell avatar angular-cli avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.