search

Home  >  Q&A  >  body text

git - bower grunt 的根目录的寻找基准是递归搜索么

就是在一个bower以及grunt的下面,那么运行bower以及grunt的基准根目录是当前目录还是git确定的目录?还是什么的?

这个是依据与目录的递归搜索么?如果是的话,那是不是意味着我不能在一个项目中再嵌套另一个小的项目了?

PHP中文网PHP中文网2805 days ago670

reply all(1)I'll reply

  • 伊谢尔伦

    伊谢尔伦2017-05-02 09:20:56

    I don’t know what you mean by bower and grunt. If it refers to the pwd that executes these two commands, then there is no so-called recursion in either of them

    Among them, bower uses bower.json in the directory as the package description file, and the .bowerrc file as the bower configuration file
    By default, grunt uses gruntfile.js in the current directory as the project task configuration file. You can also manually create gruntfiles in other paths, but the relative path and task execution path in the configuration file are based on the current path

    It is known that you cannot search upward until you find the configuration file like the commonjs specification. So it is feasible to embed small projects.

    reply
    0
  • Cancelreply