forked from gambitph/Titan-Framework
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcomposer.json
110 lines (107 loc) · 9.08 KB
/
composer.json
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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
{
"name": "gambitph/titan-framework",
"description": "Titan Framework allows theme and plugin developers to create admin pages, options, meta boxes, and theme customizer options with just a few simple lines of code.",
"keywords": ["wordpress", "titan", "framework", "options", "titan framework", "Titan Framework"],
"homepage" : "https://github.com/gambitph/Titan-Framework",
"license": "GPLv2+",
"authors": [
{
"name": "Gambit Technologies",
"email" : "[email protected]",
"homepage" : "http://www.titanframework.net/",
"role" : "Developer"
}
],
"type": "wordpress-muplugin",
"archive": {
"exclude": [
"/bin",
"/vendor",
"/tests",
"*/composer.*",
"*/.*",
"*.dist",
"*.md",
"*.codekit",
"*.rb"
]
},
"repositories": [
{
"type": "package",
"package": {
"name": "trentrichardson/jquery-timepicker-addon",
"version": "dev-master",
"source": {
"url": "https://github.com/trentrichardson/jQuery-Timepicker-Addon",
"type": "git",
"reference": "origin/master"
}
}
},
{
"type": "package",
"package": {
"name": "ajaxorg/ace-builds",
"version": "dev-master",
"source": {
"url": "https://github.com/ajaxorg/ace-builds",
"type": "git",
"reference": "origin/master"
}
}
}
],
"require": {
"trentrichardson/jquery-timepicker-addon": "dev-master",
"ajaxorg/ace-builds": "dev-master",
"composer/installers": "~1.0"
},
"scripts": {
"post-archive-cmd": [
"php -r \"\\$withVersion = false; \\$finalZip = basename( getcwd() ) . '.zip'; foreach ( array_merge(glob('*.php'), glob('*.css')) as \\$zipFile ) { \\$f = file_get_contents( \\$zipFile ); preg_match('/Plugin Name\\\\s*:\\\\s*([a-zA-Z\\\\s]*)\\\\n/i', \\$f, \\$matches ); if (count(\\$matches) < 2) { preg_match('/Theme Name\\\\s*:\\\\s*([a-zA-Z\\\\s]*)\\\\n/i', \\$f, \\$matches ); if (count(\\$matches) < 2) {continue;} } \\$name = \\$matches[1]; \\$zipName = trim(strtolower(str_replace(' ', '-', \\$name))); preg_match('/Version\\\\s*:\\\\s*([0-1a-zA-Z\\\\-.]*)\\\\n/i', \\$f, \\$matches); if ( count(\\$matches) < 2 ){ continue;} \\$version = \\$matches[1]; \\$finalZip = \\$zipName . '-' . \\$version . '.zip'; if ( ! \\$withVersion ) { \\$finalZip = \\$zipName . '.zip'; } } foreach ( glob('*.zip') as \\$zipFile ) { rename( \\$zipFile, \\$finalZip ); break; }\"",
"php -r \"foreach ( glob('*.zip') as \\$zipFile ) { \\$dir = basename(\\$zipFile, '.zip'); exec( 'mkdir _tmp && mv ' . \\$zipFile . ' _tmp && cd _tmp && unzip ' . \\$zipFile . ' -d ' . \\$dir . ' && rm ' . \\$zipFile . ' && zip -r9 ' . \\$zipFile . ' ' . \\$dir . ' && mv *.zip .. && cd .. && rm -R _tmp' ); exec( 'mv ' . \\$zipFile . ' ..' ); } echo 'Created: ' . \\$zipFile . \\\"\\n\\\";\""
],
"post-update-cmd": [
"php -r \"copy('vendor/trentrichardson/jquery-timepicker-addon/dist/jquery-ui-timepicker-addon.js', 'js/jquery-ui-timepicker-addon.js');\"",
"php -r \"@mkdir('js/ace-min-noconflict/');\"",
"php -r \"copy('vendor/ajaxorg/ace-builds/src-min-noconflict/ace.js', 'js/ace-min-noconflict/ace.js');\"",
"php -r \"foreach (glob('vendor/ajaxorg/ace-builds/src-min-noconflict/theme-*') as \\$file) { copy( \\$file, 'js/ace-min-noconflict/' . basename(\\$file)); }\"",
"php -r \"foreach (glob('vendor/ajaxorg/ace-builds/src-min-noconflict/*-css.*') as \\$file) { copy( \\$file, 'js/ace-min-noconflict/' . basename(\\$file)); }\"",
"php -r \"foreach (glob('vendor/ajaxorg/ace-builds/src-min-noconflict/*-html.*') as \\$file) { copy( \\$file, 'js/ace-min-noconflict/' . basename(\\$file)); }\"",
"php -r \"foreach (glob('vendor/ajaxorg/ace-builds/src-min-noconflict/*-javascript.*') as \\$file) { copy( \\$file, 'js/ace-min-noconflict/' . basename(\\$file)); }\"",
"php -r \"foreach (glob('vendor/ajaxorg/ace-builds/src-min-noconflict/*-json.*') as \\$file) { copy( \\$file, 'js/ace-min-noconflict/' . basename(\\$file)); }\"",
"php -r \"foreach (glob('vendor/ajaxorg/ace-builds/src-min-noconflict/*-less.*') as \\$file) { copy( \\$file, 'js/ace-min-noconflict/' . basename(\\$file)); }\"",
"php -r \"foreach (glob('vendor/ajaxorg/ace-builds/src-min-noconflict/*-lua.*') as \\$file) { copy( \\$file, 'js/ace-min-noconflict/' . basename(\\$file)); }\"",
"php -r \"foreach (glob('vendor/ajaxorg/ace-builds/src-min-noconflict/*-markdown.*') as \\$file) { copy( \\$file, 'js/ace-min-noconflict/' . basename(\\$file)); }\"",
"php -r \"foreach (glob('vendor/ajaxorg/ace-builds/src-min-noconflict/*-mysql.*') as \\$file) { copy( \\$file, 'js/ace-min-noconflict/' . basename(\\$file)); }\"",
"php -r \"foreach (glob('vendor/ajaxorg/ace-builds/src-min-noconflict/*-php.*') as \\$file) { copy( \\$file, 'js/ace-min-noconflict/' . basename(\\$file)); }\"",
"php -r \"foreach (glob('vendor/ajaxorg/ace-builds/src-min-noconflict/*-plain_text.*') as \\$file) { copy( \\$file, 'js/ace-min-noconflict/' . basename(\\$file)); }\"",
"php -r \"foreach (glob('vendor/ajaxorg/ace-builds/src-min-noconflict/*-python.*') as \\$file) { copy( \\$file, 'js/ace-min-noconflict/' . basename(\\$file)); }\"",
"php -r \"foreach (glob('vendor/ajaxorg/ace-builds/src-min-noconflict/*-ruby.*') as \\$file) { copy( \\$file, 'js/ace-min-noconflict/' . basename(\\$file)); }\"",
"php -r \"foreach (glob('vendor/ajaxorg/ace-builds/src-min-noconflict/*-sass.*') as \\$file) { copy( \\$file, 'js/ace-min-noconflict/' . basename(\\$file)); }\"",
"php -r \"foreach (glob('vendor/ajaxorg/ace-builds/src-min-noconflict/*-scss.*') as \\$file) { copy( \\$file, 'js/ace-min-noconflict/' . basename(\\$file)); }\"",
"php -r \"foreach (glob('vendor/ajaxorg/ace-builds/src-min-noconflict/*-sh.*') as \\$file) { copy( \\$file, 'js/ace-min-noconflict/' . basename(\\$file)); }\"",
"php -r \"foreach (glob('vendor/ajaxorg/ace-builds/src-min-noconflict/*-text.*') as \\$file) { copy( \\$file, 'js/ace-min-noconflict/' . basename(\\$file)); }\"",
"php -r \"foreach (glob('vendor/ajaxorg/ace-builds/src-min-noconflict/*-xml.*') as \\$file) { copy( \\$file, 'js/ace-min-noconflict/' . basename(\\$file)); }\"",
"php -r \"@mkdir('js/ace-min-noconflict/snippets/');\"",
"php -r \"foreach (glob('vendor/ajaxorg/ace-builds/src-min-noconflict/snippets/css.js') as \\$file) { copy( \\$file, 'js/ace-min-noconflict/snippets/' . basename(\\$file)); }\"",
"php -r \"foreach (glob('vendor/ajaxorg/ace-builds/src-min-noconflict/snippets/html.js') as \\$file) { copy( \\$file, 'js/ace-min-noconflict/snippets/' . basename(\\$file)); }\"",
"php -r \"foreach (glob('vendor/ajaxorg/ace-builds/src-min-noconflict/snippets/javascript.js') as \\$file) { copy( \\$file, 'js/ace-min-noconflict/snippets/' . basename(\\$file)); }\"",
"php -r \"foreach (glob('vendor/ajaxorg/ace-builds/src-min-noconflict/snippets/json.js') as \\$file) { copy( \\$file, 'js/ace-min-noconflict/snippets/' . basename(\\$file)); }\"",
"php -r \"foreach (glob('vendor/ajaxorg/ace-builds/src-min-noconflict/snippets/less.js') as \\$file) { copy( \\$file, 'js/ace-min-noconflict/snippets/' . basename(\\$file)); }\"",
"php -r \"foreach (glob('vendor/ajaxorg/ace-builds/src-min-noconflict/snippets/lua.js') as \\$file) { copy( \\$file, 'js/ace-min-noconflict/snippets/' . basename(\\$file)); }\"",
"php -r \"foreach (glob('vendor/ajaxorg/ace-builds/src-min-noconflict/snippets/markdown.js') as \\$file) { copy( \\$file, 'js/ace-min-noconflict/snippets/' . basename(\\$file)); }\"",
"php -r \"foreach (glob('vendor/ajaxorg/ace-builds/src-min-noconflict/snippets/mysql.js') as \\$file) { copy( \\$file, 'js/ace-min-noconflict/snippets/' . basename(\\$file)); }\"",
"php -r \"foreach (glob('vendor/ajaxorg/ace-builds/src-min-noconflict/snippets/php.js') as \\$file) { copy( \\$file, 'js/ace-min-noconflict/snippets/' . basename(\\$file)); }\"",
"php -r \"foreach (glob('vendor/ajaxorg/ace-builds/src-min-noconflict/snippets/plain_text.js') as \\$file) { copy( \\$file, 'js/ace-min-noconflict/snippets/' . basename(\\$file)); }\"",
"php -r \"foreach (glob('vendor/ajaxorg/ace-builds/src-min-noconflict/snippets/python.js') as \\$file) { copy( \\$file, 'js/ace-min-noconflict/snippets/' . basename(\\$file)); }\"",
"php -r \"foreach (glob('vendor/ajaxorg/ace-builds/src-min-noconflict/snippets/ruby.js') as \\$file) { copy( \\$file, 'js/ace-min-noconflict/snippets/' . basename(\\$file)); }\"",
"php -r \"foreach (glob('vendor/ajaxorg/ace-builds/src-min-noconflict/snippets/sass.js') as \\$file) { copy( \\$file, 'js/ace-min-noconflict/snippets/' . basename(\\$file)); }\"",
"php -r \"foreach (glob('vendor/ajaxorg/ace-builds/src-min-noconflict/snippets/scss.js') as \\$file) { copy( \\$file, 'js/ace-min-noconflict/snippets/' . basename(\\$file)); }\"",
"php -r \"foreach (glob('vendor/ajaxorg/ace-builds/src-min-noconflict/snippets/sh.js') as \\$file) { copy( \\$file, 'js/ace-min-noconflict/snippets/' . basename(\\$file)); }\"",
"php -r \"foreach (glob('vendor/ajaxorg/ace-builds/src-min-noconflict/snippets/text.js') as \\$file) { copy( \\$file, 'js/ace-min-noconflict/snippets/' . basename(\\$file)); }\"",
"php -r \"foreach (glob('vendor/ajaxorg/ace-builds/src-min-noconflict/snippets/xml.js') as \\$file) { copy( \\$file, 'js/ace-min-noconflict/snippets/' . basename(\\$file)); }\""
]
}
}