mirror of
https://github.com/JetBrains/intellij-sdk-code-samples.git
synced 2025-07-29 17:57:53 +08:00
31 lines
892 B
JavaScript
31 lines
892 B
JavaScript
module.exports = function(grunt) {
|
|
|
|
grunt.initConfig({
|
|
exec: {
|
|
build: {
|
|
cmd: 'rake build[_config_gh-pages.yml]'
|
|
}
|
|
},
|
|
buildcontrol: {
|
|
options: {
|
|
dir: '_site',
|
|
commit: true,
|
|
push: true,
|
|
message: 'Built %sourceName% from commit %sourceCommit% on branch %sourceBranch%'
|
|
},
|
|
pages: {
|
|
options: {
|
|
remote: 'git@github.com:JetBrains/intellij-sdk-docs.git',
|
|
branch: 'gh-pages'
|
|
}
|
|
}
|
|
}
|
|
});
|
|
|
|
grunt.loadNpmTasks('grunt-exec');
|
|
grunt.loadNpmTasks('grunt-build-control');
|
|
|
|
grunt.registerTask('build', ['exec:build']);
|
|
grunt.registerTask('deploy', ['build', 'buildcontrol:pages']);
|
|
grunt.registerTask('default', ['deploy']);
|
|
}; |