-
Notifications
You must be signed in to change notification settings - Fork 4
/
build-config.js
66 lines (61 loc) · 1.62 KB
/
build-config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
/*
* Build Data
*
* The following variables are used to generate
* the build.
*
* The default values you see below are how we
* integrate this script into Theme Blvd themes.
*
* If you're using a cloned version of this repo,
* to generate an instance for your theme or plugin,
* you'll want to change the values below.
*
* Or, you can also generate a custom instance for
* your theme or plugin at mypluginmanager.com.
*/
/**
* Context of how you're using the script.
*
* Value should be equal to one of the following:
* 1. `theme` - Using with standard theme.
* 2. `child-theme` - Using with child theme.
* 3. `plugin` - Using with plugin.
*
* @type {string}
*/
const usage = 'theme';
/**
* Name of your theme or plugin.
*
* This should match the name in your theme's style.css
* or the name in your main plugin file.
*
* @type {string}
*/
const name = 'Theme Blvd';
/**
* Namespace value you're using for your PHP functions,
* like `themeblvd` or `theme_blvd`
*
* @type {string}
*/
const namespace = 'themeblvd';
/**
* Text domain slug your plugin or theme uses, like
* `themeblvd` or `theme-blvd`.
*
* This is the slug used for your WordPress localization.
* It usually matches the name of your theme or plugin's
* directory.
*
* Note: What's up with the weird '@@text-domain' default
* value? -- In the Theme Blvd WordPress framework we have
* a build system that replaces that value throughout all
* framework PHP code with the proper value cooresponding
* to the current theme.
*
* @type {string}
*/
const textDomain = '@@text-domain';
module.exports = { usage, name, namespace, textDomain };