GithubHelp home page GithubHelp logo

Comments (2)

MarshallOfSound avatar MarshallOfSound commented on July 24, 2024

I believe this is out of scope for electron-forge. To verify dependencies you should use your package manager (npm or yarn) and the .compilerc is technically optional. Important to realize the electron-forge is not a package manager.

Happy for someone to override me on this but I believe this is out of scope.

from forge.

deepak avatar deepak commented on July 24, 2024

@MarshallOfSound thanks for answering :-)

maybe a better question to ask is, why this and such a problem can occur ?
not sure

To verify dependencies you should use your package manager (npm or yarn)

How to use npm or yarn for that ?
also can npm protect me against a corrupted .compilerc file or any of the dependencies ?

Important to realize the electron-forge is not a package manager

I only gave homebrew as an example.
I think hombrew provides that option, only because no one else can.
and because their users would be asking why homebrew is not working for them in some weird case
and "homebrew doctor" only raises the most common problems
people still face problems

but agree that the doctor command is essential for hombrew, where third-party packages are being installed. but so much for electron-forge

electron-forge is not a package manager, but it is:

  • compiling packages
  • packaging into an electron app

so some means to checking the dependencies would be nice

also am saying, for me electron-forge is like homebrew
ie. it is my only point of contact about electron
like homebrew, i am interacting only with electron-forge

also, can i can ask npm if:

  • all the dependencies of electron-forge and it dependencies-dependencies etc are correct
  • an optional .compilerc is correct or not
  • etc not even sure what other checks are there

so am suggesting that electron-forge must have that check
maybe electron-forge and its chain of dependencies all must have a "doctor" script.

such a check would be nice, not sure who or even if it should be provided

if that is out of scope, maybe an electron-forge test command
which has a sample electron app, and test cases which can be run against it

from forge.

Related Issues (20)

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.