electron-compile | Electron supporting package to compile JS | Dektop Application library

 by   electron-userland JavaScript Version: 2.0.1 License: No License

kandi X-RAY | electron-compile Summary

kandi X-RAY | electron-compile Summary

electron-compile is a JavaScript library typically used in Apps, Dektop Application, React, Webpack, Nodejs, Electron applications. electron-compile has no bugs, it has no vulnerabilities and it has medium support. You can download it from GitHub.

DEPRECATED: Electron supporting package to compile JS and CSS in Electron applications
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              electron-compile has a medium active ecosystem.
              It has 1006 star(s) with 112 fork(s). There are 28 watchers for this library.
              OutlinedDot
              It had no major release in the last 12 months.
              There are 87 open issues and 117 have been closed. On average issues are closed in 109 days. There are 19 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of electron-compile is 2.0.1

            kandi-Quality Quality

              electron-compile has 0 bugs and 0 code smells.

            kandi-Security Security

              electron-compile has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              electron-compile code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              electron-compile does not have a standard license declared.
              Check the repository for any license declaration and review the terms closely.
              OutlinedDot
              Without a license, all rights are reserved, and you cannot use the library in your applications.

            kandi-Reuse Reuse

              electron-compile releases are available to install and integrate.
              Installation instructions are not available. Examples and code snippets are available.
              electron-compile saves you 141 person hours of effort in developing the same functionality from scratch.
              It has 354 lines of code, 0 functions and 41 files.
              It has low code complexity. Code complexity directly impacts maintainability of the code.

            Top functions reviewed by kandi - BETA

            kandi has reviewed electron-compile and discovered the below as its top functions. This is intended to give you an instant insight into electron-compile implemented functionality, and help decide if they suit your requirements.
            • Initialize the protocol hook .
            • Updates the digest of a single value .
            • Main program .
            • Create a new compiler .
            • Loads Electron Compiler classes .
            • Get the Electron version .
            • Create a new compiler .
            • Initialize a new Compiler .
            • Compiles the package .
            • Observable methods
            Get all kandi verified functions for this library.

            electron-compile Key Features

            No Key Features are available at this moment for electron-compile.

            electron-compile Examples and Code Snippets

            No Code Snippets are available at this moment for electron-compile.

            Community Discussions

            QUESTION

            "Windows cannot access the specified..." .Exe's made by electron-packager nor electron-forge
            Asked 2019-Dec-28 at 03:31

            I'm on a Win 8.1 x64 machine. When I try to run the generated Windows binaries, I get a Windows error message.

            Windows cannot access the specified device, path, or file. You may not have the appropriate permissions to access the item.

            What I've tried:
            • I've checked permissions, my UAC account already had full control.
            • I switched from using electron-forge make to electron-packager [folder] [projectTitle] --platform=win32 --arch=x64 (same error)
            • I updated npm, electron, electron-packager, electron-forge, and at one point had to install locally a series of packages and juggle some things from dep to devdep
            • In particular, I had to move electron dependency to the devdeps section in order to satisfy electron-forge
            • Copied the .exe to a different folder e.g. e:\ and tried running it from there (same error)
            • Running as Administrator (same error)
            • Changed electronPackagerConfig.packageManager to false per the recommended workaround for this recent known issue about pruning failing (not related to this problem, but it's a factor in play)
            • Opened both .exe's in 7zip and noticed that the one generated by electron-forge didn't have much in it. This may be nothing or it may correlate with the console output for that command, below.
            My Goal:

            This is my first electron app (I come from a web background). I'm doing this build as a sanity check before I start significantly integrating my app with electron's API.

            Output of commands electron-forge make ...

            ANSWER

            Answered 2019-Dec-28 at 03:31

            I forgot to turn off antivirus shields. That fixed it. (For the permanent solution, I then added a security exception in my antivirus app's settings.)

            As a note of interest, the version made by electron-forge didn't work:

            However, the one made by electron-packager alone, worked fine.

            Source https://stackoverflow.com/questions/59507391

            QUESTION

            Using typescript in Electron's preload scripts
            Asked 2019-Sep-27 at 01:56

            I build an Electron application using electron-forge's react-typescript template, meaning it uses electron-prebuilt-compile, which according to the only documentation I can find is supposed to just work.

            The index.html contains typescript that just works, as advertised. But I am also using a webview tag with a preload script, in order to display external websites and modify them. This is the code I'm using:

            ...

            ANSWER

            Answered 2018-Mar-02 at 20:21

            Preload script is different kind, you can't directly point typescript in there. Only possible way is make javascript preload script which bootstraps electron compile inside of it (since you are using electron-prebuilt-compile), and require typescript files inside of it. It is somewhat verbose and require additional overhead into, I honestly not strongly recommend for it.

            Source https://stackoverflow.com/questions/49076033

            QUESTION

            Error when initialising electron App using electron-forge with electron-compile and electron-squirrel-startup
            Asked 2019-Feb-16 at 09:55

            I started learning on the electron by using the GitHub on demand training. When I executed the below command. The system throws the error.

            ...

            ANSWER

            Answered 2019-Feb-16 at 09:55

            I had a similar issue and it ended up being related to yarn version. I fixed it by installing yarn this way:

            Source https://stackoverflow.com/questions/52981897

            QUESTION

            XMLHttpRequest not working as expected after package electron
            Asked 2019-Jan-30 at 17:11

            I have a electron project that uses ffi-napi to integrate some cpp code and uses electron-forge / electron-compile to package the app.

            Everything works fine when i run "electron-forge start".

            My javascript uses XMLHttpRequest to load in some binary data from a custom file format (*.awd). XMLHttpRequest.responseType is "arraybuffer".

            The problem is, that once i use "electron-forge package" and run the resulting app, the XMLHttpRequest in my javascript no longer works as expected. It does not throw a error, but the XMLHttpRequest.result is much smaller than it should be, so the parsing of the binary data fails.

            This are the versions of electron-forge / electron-compile that i am using:

            ...

            ANSWER

            Answered 2019-Jan-30 at 17:11

            I think i found the solution myself.

            The problem is with the "electron-compile" module. After running "electron-forge package" it seem to interfere when loading my custom binary files and prevent them from being loaded correctly via XMLHttpRequest.

            The solution seems to use the "addBypassChecker" that comes with the electron-compile package to ignore files to be recompiled by electron-compiled if they are not part of the App.

            Source https://stackoverflow.com/questions/54440919

            QUESTION

            How to precompile typescript when packaging with electron-forge
            Asked 2019-Jan-24 at 04:42

            The app starts with a blank screen for a while before the app really loads

            I'm using electron-forge's react-typescript template.

            I can make a dmg or deb file successfully, but I noticed when I run the packaged app, there will be a blank screen for a while before the app actually load especially the first time

            I checked the distributable file and found the whole source code inside it, so I guess it's because it has to compile typescript every time?

            Then how to "precompile" my source code and use that to make a distributable app?

            update: Since the project was developed by other colleague, I just found out this project is using electron-compile to compile it on the fly, maybe the solution has something to do with this?

            ...

            ANSWER

            Answered 2019-Jan-24 at 04:42

            I checked the distributable file and found the whole source code inside it, so I guess it's because it has to compile typescript every time?

            This is not true. Current stable uses electron-prebuilt-compile (https://github.com/electron-userland/electron-forge/blob/1709af0bc53bd962466dd2025672b95f2e9399cc/packages/api/core/src/util/electron-version.ts#L6) which creates precompiled cache for typescript files for packaging time. Typescript source is only needed for module resolution in actual filesystem.

            there will be a blank screen for a while before the app actually load especially the first time

            This requires profiling application itself to find out what is happening in meanwhile. It is possible module resolution takes long or either any js execution time's blocking, but can't tell without profiling it.

            Source https://stackoverflow.com/questions/54338901

            QUESTION

            Packaged Electron App fails to Find Node Modules
            Asked 2018-Sep-04 at 11:23

            I have an electron project that is setup using electron-forge. The app works fine locally, and I am trying to package it for distribution on various operating systems. However, when I package and compile the app and try to run it, I receive cannot find module ... errors like this:

            ...

            ANSWER

            Answered 2017-Dec-03 at 07:16

            You may not use webpack for project created via electron-forge. It is not impossible thing, but you'll need various custom configuration to make it work.

            electron-forge is constructed based on electron-compile, which registers on-the-fly transpilation hook in electron process. When you build package via electron forge's preset build script it'll generate correct dependency set along with your module dependency. electron-compile is one, it is mandatory required dependency but your webpack config breaks those.

            TL:DR;

            1. electron-forge has own flows
            2. run webpack then pkg via forge can break thing.

            I'd recommend take one way only (between webpack vs. forge), customization to mix it would not be trivial for first time setup.

            Source https://stackoverflow.com/questions/47601890

            QUESTION

            Electron forge start is broken by Gulp
            Asked 2018-Jul-19 at 15:35

            please help because this thing is driving me crazy. In short when gulp reference is added to electron-forge project app launch fails.

            • Node: v8.11.3
            • electron-forge: v5.2.2

            Package.js snippet:

            ...

            ANSWER

            Answered 2018-Jul-19 at 15:35

            This is electron issue. There is a bug opened for this and it will be fixed in one of the future releases.

            Source https://stackoverflow.com/questions/51181380

            QUESTION

            How to use Decorators with electron-prebuilt-compile?
            Asked 2017-Nov-06 at 10:42

            I encountered a nasty syntax error, when trying to use decorators in an electron, react, redux project.

            ...

            ANSWER

            Answered 2017-Nov-06 at 09:17

            'ES7' is ambiguous and technically incorrect term, because it colloqually referred to proposals that weren't included into ES6 (currently as ES.next), but also had referred to ES2016.

            Package description refers to ES2016. While decorators are not a part of existing standards and supported in Babel via a plugin.

            The package explains that it respects user .babelrc file, so it should contain transform-decorators or transform-decorators-legacy in presets section, and respective Babel plugin should be installed.

            Source https://stackoverflow.com/questions/47132925

            QUESTION

            socket.io native dependency issues with electron-forge and mac os-x
            Asked 2017-Jul-28 at 06:58

            I'm attempting to use socket.io within an electron application and I've been using electron-forge to build and package.

            The below output is the result of running electron-forge start from a vanilla electron-init application named tester, with socket.io installed via npm.

            ...

            ANSWER

            Answered 2017-Jul-26 at 20:24

            Hey so I just had a similar issue as you. I am using Socket.io in my project and when trying to run electron-forge package I was encountering the same errors as you. In order to get it working I removed the dependency "socket.io": "^2.0.3" from my package.json and I was then able to package it without issue. Hope it helps!

            Source https://stackoverflow.com/questions/45212080

            QUESTION

            electron-forge --template argument does not work
            Asked 2017-Jul-22 at 09:21

            I just installed electron-forge following the its homepage instructions but when I try to create a new project from angular2 template, it creates the default Vanilla template. These commands I used:

            ...

            ANSWER

            Answered 2017-Jul-22 at 09:21

            As soon as @MarshallOfSound released the new version it works fine

            Source https://stackoverflow.com/questions/44186210

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install electron-compile

            You can download it from GitHub.

            Support

            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            CLONE
          • HTTPS

            https://github.com/electron-userland/electron-compile.git

          • CLI

            gh repo clone electron-userland/electron-compile

          • sshUrl

            git@github.com:electron-userland/electron-compile.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link