add github release task

Esse commit está contido em:
sualko
2017-04-03 17:13:32 +02:00
commit 895cae067c
3 arquivos alterados com 30 adições e 0 exclusões
+1
Ver Arquivo
@@ -27,3 +27,4 @@ lib/magnific-popup/
.idea
/lib/strophejs-plugin-mam
/lib/strophejs-plugin-rsm
.github.json
+28
Ver Arquivo
@@ -9,6 +9,7 @@ module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
github: grunt.file.readJSON('.github.json'),
app: grunt.file.readJSON('package.json'),
meta: {
banner: grunt.file.read('banner.js')
@@ -348,6 +349,29 @@ module.exports = function(grunt) {
options: {
config: '.scss-lint.yml'
}
},
github_releaser2: {
options: {
repository: 'jsxc/jsxc',
authentication: {
type: 'token',
token: '<%= github.token %>'
},
release: {
body: 'see https://github.com/jsxc/jsxc/blob/master/CHANGELOG.md'
}
},
release: {
src: ['archives/jsxc-archives/jsxc-<%= app.version %>.zip', 'archives/jsxc-archives/jsxc-<%= app.version %>.zip.sig']
},
prerelease: {
options: {
release: {
prerelease: true
}
},
src: ['archives/jsxc-archives/jsxc-<%= app.version %>.zip', 'archives/jsxc-archives/jsxc-<%= app.version %>.zip.sig']
}
}
});
@@ -372,6 +396,7 @@ module.exports = function(grunt) {
grunt.loadNpmTasks('grunt-prettysass');
grunt.loadNpmTasks('grunt-html-convert');
grunt.loadNpmTasks('grunt-scss-lint');
grunt.loadNpmTasks('grunt-github-releaser2');
//Default task
grunt.registerTask('default', ['build', 'watch']);
@@ -396,6 +421,9 @@ module.exports = function(grunt) {
grunt.task.run(['search:changelog', 'build:prerelease', 'jsdoc']);
});
grunt.registerTask('publish:release', ['github_releaser2:release']);
grunt.registerTask('publish:prerelease', ['github_releaser2:prerelease']);
// before commit
grunt.registerTask('pre-commit', ['search:console', 'jsbeautifier:pre-commit', 'scsslint', 'jshint']);
+1
Ver Arquivo
@@ -25,6 +25,7 @@
"grunt-contrib-uglify": "^2.0.0",
"grunt-contrib-watch": "^1.0.0",
"grunt-data-uri": "^0.3.0",
"grunt-github-releaser2": "^0.1.1",
"grunt-html-convert": "0.0.2",
"grunt-jsbeautifier": "^0.2.13",
"grunt-jsdoc": "^2.1.0",