WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Commit 4f04190

Browse files
authored
Add automatic generation of TypeScript types for Core (in addition to existing Flow types) (#5429)
Only show in developer changelog
1 parent d3134ec commit 4f04190

File tree

5 files changed

+2951
-431
lines changed

5 files changed

+2951
-431
lines changed

GDevelop.js/Gruntfile.js

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -111,15 +111,23 @@ module.exports = function (grunt) {
111111
},
112112
},
113113
},
114-
// Copy the library to newIDE
115-
generateTypes: {
114+
// Generate typings from the Bindings.idl
115+
generateFlowTypes: {
116116
command: 'node scripts/generate-types.js',
117117
options: {
118118
execOptions: {
119119
cwd: __dirname,
120120
},
121121
},
122122
},
123+
generateTSTypes: {
124+
command: 'node scripts/generate-dts.mjs',
125+
options: {
126+
execOptions: {
127+
cwd: __dirname,
128+
},
129+
},
130+
},
123131
},
124132
clean: {
125133
options: { force: true },
@@ -148,6 +156,7 @@ module.exports = function (grunt) {
148156
grunt.registerTask('build', [
149157
'build:raw',
150158
'shell:copyToNewIDE',
151-
'shell:generateTypes',
159+
'shell:generateFlowTypes',
160+
'shell:generateTSTypes',
152161
]);
153162
};

0 commit comments

Comments
 (0)