Skip to content

Commit e35f269

Browse files
committed
added deploy grunt task and composer compat
1 parent 3eeb3cb commit e35f269

File tree

5 files changed

+62
-3
lines changed

5 files changed

+62
-3
lines changed

.distignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,7 @@ package.json
1212
bin
1313
tests
1414
phpunit.xml
15-
npm-debug.log
15+
npm-debug.log
16+
dist
17+
artifact
18+
composer

.gitignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
.idea
22
node_modules
33
logs
4-
4+
dist
5+
artifact
6+
vendor
7+
composer.lock

composer.json

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
{
2+
"name": "codeinwp/easy-content-types",
3+
"description": "Visualizer for WordPress.",
4+
"keywords": [
5+
"wordpress",
6+
"charts",
7+
"visualization"
8+
],
9+
"repositories": [
10+
{
11+
"type": "vcs",
12+
"url": "https://github.com/Codeinwp/themeisle-sdk"
13+
}
14+
],
15+
"homepage": "https://themeisle.com/plugins/visualizer/",
16+
"license": "GPL-2.0+",
17+
"authors": [
18+
{
19+
"name": "ThemeIsle Team",
20+
"email": "[email protected]",
21+
"homepage": "https://themeisle.com"
22+
}
23+
],
24+
"type": "wordpress-plugin",
25+
"support": {
26+
"issues": "https://github.com/Codeinwp/visualizer/issues",
27+
"source": "https://github.com/Codeinwp/visualizer"
28+
},
29+
"require": {
30+
"codeinwp/themeisle-sdk": "master",
31+
"xrstf/composer-php52": "^1.0.20"
32+
},
33+
"minimum-stability": "dev",
34+
"prefer-stable": true,
35+
"scripts": {
36+
"post-install-cmd": [
37+
"xrstf\\Composer52\\Generator::onPostInstallCmd"
38+
],
39+
"post-update-cmd": [
40+
"xrstf\\Composer52\\Generator::onPostInstallCmd"
41+
],
42+
"post-autoload-dump": [
43+
"xrstf\\Composer52\\Generator::onPostInstallCmd"
44+
]
45+
}
46+
}

index.php

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
Author: Themeisle
99
Author URI: http://themeisle.com
1010
License: GPL v2.0 or later
11+
WordPress Available: yes
12+
Requires License: no
1113
License URI: http://www.opensource.org/licenses/gpl-license.php
1214
*/
1315

@@ -105,8 +107,12 @@ function visualizer_launch() {
105107
// set frontend modules
106108
$plugin->setModule( Visualizer_Module_Frontend::NAME );
107109
}
110+
$vendor_file = VISUALIZER_ABSPATH . '/vendor/autoload_52.php';
111+
if ( is_readable( $vendor_file ) ) {
112+
require_once $vendor_file;
113+
ThemeIsle_SDK_Loader::init_product( VISUALIZER_BASEFILE );
114+
}
108115
}
109-
110116
// register autoloader function
111117
spl_autoload_register( 'visualizer_autoloader' );
112118

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
"wordpress-plugin"
1111
],
1212
"textdomain": "visualizer",
13+
"category": "plugins",
1314
"author": "ThemeIsle <[email protected]>",
1415
"license": "GPL-2.0+",
1516
"bugs": {

0 commit comments

Comments
 (0)