git - bower grunt 的根目录的寻找基准是递归搜索么
PHP中文网
PHP中文网 2017-05-02 09:18:56
0
1
682

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

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

PHP中文网
PHP中文网

认证0级讲师

reply all(1)
伊谢尔伦

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.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template