-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathconfig.js
83 lines (80 loc) · 2.06 KB
/
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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
import {createRequire} from "module";
import {extend} from "./scripts/tasks/util.js";
const require = createRequire(import.meta.url);
export const pjson = require('./package.json');
export const config = {
paths: {
copy: [
{
casesensitive: false,
src: 'src/structure/',
glob: 'src/structure/**/**',
replaceGlob: 'src/structure/**/**.{php,html,xml,php,ini,less,json,js,css}',
dest: '../joomla/dist/',
},
{
casesensitive: false,
src: 'src/structure/',
glob: 'src/structure/**/**',
replaceGlob: 'src/structure/**/**.{php,html,xml,php,ini,less,json,js,css}',
dest: '../joomla/dist4/',
},
{
casesensitive: false,
src: 'src/structure/',
glob: 'src/structure/**/**',
replaceGlob: 'src/structure/**/**.{php,html,xml,php,ini,less,json,js,css}',
dest: '../joomla/dist5/',
}
],
release: [
{
src: 'src/structure/',
glob: 'src/structure/**/**',
replaceGlob: 'src/structure/**/**.{php,html,xml,php,ini,less,json,js,css}',
dest: 'releasefiles/',
}
],
package: [
{
src: 'releasefiles/plugins/task/kickmanagearticle/',
glob: 'releasefiles/plugins/task/kickmanagearticle/**/**',
dest: 'sourcefiles/plg_task_kickmanagearticle/'
}
],
cleaner: [
'releasefiles/',
'sourcefiles/',
'archives/',
'package/'
],
updateXML: {
src: 'update.xml',
rename: 'oldupdate.xml',
template: 'updatetemplate.xml',
dest: './'
},
},
archiver: [
{
destination : 'archives/',
name: 'plg_task_kickmanagearticle',
suffixversion: true,
types: [
{
extension: '.zip',
type: 'zip',
options: {
zlib: { 'level': 9 }
}
}
],
folders: [
'sourcefiles/plg_task_kickmanagearticle'
],
files: [
]
}
]
};
export const stringsreplace = extend({}, {"[VERSION]": pjson.version}, pjson.placeholder);