Skip to content

Commit

Permalink
improved: build process and reduced compressed size
Browse files Browse the repository at this point in the history
  • Loading branch information
HeyMehedi committed Jul 15, 2024
1 parent ba4c9f9 commit cb952d8
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 40 deletions.
18 changes: 4 additions & 14 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,21 +11,11 @@
}
],
"require": {
"php": ">=7.4" },
"require-dev": {
"squizlabs/php_codesniffer": "3.7.2",
"dealerdirect/phpcodesniffer-composer-installer": "1.0.0",
"phpcompatibility/phpcompatibility-wp": "2.1.4",
"wp-coding-standards/wpcs": "^2.3"
"php": ">=7.4"
},
"scripts": {
"build": "composer --no-plugins --no-interaction install --no-scripts --no-dev",
"format": "vendor/bin/phpcbf --standard=phpcs.xml",
"phpcs": "vendor/bin/phpcs --standard=phpcs.xml"
},
"config": {
"allow-plugins": {
"dealerdirect/phpcodesniffer-composer-installer": true
}
"build": [
"composer --no-plugins --no-interaction install --no-scripts --no-dev"
]
}
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"format": "wp-scripts format ./src",
"minify": "wp-scripts build",
"compress": "webpack --config webpack.compress.js",
"build": "yarn minify && grunt build && yarn compress",
"build": "yarn minify && composer build && grunt build && yarn compress",
"fixtextdomain": "grunt fixtextdomain",
"git-compress": "webpack --config webpack.compress.git.js",
"git-build": "yarn start --no-watch && grunt build && yarn git-compress",
Expand Down
4 changes: 2 additions & 2 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
Stable tag: 1.0.0
License: GPLv3
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-3.0.html

The Ultimate Templates on WordPress | Craft beautiful website in no time
Expand All @@ -27,5 +27,5 @@ The Ultimate Templates on WordPress | Craft beautiful website in no time
All data *****

== Changelog ==
= 1.0.0 - Jun 30, 2024 =
= 1.0.0 - Jul 15, 2024 =
* Initial launch
24 changes: 1 addition & 23 deletions templatiq.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,32 +5,10 @@
* Author: wpWax
* Author URI: https://wpwax.com
* Version: 1.0.0
* License: GPL2
* License: GPLv2 or later
* Requires PHP: 7.4
* Text Domain: templatiq
* Domain Path: /languages
*
* Released under the GPL license
* http://www.opensource.org/licenses/gpl-license.php
*
* This is an add-on for WordPress
* http://wordpress.org/
*
* **********************************************************************
* This program 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
* (at your option) any later version.
*
* This program 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 this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
* **********************************************************************
*/

if ( ! defined( 'ABSPATH' ) ) {
Expand Down

0 comments on commit cb952d8

Please sign in to comment.