Skip to content

Commit

Permalink
Fix compatibility issue
Browse files Browse the repository at this point in the history
  • Loading branch information
James-Kshitij committed Jan 23, 2023
1 parent 670004f commit aee2534
Show file tree
Hide file tree
Showing 82 changed files with 79,191 additions and 79,188 deletions.
10 changes: 5 additions & 5 deletions __grunt-tasks-config__/clean.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module.exports = {
options : {
force: true //This overrides this task from blocking deletion of folders outside current working dir (CWD). Use with caution.
},
main : ['build/**/*']
module.exports = {
options : {
force: true //This overrides this task from blocking deletion of folders outside current working dir (CWD). Use with caution.
},
main : ['build/**/*']
};
22 changes: 11 additions & 11 deletions __grunt-tasks-config__/compress.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
module.exports = {
main: {
options: {
mode: 'zip',
archive: './build/<%= pkg.name %>.zip'
},
expand: true,
cwd: 'build/<%= pkg.name %>/',
src: ['**/*'],
dest: '<%= pkg.name %>/'
}
module.exports = {
main: {
options: {
mode: 'zip',
archive: './build/<%= pkg.name %>.zip'
},
expand: true,
cwd: 'build/<%= pkg.name %>/',
src: ['**/*'],
dest: '<%= pkg.name %>/'
}
};
8 changes: 4 additions & 4 deletions __grunt-tasks-config__/concat.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module.exports = {
options: {
separator: '',
}
module.exports = {
options: {
separator: '',
}
};
66 changes: 33 additions & 33 deletions __grunt-tasks-config__/copy.js
Original file line number Diff line number Diff line change
@@ -1,34 +1,34 @@
module.exports = {
main: {
src: [
'**',
'!bin/**',

'!build/**',
'!__grunt-tasks-config__/**',
'!node_modules/**',
'!tests/**',
'!wpcs/**',

'!.git/**',
'!gruntfile.js',
'!package.json',
'!package-lock.json',
'!.gitignore',
'!.ftpauth',
'!.travis.yml',
'!travis-examples/**',
'!phpunit.xml',
'!readme.md',
'!npm-debug.log',

'!**/*.db',
'!patches/**',

'!addons/_dev_print_customizer_data.php',

'!dev_logs.php'
],
dest: 'build/<%= pkg.name %>/'
}
module.exports = {
main: {
src: [
'**',
'!bin/**',

'!build/**',
'!__grunt-tasks-config__/**',
'!node_modules/**',
'!tests/**',
'!wpcs/**',

'!.git/**',
'!gruntfile.js',
'!package.json',
'!package-lock.json',
'!.gitignore',
'!.ftpauth',
'!.travis.yml',
'!travis-examples/**',
'!phpunit.xml',
'!readme.md',
'!npm-debug.log',

'!**/*.db',
'!patches/**',

'!addons/_dev_print_customizer_data.php',

'!dev_logs.php'
],
dest: 'build/<%= pkg.name %>/'
}
};
16 changes: 8 additions & 8 deletions __grunt-tasks-config__/jshint.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
module.exports = {
options : {
reporter : require('jshint-stylish'),
scripturl:true
},
gruntfile : ['Gruntfile.js'],
front_js : ['<%= paths.front_js %>*.js', '!<%= paths.front_js %>*.min.js'],
those : [], //populated dynamically with the watch event
module.exports = {
options : {
reporter : require('jshint-stylish'),
scripturl:true
},
gruntfile : ['Gruntfile.js'],
front_js : ['<%= paths.front_js %>*.js', '!<%= paths.front_js %>*.min.js'],
those : [], //populated dynamically with the watch event
};
82 changes: 41 additions & 41 deletions __grunt-tasks-config__/replace.js
Original file line number Diff line number Diff line change
@@ -1,42 +1,42 @@
module.exports = {
main: {
src: [
'ha-fire.php'
],
overwrite: true,
replacements: [ {
from: /^.* Version: .*$/m,
to: '* Version: <%= pkg.version %>'
} ]
},
readme_md : {
src: [
'readme.md'
],
overwrite: true,
replacements: [ {
from: /^.*Stable tag: .*$/m,
to: '* Stable tag: <%= pkg.version %>'
} ]
},
readme_txt : {
src: [
'readme.txt'
],
overwrite: true,
replacements: [ {
from: /^.*Stable tag: .*$/m,
to: 'Stable tag: <%= pkg.version %>'
} ]
},
lang : {
src: [
'<%= paths.lang %>*.po'
],
overwrite: true,
replacements: [ {
from: /^.* Hueman Addons v.*$/m,
to: '"Project-Id-Version: Hueman Addons v<%= pkg.version %>\\n"'
} ]
},
module.exports = {
main: {
src: [
'ha-fire.php'
],
overwrite: true,
replacements: [ {
from: /^.* Version: .*$/m,
to: '* Version: <%= pkg.version %>'
} ]
},
readme_md : {
src: [
'readme.md'
],
overwrite: true,
replacements: [ {
from: /^.*Stable tag: .*$/m,
to: '* Stable tag: <%= pkg.version %>'
} ]
},
readme_txt : {
src: [
'readme.txt'
],
overwrite: true,
replacements: [ {
from: /^.*Stable tag: .*$/m,
to: 'Stable tag: <%= pkg.version %>'
} ]
},
lang : {
src: [
'<%= paths.lang %>*.po'
],
overwrite: true,
replacements: [ {
from: /^.* Hueman Addons v.*$/m,
to: '"Project-Id-Version: Hueman Addons v<%= pkg.version %>\\n"'
} ]
},
};
44 changes: 22 additions & 22 deletions __grunt-tasks-config__/uglify.js
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
module.exports = {
options: {
compress: {
global_defs: {
"DEBUG": false
},
dead_code: true
}
},
front_js: {
files: [{
expand: true,
cwd: '<%= paths.front_js %>',
src: ['**/*.js', '!*.min.js'],
dest: '<%= paths.front_js %>',
ext: '.min.js'
}]
},
any_file : {
files: { '<%= uglify_requested_paths.dest %>': ['<%= uglify_requested_paths.src %>']
}
}
module.exports = {
options: {
compress: {
global_defs: {
"DEBUG": false
},
dead_code: true
}
},
front_js: {
files: [{
expand: true,
cwd: '<%= paths.front_js %>',
src: ['**/*.js', '!*.min.js'],
dest: '<%= paths.front_js %>',
ext: '.min.js'
}]
},
any_file : {
files: { '<%= uglify_requested_paths.dest %>': ['<%= uglify_requested_paths.src %>']
}
}
};
38 changes: 19 additions & 19 deletions __grunt-tasks-config__/watch.js
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
module.exports = {
// gruntfile: {
// files: 'Gruntfile.js',
// tasks: ['jshint:gruntfile'],
// },
options: {
spawn : false,
// Start a live reload server on the default port 35729
livereload : true,
},
front_js : {
files : ['<%= paths.front_js %>*.js', '!*.min.js'],
tasks : ['jshint:front_js','uglify:front_js'],
//tasks: ['concat:front_js', 'jshint:front', 'ftp_push:those'],
},
php : {
files: ['**/*.php' , '!build/**.*.php'],
tasks: []
}
module.exports = {
// gruntfile: {
// files: 'Gruntfile.js',
// tasks: ['jshint:gruntfile'],
// },
options: {
spawn : false,
// Start a live reload server on the default port 35729
livereload : true,
},
front_js : {
files : ['<%= paths.front_js %>*.js', '!*.min.js'],
tasks : ['jshint:front_js','uglify:front_js'],
//tasks: ['concat:front_js', 'jshint:front', 'ftp_push:those'],
},
php : {
files: ['**/*.php' , '!build/**.*.php'],
tasks: []
}
};
Loading

0 comments on commit aee2534

Please sign in to comment.