Skip to content

Commit

Permalink
Merge pull request #31 from wpkitpro/release/1.0.6
Browse files Browse the repository at this point in the history
Release/1.0.6
  • Loading branch information
garikhg authored Jan 22, 2024
2 parents 5148f49 + a50f6c3 commit b512f27
Show file tree
Hide file tree
Showing 6 changed files with 191 additions and 26 deletions.
1 change: 1 addition & 0 deletions .env
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
VERSION=1.0.6
31 changes: 19 additions & 12 deletions .github/scripts/update-version-in-files.js
Original file line number Diff line number Diff line change
@@ -1,32 +1,39 @@
'use strict';

const replaceInFile = require('replace-in-file');
const dotenv = require( 'dotenv' );
const path = require( 'path' );
dotenv.config( { path: path.resolve( __dirname, '.env' ) } );
const replaceInFile = require( 'replace-in-file' );

const {VERSION} = process.env;

const replaceInFileWithLog = async (options) => {
const results = await replaceInFile(options);
console.log('Replacement results:', results, 'options: ', options);
const { VERSION } = process.env;
const replaceInFileWithLog = async ( options ) => {
const results = await replaceInFile( options );
console.log( 'Replacement results:', results, 'options: ', options );
};

const run = async () => {
try {
await replaceInFileWithLog( {
files: './assets/scss/style.scss',
files: '../../assets/sass/style.scss',
from: /Version:.*$/m,
to: `Version: ${ VERSION }`,
} );

await replaceInFileWithLog( {
files: './functions.php',
files: '../../assets/sass/style.scss',
from: /Stable tag:.*$/m,
to: `Stable tag: ${ VERSION }`,
} );

await replaceInFileWithLog( {
files: '../../functions.php',
from: /WPKIT_ELEMENTOR_VERSION', '(.*?)'/m,
to: `WPKIT_ELEMENTOR_VERSION', '${ VERSION }'`,
} );

} catch (err) {
console.error('Error occurred:', err);
process.exit(1);
} catch ( err ) {
console.error( 'Error occurred:', err );
process.exit( 1 );
}
}

run();
6 changes: 3 additions & 3 deletions assets/sass/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
Theme Name: WP Kit Elementor
Theme URI: https://wpkit.pro/themes/wpkit-elementor/
Description: WP Kit Elementor is a versatile and streamlined WordPress theme meticulously crafted to integrate seamlessly with the Elementor page builder plugin. This free and open-source theme is tailored for users seeking a nimble, user-friendly, and highly customizable website. Engineered for optimal performance, WP Kit Elementor establishes a robust groundwork, empowering users to fashion distinctive designs effortlessly through the intuitive Elementor drag-and-drop site builder. With its user-centric simplicity and adaptable features, WP Kit Elementor stands out as an excellent choice for both novices and seasoned web creators alike.
Author: WP Kit
Author: WpKit
Author URI: https://wpkit.pro
Version: 1.0.5
Stable tag: 1.0.5
Version: 1.0.6
Stable tag: 1.0.6
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 7.3
Expand Down
174 changes: 164 additions & 10 deletions package-lock.json

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

4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
"concurrently": "^8.2.2",
"copy-webpack-plugin": "^11.0.0",
"cssnano": "^6.0.3",
"dotenv": "^16.3.2",
"eslint": "^8.56.0",
"eslint-config-wordpress": "^2.0.0",
"eslint-plugin-babel": "^5.3.1",
Expand All @@ -48,6 +49,7 @@
"matchdep": "^2.0.0",
"npm-build-zip": "^1.0.4",
"react": "^18.2.0",
"replace-in-file": "^7.1.0",
"rimraf": "^5.0.5",
"sass": "^1.69.7",
"terser-webpack-plugin": "^5.3.10",
Expand All @@ -58,7 +60,7 @@
"@babel/plugin-transform-modules-commonjs": "^7.23.3",
"@babel/plugin-transform-runtime": "^7.23.7",
"@lodder/grunt-postcss": "^3.1.1",
"grunt-autoprefixer": "^3.0.0",
"grunt-autoprefixer": "^3.0.4",
"grunt-cssnano": "^3.0.0"
}
}
1 change: 1 addition & 0 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ const copyPluginConfig = new CopyPlugin( {
...Object.keys( entry ).map( ( key ) => `**/assets/js/${ key }.min.asset.php` ),
'**.zip',
'**.css',
'**/.env',
'**/karma.conf.js',
'**/assets/scripts/**',
'**/assets/sass/**',
Expand Down

0 comments on commit b512f27

Please sign in to comment.