Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Autogenerate TS typedefs for Core #5429

Merged
merged 22 commits into from
Dec 5, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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