-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathjs-to-lua.config.js
56 lines (55 loc) · 1.88 KB
/
js-to-lua.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
module.exports = {
lastSync: {
ref: "4f26a6bc28032c068b4db7207ef077aec7c89902",
conversionToolVersion: "ef4bcc5c0d0fc3c5ca56cc84212d267b598f9de6"
},
upstream: {
owner: "graphql",
repo: "graphql-js",
primaryBranch: "main"
},
downstream: {
owner: "roblox",
repo: "graphql-lua-internal",
primaryBranch: "master",
patterns: [
"src/**/*.lua"
]
},
releasePattern: /^v?\d+\.\d+\.\d+$/,
renameFiles: [
[
(filename) => filename.endsWith(".test.lua"),
(filename) => filename.replace(".test.lua", ".spec.lua")
],
[
(filename) => filename.endsWith('index.lua'),
(filename) => filename.replace("index.lua", "init.lua")
],
[
(filename) => filename.endsWith("-test.lua"),
(filename) => filename.replace("-test.lua", ".spec.lua")
],
[
(filename) => filename.endsWith(".test.ts.lua"),
(filename) => filename.replace(".test.ts.lua", ".spec.snap.lua")
],
[
(filename) => filename.endsWith(".ts.lua") && !filename.endsWith(".test.ts.lua"),
(filename) => filename.replace(".ts.lua", ".spec.snap.lua")
],
[
(filename) => filename.endsWith(".snap.lua") && !filename.endsWith(".spec.snap.lua"),
(filename) => filename.replace(".snap.lua", ".spec.snap.lua")
],
// specific fixes
[
(filename) => filename.includes('src/language/__tests__/blockString-fuzz.lua'),
() => 'src/language/__tests__/blockString-fuzz.spec.lua'
],
[
(filename) => filename.includes('src/utilities/__tests__/stripIgnoredCharacters-fuzz.lua'),
() => 'src/utilities/__tests__/stripIgnoredCharacters-fuzz.spec.lua'
],
]
}