diff --git a/.travis.yml b/.travis.yml index 3e8f962..f93fb3f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -14,6 +14,7 @@ cache: apt: true directories: - $HOME/.composer/cache/files + - $HOME/node_modules - node_modules addons: @@ -62,6 +63,10 @@ before_install: - tnw-install-wordpress - tnw-prepare-codeception + # For grunt tasks + - nvm install stable + - npm update -g npm + # Build the production plugin - travis_retry composer build # Activate the plugin diff --git a/Gruntfile.js b/Gruntfile.js index 0d6fb7c..c56de8d 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -30,9 +30,17 @@ module.exports = function ( grunt ) { target: { files: { src: [ - 'src/.*', - 'uninstall.php', - '<%= pkg.name %>.php' + '*.php', + '**/*.php', + '*.phtml', + '**/*.phtml', + '*.html', + '**/*.html', + '!assets/**', + '!build/**', + '!node_modules/**', + '!release/**', + '!tests/**' ] } } @@ -42,9 +50,17 @@ module.exports = function ( grunt ) { target: { options: { include: [ - 'src/.*', - 'uninstall.php', - '<%= pkg.name %>.php' + '*.php', + '**/*.php', + '*.phtml', + '**/*.phtml', + '*.html', + '**/*.html', + '!assets/**', + '!build/**', + '!node_modules/**', + '!release/**', + '!tests/**' ], mainFile: '<%= pkg.name %>.php', potHeaders: { @@ -205,7 +221,7 @@ module.exports = function ( grunt ) { grunt.registerTask( 'i18n', ['addtextdomain', 'makepot'] ); grunt.registerTask( 'pre-tag', ['version', 'i18n'] ); grunt.registerTask( 'pre-build', ['clean:pre-build'] ); - grunt.registerTask( 'build', ['copy:build', 'compress:build'] ); + grunt.registerTask( 'build', ['addtextdomain', 'copy:build', 'compress:build'] ); grunt.util.linefeed = '\n'; diff --git a/README.txt b/README.txt index ad5b328..537878b 100755 --- a/README.txt +++ b/README.txt @@ -56,7 +56,7 @@ I make [Typist Tech](https://www.typist.tech/) also. = Support = -We hang out in the WordPress support forum for this plugin at [https://wordpress.org/support/plugin/wp-cloudflare-guard](https://wordpress.org/support/plugin/wp-cloudflare-guard). However, to save time so that we can spend it on development, please read the plugin's FAQs at [https://wordpress.org/plugins/wp-cloudflare-guard/faq/](https://wordpress.org/plugins/wp-cloudflare-guard/faq/). Before going there, and ensure that you have updated WP Cloudflare Guard and WordPress to the latest released version. +We hang out in the WordPress [support forum](https://wordpress.org/support/plugin/wp-cloudflare-guard) for this plugin. However, to save time so that we can spend it on development, please read the plugin's [FAQs](https://wordpress.org/plugins/wp-cloudflare-guard/faq/) first. Before going there, and ensure that you have updated WP Cloudflare Guard and WordPress to the latest released version and installed PHP 7 or later. == Installation == @@ -75,8 +75,16 @@ We hang out in the WordPress support forum for this plugin at [https://wordpress 1. Upload it to `wp-content/plugins/` 1. Go to the WordPress plugin menu and activate it += Via WP CLI = + +1. `$ wp plugin install wp-cloudflare-guard --activate` + == Frequently Asked Questions == += What version of PHP do I need? = + +PHP 7 or later. + = Is this plugin written by Cloudflare, Inc.? = No. @@ -88,7 +96,7 @@ Yes, all of them work together without problems. * Install [WP Cloudflare Guard](https://wordpress.org/plugins/wp-cloudflare-guard/) if you want to protect your site from bad IPs * Install [Sunny](https://wordpress.org/plugins/sunny/) if you want to purge CloudFlare's cache automatically -* Install the [offical plugin](https://wordpress.org/plugins/cloudflare/) if you can't see the real IP from visitors +* Install the [official plugin](https://wordpress.org/plugins/cloudflare/) if you can't see the real IP from visitors = What if WP Cloudflare Guard blacklisted my IP? = @@ -97,9 +105,13 @@ Yes, all of them work together without problems. 1. Go `Firewall` 1. Release you IP under `Access Rules` -= What version of PHP do I need? = += Does this plugin available in my language? = -PHP 7 or later. +English works out of the box. + +Traditional Chinese language pack is available [here](https://translate.wordpress.org/projects/wp-plugins/wp-cloudflare-guard/language-packs). + +You can add your own translation at [translate.wordpress.org](https://translate.wordpress.org/projects/wp-plugins/wp-cloudflare-guard). = How to get support? = @@ -111,6 +123,9 @@ Make sure you have read the plugin's FAQs at [https://wordpress.org/plugins/wp-c If you like the plugin, feel free to [rate it](https://wordpress.org/support/plugin/wp-cloudflare-guard/reviews/#new-post) or [donate via PayPal](https://www.typist.tech/donate/wp-cloudflare-guard/). Thanks a lot! :) +You can add your own translation at [translate.wordpress.org](https://translate.wordpress.org/projects/wp-plugins/wp-cloudflare-guard). + + Besides, `WP Cloudflare Guard` is open source and hosted on [GitHub](https://github.com/TypistTech/wp-cloudflare-guard). Feel free to make pull requests. = What if I want more? =