Coder Social home page Coder Social logo

fricci / electron-with-angular-and-monaco-editor Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 1.0 392 KB

Example code how to integrate Monaco editor with Angular within an electron application.

License: MIT License

TypeScript 83.36% JavaScript 9.28% HTML 6.66% CSS 0.70%

electron-with-angular-and-monaco-editor's Introduction

Angular Logo Electron Logo #Monaco Editor

Introduction

This is an integration example to use Monaco editor in Electron app that uses Angular framework.

The following projects have been used:

Details

I made the following modification on orignal code:

  • Teradata's original wrapper are able to used in non-electron environment. This code is removed, because I focused to Electron
  • Because this boilerplate uses Angular CLI, I had to make some modification in MonacoEditorWrapperComponent constructor, to determine the proper application path
  • The wrapper uses the Monaco editor that is in the node_modules, musn't copy the assets directory

Main parts

  • /src/electron-load.js
  • this script is loaded by angular.json
  • /src/component/monaco-wrapper

Run, Build, etc

copy-pasted from original boilerplate:

Command Description
npm run ng:serve:web Execute the app in the browser
npm run build Build the app. Your built files are in the /dist folder.
npm run build:prod Build the app with Angular aot. Your built files are in the /dist folder.
npm run electron:local Builds your application and start electron
npm run electron:linux Builds your application and creates an app consumable on linux system
npm run electron:windows On a Windows OS, builds your application and creates an app consumable in windows 32/64 bit systems
npm run electron:mac On a MAC OS, builds your application and generates a .app file of your application that can be run on Mac

Contributors

electron-with-angular-and-monaco-editor's People

Contributors

nemtecl avatar

Stargazers

Jameson Saunders avatar

Watchers

Ferenc Czina avatar James Cloos avatar

electron-with-angular-and-monaco-editor's Issues

electron-loader.js missing

Hello, I really want to use your project but there is a missing file :
electron-loader.js
due to the gitignore.
Could you bring it to your project please ?

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.