Gruntjs .grunt文件夹在运行grunt jasmine后在项目中创建

Gruntjs .grunt文件夹在运行grunt jasmine后在项目中创建,gruntjs,jasmine,phantomjs,grunt-contrib-jasmine,Gruntjs,Jasmine,Phantomjs,Grunt Contrib Jasmine,我今天刚注意到,当我跑步时: grunt jasmine 在我的主项目文件夹中创建一个文件夹.grunt,带有:grunt contrib jasmine,这正常吗?我不这么认为 我正在使用Phantomjs进行终端测试 我已经在我的node_模块中设置了该文件夹 茉莉花 我不明白为什么每次我运行测试时都会创建那个文件夹,知道吗 package.json "devDependencies": { "grunt": "*", "grunt-contrib-concat": "*",

我今天刚注意到,当我跑步时:
grunt jasmine

在我的主项目文件夹中创建一个文件夹.grunt,带有:grunt contrib jasmine,这正常吗?我不这么认为

我正在使用Phantomjs进行终端测试

我已经在我的node_模块中设置了该文件夹 茉莉花

我不明白为什么每次我运行测试时都会创建那个文件夹,知道吗

package.json

"devDependencies": {
    "grunt": "*",
    "grunt-contrib-concat": "*",
    "grunt-contrib-jade": "*",
    "grunt-contrib-jasmine": "*",
    "grunt-contrib-jshint": "*",
    "grunt-contrib-sass": "*",
    "grunt-contrib-uglify": "*",
    "grunt-contrib-watch": "*"
  },
  "dependencies": {
    "phantomjs": "^1.9.18"
  }
Grunfile.js

var jasmine;
    config.jasmine = jasmine = {};

    jasmine.test = {
        src:"public/javascripts/test/test.js"
        , options:{
            specs: "spec/test.spec.js"
            , keepRunner: true
            // , host: 'http://localhost/demo-site/'
        }
    };

这是正常的行为。您是对的,Jasmine的代码已经存储在
node\u modules/
下的某个地方,但大多数人将其设置为被版本控制系统(如git)忽略。在
node\u modules/
之外创建一个文件夹意味着Jasmine的代码可以存储在存储库中,从而托管在web上,例如通过

这对于开发JavaScript库的人来说非常有用,因为它允许访问托管站点的人直接运行测试

就个人而言,我希望能够更改保存的Jasmine代码的位置,因为我已经有一个
test/
目录,其中保存了SpecRunner。有一个问题