-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathconfig.js
More file actions
69 lines (66 loc) · 1.57 KB
/
Copy pathconfig.js
File metadata and controls
69 lines (66 loc) · 1.57 KB
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
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: true,
src: 'src/structure/',
glob: 'src/structure/**/**',
replaceGlob: 'src/structure/**/**.{php,html,xml,php,ini,less,json,js,css}',
dest: '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/system/kickkwadrat/',
glob: 'releasefiles/plugins/system/kickkwadrat/**/**',
dest: 'sourcefiles/plg_system_kickkwadrat/'
}
],
cleaner: [
'releasefiles/',
'sourcefiles/',
'archives/',
'package/'
],
updateXML: {
src: 'update.xml',
rename: 'oldupdate.xml',
template: 'updatetemplate.xml',
dest: './'
},
},
archiver: [
{
destination : 'archives/',
name: 'plg_system_kickkwadrat',
suffixversion: true,
types: [
{
extension: '.zip',
type: 'zip',
options: {
zlib: { 'level': 9 }
}
}
],
folders: [
'sourcefiles/plg_system_kickkwadrat'
],
files: [
]
}
]
};
export const stringsreplace = extend({}, {"[VERSION]": pjson.version}, pjson.placeholder);