Skip to content

Commit

Permalink
Merge pull request #28 from zohaib87/init_issue
Browse files Browse the repository at this point in the history
Fixed #27
  • Loading branch information
zohaib87 committed Feb 17, 2024
2 parents 093b0bc + 0ea7581 commit 78eca8d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

[![Issues](https://img.shields.io/github/issues/zohaib87/xe-theme)](https://github.com/zohaib87/xe-theme/issues)
[![Release Latest](https://img.shields.io/github/v/release/zohaib87/xe-theme?color=yellowgreen)](https://github.com/zohaib87/xe-theme/releases/latest)
[![Downloads](https://img.shields.io/github/downloads/zohaib87/xe-theme/total)](https://github.com/zohaib87/xe-theme/releases/latest)
[![Downloads](https://img.shields.io/github/downloads/zohaib87/xe-theme/total)](https://github.com/zohaib87/xe-theme/releases/latest/download/xe-theme.zip)
![Repo Size](https://img.shields.io/github/repo-size/zohaib87/xe-theme.svg)
[![License](https://img.shields.io/github/license/zohaib87/xe-theme)](https://github.com/zohaib87/xe-theme/blob/master/LICENSE.md)

Expand Down
2 changes: 1 addition & 1 deletion node_scripts/config.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "Xe",
"global": "xe_opt",
"global": "xe",
"build": "E:/Projects/Xe Theme"
}
3 changes: 2 additions & 1 deletion node_scripts/init.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ var config = require('./config.json');
var path = require('path');

var name = config.name;
var global = config.global;
var nameLower = name.toLowerCase();
var nameHyphen = nameLower.replace(/ /g, '-');
var nameUnderscores = nameLower.replace(/ /g, '_');
Expand All @@ -27,7 +28,7 @@ var options = {
currentTheme+'/**/*.php',
currentTheme+'/readme.txt',
],
from: [ /'_xe'/g, /_xe_/g, /Text Domain: _xe/g, /Template: _xe/g, / _xe/g, /_xe-/g, /xe_opt/g, /Xe_Theme\\/g ],
from: [ /'_xe'/g, /_xe_/g, /Text Domain: _xe/g, /Template: _xe/g, / _xe/g, /_xe-/g, /\$xe_opt/g, /Xe_Theme\\/g ],
to: [txtDomain, funcNames, styleCss, template, dockBlocks, preHandles, gloVars, namespaces],
};

Expand Down

0 comments on commit 78eca8d

Please sign in to comment.