1
나는 껍질을 벗기고 다른 작업을 추가 할 수 있는지 궁금해하고 있었다. 내 작업에 대한 다음그르 른 쉘에서 다른 작업으로 출력
shell: {
gitlog: {
command: 'git log -1 --pretty=format:%h',
options: {
stdout: true
}
}
}
: 그리고 여기에 내가 무엇을 가지고
grunt.registerTask('build-version', 'Set the information about the version', function() {
grunt.file.write('version.json', JSON.stringify({
version: pkg['version'],
metaRevision: shell.gitlog,
date: grunt.template.today()
}));
});
내가 너무 내 자식 SHA-1을해야 할 일을 알아 내려고 노력이 어떤 도움을 주셔서 감사합니다을 것이다 내 metaRevision의 일부가되어야합니다.