0
リリースマネージャでは簡単なGruntタスクを実行できません。私は警戒を続ける:タスク "デフォルト"が見つかりません。 --forceを使用して、続行します。ビルドを失敗から守るために--forceを追加しましたが、無駄な作業は処理されません。私はビルドエージェントにログインして、問題なく手動で駆け引きを実行しています。リリースマネージャのGruntタスク:デフォルトが見つかりません
ご意見やご感想をいただければ幸いです。
おかげで、
module.exportsは=関数(イサキ){ 'は厳密使用';
grunt.initConfig({
//Read the package.json (optional)
pkg: grunt.file.readJSON('package.json'),
// Cache bust css, update AppInsights key, remove all custom js imports from index.html, https url rewrites
processhtml: {
dev: {
options: {
data: {
appInsightsKey: 'f8d00249-dd60-44be-9145-dcb303e5fd19',
timestamp: Date.now()
}
},
files:
{
'wwwroot/index2.html': ['wwwroot/index.html']
}
},
},
// Combine and minify all js in /app folder and subfolders into app.min.js
uglify: {
dev: {
src: ['wwwroot/app/app.module.js', 'wwwroot/app/**/*.module.js', 'wwwroot/app/core/*.js', 'wwwroot/app/services/*.js', 'wwwroot/app/layout/*.js', 'wwwroot/app/**/*.js'],
dest: 'wwwroot/app/app1.min.js'
}
},
// Delete all js except for app.min.js in /app folder and subfolders
clean: {
dev: {
options: {
force: true
},
expand: true,
src: ['app/**/*.js', '!app/app.min.js']
}
}
});
grunt.loadNpmTasks('grunt-processhtml');
grunt.loadNpmTasks("grunt-contrib-uglify");
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.registerTask("default", "watch");
// If no target provided, default to dev
var target = grunt.option('target') || 'dev';
//grunt.registerTask('default', ['processhtml:' + target, 'uglify:' + target, 'clean:' + target]);
grunt.registerTask('default', ['processhtml:' + target, 'uglify:' + target]);
};スクリーンショットに基づいて
エージェントからログを追加できますか?それは助けるかもしれない – nschonni