Code Monkey home page Code Monkey logo

Comments (1)

francoispluchino avatar francoispluchino commented on June 27, 2024

The installation of NPM/Yarn dependencies is always in the node_modules folder (by default) of the project folder. It is normal that it is not in the folder of the PHP extension. This is the behavior of NPM and Yarn, and all package managers, because ultimately, these are the dependencies of the project. This avoids duplicate libraries, allows to analyze the dependency tree, check conflicts, etc... and therefore to solve all the dependencies of the project. In addition, if you install the dependencies in the PHP library folder, this will be removed when the PHP library is updated. For more information on how Foxy works, feel free to read the FAQ How does the plugin work?.

You get an empty package.json file because Foxy detects that your composer.json file requires Foxy, but it can not find the package.json file from the PHP library. From what I understand, the package.json file is in the views folder, however, it must be placed in the same folder as the composer.json file.

Regarding your configuration, the config.foxy section is used only for the composer.json file of the project, and not the one of the library (see the doc of config.

from foxy.

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.