Move release script to Grunt (fixes #31)

This commit is contained in:
Pierre Rudloff 2015-10-29 23:21:12 +01:00
parent 22cffe4a90
commit cd97433a4e
3 changed files with 12 additions and 3 deletions

View file

@ -45,6 +45,14 @@ module.exports = function (grunt) {
classes: {
dir: 'tests/'
}
},
compress: {
release: {
options: {
archive: 'alltube-release.zip'
},
src: ['*.php', '!config.php', 'dist/**', 'fonts/**', '.htaccess', 'img/**', 'js/**', 'LICENSE', 'README.md', 'robots.txt', 'sitemap.xml', 'templates/**', 'templates_c/', 'vendor/**']
}
}
}
);
@ -54,8 +62,10 @@ module.exports = function (grunt) {
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.loadNpmTasks('grunt-phpcs');
grunt.loadNpmTasks('grunt-phpunit');
grunt.loadNpmTasks('grunt-contrib-compress');
grunt.registerTask('default', ['uglify', 'cssmin']);
grunt.registerTask('lint', ['phpcs']);
grunt.registerTask('test', ['phpunit']);
grunt.registerTask('release', ['compress']);
};