今日、実行したときに気づきました:
grunt jasmine
:grunt-contrib-jasmine を使用して、メイン プロジェクト フォルダーにフォルダー .grunt を作成しますが、これは正常ですか? そうは思いません。
端末によるテストにPhantomjsを使用しています
node_modules grunt-contrib-jasmine にすでにそのフォルダーがあります
テストを実行するたびにそのフォルダーを作成する理由がわかりません。
パッケージ.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"
}
Gruntfile.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/'
}
};