Move release script to Grunt (fixes #31)
This commit is contained in:
parent
22cffe4a90
commit
cd97433a4e
3 changed files with 12 additions and 3 deletions
10
Gruntfile.js
10
Gruntfile.js
|
@ -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']);
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue