Skip to content

Commit

Permalink
Fix WordPress requirements
Browse files Browse the repository at this point in the history
* Removed JavaScript plugin `compression-webpack-plugin`. It compressed versions of assets to serve them with Content-Encoding (gz).
* Removed `.gz` files by WordPress requirement.
* Changed `webpack` mode from `development` to `production`.
* Improved `README.txt`.
* Fixed `package.json` (license, urls, version)
* Changed plugin URI to github repository.
  • Loading branch information
yaroslav-borodii committed Jan 1, 2023
1 parent a9b6b02 commit 63402d4
Show file tree
Hide file tree
Showing 13 changed files with 48 additions and 90 deletions.
32 changes: 23 additions & 9 deletions README.txt
Original file line number Diff line number Diff line change
@@ -1,21 +1,22 @@
=== Smart Phone Addon for Ninja Forms ===
Contributors: @yaroslavborodii, @max10110
Contributors: yaroslavborodii, max10110
Donate link: https://jdi.company
Tags: ninja form, ninja form Smart Phone Addon, SPN, ninja form intlTelInput, intlTelInput, ninja form addon
Tags: Smart Phone Addon, Ninja Forms, SPN, intlTelInput, International Telephone Input
Requires at least: 4.0
Tested up to: 6.1.1
Stable tag: 1.0.0
License: GPLv2 or later
Stable tag: 1.0.2
License: GPLv2
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Requires PHP: 7.0

This plugin is an addon to the Ninja Forms plugin. It uses third part integration called intlTelInput. It's free absolutely.
This plugin is an addon to the Ninja Forms plugin. It adds a flag dropdown to any input, detects the user's country, displays a relevant placeholder and provides formatting/validation methods.

== Description ==

It adds a flag dropdown to any input, detects the user's country, displays a relevant placeholder and provides formatting/validation methods.

The Smart Phone is an addon to the Ninja Forms plugin.
We use third part integration called <a href="https://github.com/jackocnr/intl-tel-input">intlTelInput</a>.
The Smart Phone is an addon to the Ninja Forms plugin. We use third part integration called <a href="https://github.com/jackocnr/intl-tel-input">intlTelInput</a>.

It's free absolutely.

== Installation ==
Expand All @@ -31,7 +32,7 @@ This section describes how to install the plugin and get it working.
= Is it paid? =

No, it's free absolutely.
If you want to support us, see donate section <3.
If you want to support us, see donate section.

= It doesn't work or my site was broken =

Expand All @@ -47,9 +48,22 @@ please, write to us <a href="mailto:yaroslav.borodii@jdi.company">yaroslav.borod

== Changelog ==

= 1.0.2 =
* Removed JavaScript plugin `compression-webpack-plugin`. It compressed versions of assets to serve them with Content-Encoding (gz).
* Removed `.gz` files by WordPress requirement.
* Changed `webpack` mode from `development` to `production`.
* Improved `README.txt`.
* Fixed `package.json` (license, urls, version)
* Changed plugin URI to github repository.

= 1.0.1 =
* Changed plugin name by Wordpress requirement

= 1.0 =
* Init Ninja Forms Smart Phone Addon

== Upgrade Notice ==

== Arbitrary section ==
= 1.0.2

= 1.0.1
3 changes: 1 addition & 2 deletions dist/admin/main.min.js

Large diffs are not rendered by default.

27 changes: 0 additions & 27 deletions dist/admin/main.min.js.LICENSE.txt

This file was deleted.

Binary file removed dist/admin/main.min.js.LICENSE.txt.gz
Binary file not shown.
Binary file removed dist/admin/main.min.js.gz
Binary file not shown.
3 changes: 1 addition & 2 deletions dist/public/main.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 0 additions & 3 deletions dist/public/main.min.js.LICENSE.txt

This file was deleted.

Binary file removed dist/public/main.min.js.LICENSE.txt.gz
Binary file not shown.
Binary file removed dist/public/main.min.js.gz
Binary file not shown.
11 changes: 2 additions & 9 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
const gulp = require('gulp')
const webpack = require('webpack')
const webpackStream = require('webpack-stream')
const CompressionPlugin = require('compression-webpack-plugin')
const TerserPlugin = require('terser-webpack-plugin')

// Implement functions
Expand All @@ -15,7 +14,7 @@ function compileAdminJS () {
.src('./admin/js/ninja-forms-spn-addon-admin.js')
.pipe(
webpackStream({
mode: 'development',
mode: 'production',
output: {
filename: '[name].min.js'
},
Expand Down Expand Up @@ -44,9 +43,6 @@ function compileAdminJS () {
}
}
},
plugins: [
new CompressionPlugin()
]
}),
webpack
)
Expand All @@ -58,7 +54,7 @@ function compilePublicJS () {
.src('./public/js/ninja-forms-spn-addon-public.js')
.pipe(
webpackStream({
mode: 'development',
mode: 'production',
output: {
filename: '[name].min.js'
},
Expand Down Expand Up @@ -87,9 +83,6 @@ function compilePublicJS () {
}
}
},
plugins: [
new CompressionPlugin()
]
}),
webpack
)
Expand Down
17 changes: 16 additions & 1 deletion ninja-forms-spn-addon.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
*
* @wordpress-plugin
* Plugin Name: Smart Phone Addon for Ninja Forms
* Plugin URI: https://ninjaforms.com/?utm_source=Ninja+Forms+Plugin&utm_medium=readme
* Plugin URI: https://github.com/JDI-company/Smart-Phone-for-Ninja-Forms
* Description: Smart Phone Addon for Ninja Forms is a plugin to add country flag to the Phone Number field.
* Version: 1.0.0
* Author: JDI
Expand All @@ -25,6 +25,21 @@
* Domain Path: /languages
*/

/*
Smart Phone Addon for Ninja Forms is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 2 of the License, or
any later version.
Smart Phone Addon for Ninja Forms is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with Smart Phone Addon for Ninja Forms. If not, see http://www.gnu.org/licenses/gpl-2.0.txt.
*/

// If this file is called directly, abort.
if ( ! defined( 'WPINC' ) ) {
die;
Expand Down
31 changes: 0 additions & 31 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 5 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
{
"name": "nf-spn-addon",
"version": "1.0.0",
"version": "1.0.2",
"description": "Ninja Forms Smart Phone Number Addon by JDI.company",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
"type": "git",
"url": "git+https://github.com/JDI-company/NF-Smart-Phone-Addon.git"
"url": "git+https://github.com/JDI-company/Smart-Phone-for-Ninja-Forms"
},
"keywords": [
"ninja-forms",
Expand All @@ -18,16 +18,15 @@
"addon"
],
"author": "JDI",
"license": "ISC",
"license": "GPLv2",
"bugs": {
"url": "https://github.com/JDI-company/NF-Smart-Phone-Addon/issues"
"url": "https://github.com/JDI-company/Smart-Phone-for-Ninja-Forms/issues"
},
"homepage": "https://github.com/JDI-company/NF-Smart-Phone-Addon#readme",
"homepage": "https://github.com/JDI-company/Smart-Phone-for-Ninja-Forms#readme",
"devDependencies": {
"@babel/core": "^7.20.7",
"@babel/preset-env": "^7.20.2",
"babel-loader": "^9.1.0",
"compression-webpack-plugin": "^10.0.0",
"gulp": "^4.0.2",
"webpack": "^5.75.0",
"webpack-stream": "^7.0.0"
Expand Down

0 comments on commit 63402d4

Please sign in to comment.