···
55
55
npm add -S git+$CI_PROJECT_URL#$CI_COMMIT_HASH
56
56
echo "import * as notella from '@inp-net/notella'; console.log(notella)" > index.js
57
57
node index.js > lib.txt
58
58
-
if ! diff -q lib.txt ../typescript/lib.txt; then
58
58
+
if ! diff -q lib.txt ../typescript_original/lib.txt; then
59
59
diff lib.txt ../typescript/lib.txt
60
60
echo Runtime library has different values, re-run just gen_typescript and commit the changes
61
61
exit 1
···
36
36
gen_typescript:
37
37
bash scripts/sync-event-enum.sh
38
38
go run scripts/typing.go
39
39
+
node typescript-dist/index.js
40
40
+
just gen_typescript_lib_txt
41
41
+
42
42
+
gen_typescript_lib_txt:
43
43
+
#!/bin/bash
44
44
+
mkdir -p testarea; cd testarea
45
45
+
npm init -y
46
46
+
jq '.type = "module"' < package.json > package.json.new
47
47
+
mv package.json.new package.json
48
48
+
cp ../typescript-dist/index.js notella.js
49
49
+
echo "import * as notella from './notella.js'; console.log(notella)" > index.js
50
50
+
node index.js > lib.txt
51
51
+
cp lib.txt ../typescript/lib.txt
52
52
+
cd ..
53
53
+
rm -rf testarea
39
54
40
55
generate:
41
56
just updateschema
···
4
4
ClearSchedule: 'clear_schedule',
5
5
ClearScheduledJobs: 'clear_scheduled_jobs',
6
6
ClearStoredSchedule: 'clear_stored_schedule',
7
7
-
CommentReply: 'comment_reply',
8
7
ContributionPaid: 'contribution_paid',
9
8
Custom: 'custom',
10
9
GodchildAccepted: 'godchild_accepted',
11
10
GodchildRejected: 'godchild_rejected',
12
11
GodchildRequest: 'godchild_request',
13
12
LoginStuck: 'login_stuck',
14
14
-
NewComment: 'new_comment',
15
13
NewPost: 'new_post',
16
14
PendingSignup: 'pending_signup',
17
15
RestoreSchedule: 'restore_schedule',