Skip to content

Commit

Permalink
Release 1.0.2 🎉
Browse files Browse the repository at this point in the history
  • Loading branch information
emgk committed Nov 8, 2020
1 parent d3fb3c4 commit 4827923
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 9 deletions.
6 changes: 3 additions & 3 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const webpackStream = require( 'webpack-stream' );
const
sourceFiles = 'src/',
sourceJsFiles = sourceFiles + '**/**/*.js',
outputDir = 'build';
outputDir = 'assets';

function watchFiles() {
const webpackConfig = require( './webpack.config.js' );
Expand All @@ -30,7 +30,7 @@ gulp.task( 'plugin-pot', function() {
.pipe( wpPot( {
domain: 'in-stock-notifier',
} ) )
.pipe( gulp.dest( 'i18n/languages/in-stock-notifier.pot' ) );
.pipe( gulp.dest( 'languages/in-stock-notifier.pot' ) );
} );

gulp.task( 'plugin-zip-cleanup', function( done ) {
Expand Down Expand Up @@ -76,7 +76,7 @@ gulp.task( 'watch', series( watchFiles, gulp.parallel( watchAllFiles ) ) );
gulp.task( 'build', gulp.series( [ 'production-env' ], gulp.parallel( watchFiles ) ) );
gulp.task( 'default', gulp.series( [ 'build' ] ) );

gulp.task( 'release', gulp.series(
gulp.task( 'publish', gulp.series(
[ 'production-env' ],
[ 'build' ],
[ 'plugin-pot' ],
Expand Down
4 changes: 2 additions & 2 deletions inc/classes/class-wsn-initialize.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public function __construct() {
add_filter( 'manage_edit-product_columns', array( $this, 'instockalert_add_column' ) );

// Enqueue Scripts for admin.
add_action( 'admin_init', array( $this, 'instockalert_product_setup' ) );
add_action( 'admin_enqueue_scripts', array( $this, 'instockalert_product_setup' ) );

// This function will fire when any product stock status change.
add_action( 'admin_init', array( $this, 'send_in_stock_email' ) );
Expand All @@ -67,7 +67,7 @@ public function __construct() {
add_filter( 'manage_edit-product_sortable_columns', array( $this, 'wsn_sortable_tab' ) );

// Enqueue scripts of plugin.
add_action( 'init', array( $this, 'wsn_enqueue_assets' ) );
add_action( 'wp_enqueue_scripts', array( $this, 'wsn_enqueue_assets' ) );

// Register plugin setting fields.
add_action( 'init', array( $this, 'wsn_register_settings' ) );
Expand Down
2 changes: 1 addition & 1 deletion instock-init.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
// defines
define( 'WSN_PATH', plugin_dir_path( __FILE__ ) );
define( 'WSN_INCLUDE_PATH', WSN_PATH . 'inc' . DIRECTORY_SEPARATOR );
define( 'WSN_ASSEST_PATH', plugin_dir_url( __FILE__ ) . 'build' . DIRECTORY_SEPARATOR );
define( 'WSN_ASSEST_PATH', plugin_dir_url( __FILE__ ) . 'assets' . DIRECTORY_SEPARATOR );
define( 'WSN_CLASS_PATH', WSN_PATH . 'inc' . DIRECTORY_SEPARATOR . 'classes' . DIRECTORY_SEPARATOR );
define( 'WSN_EMAIL_TEMPLATE_PATH', WSN_PATH . 'templates' . DIRECTORY_SEPARATOR . 'email' . DIRECTORY_SEPARATOR );

Expand Down
10 changes: 8 additions & 2 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@
Contributors: gk.loveweb
Donate link: http://emgk.github.io
Tags: woocommerce plugin, woocommerce,in-stock, out-of-stock, stock management, notify user, userlist, waitlist, notify.
Requires at least: 3.3
Requires at least: 5.3
Tested up to: 5.5.3
Requires PHP: 7.0
Stable tag: woo-in-stock-notifier
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Expand Down Expand Up @@ -50,4 +51,9 @@ When the email is sent to the sent to the user, this plugin allows you to move t
* Added WooCommerce new version support

= 1.0 =
* Initial release.
* Initial release.

== Upgrade Notice ==

= 1.0.2 =
1.0.2 has brand new UI/UX, please check if compatible with your environment, [report issues here](https://github.com/emgk/woo-in-stock-notifier/issues)
2 changes: 1 addition & 1 deletion webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ module.exports = {
},
output: {
filename: 'js/[name].min.js',
path: path.resolve( __dirname, './build' ),
path: path.resolve( __dirname, './assets' ),
},
module: {
rules: [
Expand Down

0 comments on commit 4827923

Please sign in to comment.