Skip to content

Commit

Permalink
Adding Grunt.
Browse files Browse the repository at this point in the history
  • Loading branch information
ronaldhuereca committed Feb 15, 2025
1 parent 9a341cb commit 80c2c35
Show file tree
Hide file tree
Showing 4 changed files with 1,702 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,5 @@ wp-content/cache/
wp-content/upgrade/
wp-content/uploads/
wp-content/wp-cache-config.php

reorder-by-term.zip
25 changes: 25 additions & 0 deletions Gruntfile.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
module.exports = function (grunt) {
grunt.initConfig({
compress: {
main: {
options: {
archive: 'reorder-by-term.zip'
},
files: [
{ src: ['reorder-by-term.php'], dest: '/', filter: 'isFile' },
{ src: ['js/**'], dest: '/' },
{ src: ['languages/**'], dest: '/' },
{ src: ['class-reorder-term-builder.php'], dest: '/', filter: 'isFile' },
{ src: ['class-reorder-term-helper.php'], dest: '/', filter: 'isFile' },
{ src: ['index.php'], dest: '/', filter: 'isFile' },
{ src: ['readme.txt'], dest: '/', filter: 'isFile' },
{ src: ['uninstall.php'], dest: '/', filter: 'isFile' },
]
}
}
})
grunt.registerTask('default', ['compress'])

grunt.loadNpmTasks('grunt-contrib-compress')
}

Loading

0 comments on commit 80c2c35

Please sign in to comment.