Skip to content

Commit

Permalink
Add automatic generation of TypeScript types for Core (in addition to…
Browse files Browse the repository at this point in the history
… existing Flow types) (#5429)

Only show in developer changelog
  • Loading branch information
arthuro555 committed Dec 5, 2023
1 parent d3134ec commit 4f04190
Show file tree
Hide file tree
Showing 5 changed files with 2,951 additions and 431 deletions.
15 changes: 12 additions & 3 deletions GDevelop.js/Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,15 +111,23 @@ module.exports = function (grunt) {
},
},
},
// Copy the library to newIDE
generateTypes: {
// Generate typings from the Bindings.idl
generateFlowTypes: {
command: 'node scripts/generate-types.js',
options: {
execOptions: {
cwd: __dirname,
},
},
},
generateTSTypes: {
command: 'node scripts/generate-dts.mjs',
options: {
execOptions: {
cwd: __dirname,
},
},
},
},
clean: {
options: { force: true },
Expand Down Expand Up @@ -148,6 +156,7 @@ module.exports = function (grunt) {
grunt.registerTask('build', [
'build:raw',
'shell:copyToNewIDE',
'shell:generateTypes',
'shell:generateFlowTypes',
'shell:generateTSTypes',
]);
};
Loading

0 comments on commit 4f04190

Please sign in to comment.