PHP Classes

File: build/version-replace.js

Recommend this page to a friend!
  Classes of Maniruzzaman Akash   WP Emailer   build/version-replace.js   Download  
File: build/version-replace.js
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: WP Emailer
Allow WordPress users to configure email settings
Author: By
Last change:
Date: 1 year ago
Size: 310 bytes
 

Contents

Class file image Download
const fs = require('fs-extra'); const replace = require('replace-in-file'); const pluginFiles = ['includes/**/*', 'templates/*', 'src/*', 'wpemailer.php']; const { version } = JSON.parse(fs.readFileSync('package.json')); replace({ files: pluginFiles, from: /WP_EMAILER_SINCE/g, to: version, });