Skip to content

Commit

Permalink
Adding UI reskin
Browse files Browse the repository at this point in the history
  • Loading branch information
mattgrshaw committed Mar 4, 2022
1 parent 8ce71a0 commit ed99789
Show file tree
Hide file tree
Showing 18 changed files with 2,407 additions and 276 deletions.
65 changes: 55 additions & 10 deletions Gruntfile.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
module.exports = function(grunt) {

grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
makepot: {
target: {
options: {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
makepot: {
target: {
options: {
domainPath: '/languages/',
mainFile: 'better-search-replace.php',
potFilename: 'better-search-replace.pot',
Expand All @@ -16,11 +16,56 @@ module.exports = function(grunt) {
},
type: 'wp-plugin',
updateTimestamp: true,
}
}
}
});
}
}
},
cssmin: {
target: {
files: [{
expand: true,
cwd: 'assets/css',
src: ['*.css', '!*.min.css'],
dest: 'assets/css',
ext: '.min.css'
}]
}
},
uglify: {
my_target: {
options: {
sourceMap: true
},
files: {
'assets/js/better-search-replace.min.js': ['assets/js/better-search-replace.js']
}
}
},
watch: {
css: {
files: [
'assets/css/*.css',
'!assets/css/*.min.css'
],
tasks: [
'cssmin'
]
},
js: {
files: [
'assets/js/*.js',
'!assets/js/*.min.js',
'!assets/js/*.min.js.map'
],
tasks: [
'uglify'
]
}
}
});

grunt.loadNpmTasks('grunt-wp-i18n');
grunt.loadNpmTasks('grunt-wp-i18n');
grunt.loadNpmTasks('grunt-contrib-cssmin');
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-contrib-watch');

};
Loading

0 comments on commit ed99789

Please sign in to comment.