Skip to content

Commit

Permalink
Save proxy output (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
kant2002 committed Jun 28, 2024
1 parent 9b0479f commit 69409dc
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 12 deletions.
5 changes: 5 additions & 0 deletions blazor-webidl-gen.sln
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,11 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "workflows", "workflows", "{
build.yml = build.yml
EndProjectSection
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{34F3E5D8-43B6-4DF4-86F3-E4573C7F1A1F}"
ProjectSection(SolutionItems) = preProject
README.md = README.md
EndProjectSection
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Expand Down
25 changes: 13 additions & 12 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,22 +4,23 @@ cd Blazor.InteropGenerator.JS
json_dir=../json
git submodule update --init
idl_location=../generator/inputfiles/idl
js_location=../Blazor.WebApiInterop/wwwroot
mkdir -p $json_dir

npm install
npm run compile
npm run process -- "$idl_location/Vibration.widl" "$json_dir/Vibration.json"
npm run process -- "$idl_location/Storage.widl" "$json_dir/Storage.json"
npm run process -- "$idl_location/Indexed Database.widl" "$json_dir/Indexed Database.json"
npm run process -- "$idl_location/Navigation Timing.widl" "$json_dir/Navigation Timing.json"
npm run process -- "$idl_location/Notifications.widl" "$json_dir/Notifications.json"
npm run process -- "$idl_location/Page Visibility.widl" "$json_dir/Page Visibility.json"
npm run process -- "$idl_location/Performance Timeline.widl" "$json_dir/Performance Timeline.json"
npm run process -- "$idl_location/Web Messaging.widl" "$json_dir/Web Messaging.json"
npm run process -- "$idl_location/Web Speech API.widl" "$json_dir/Web Speech API.json"
npm run process -- "$idl_location/Push.widl" "$json_dir/Push.json"
npm run process -- "$idl_location/Screen Orientation.widl" "$json_dir/Screen Orientation.json"
npm run process -- "$idl_location/Service Workers.widl" "$json_dir/Service Workers.json"
npm run process -- "$idl_location/Vibration.widl" "$json_dir/Vibration.json" "$js_location/Vibration.js"
npm run process -- "$idl_location/Storage.widl" "$json_dir/Storage.json" "$js_location/Storage.js"
npm run process -- "$idl_location/Indexed Database.widl" "$json_dir/Indexed Database.json" "$js_location/IndexedDatabase.js"
npm run process -- "$idl_location/Navigation Timing.widl" "$json_dir/Navigation Timing.json" "$js_location/NavigationTiming.js"
npm run process -- "$idl_location/Notifications.widl" "$json_dir/Notifications.json" "$js_location/Notifications.js"
npm run process -- "$idl_location/Page Visibility.widl" "$json_dir/Page Visibility.json" "$js_location/PageVisibility.js"
npm run process -- "$idl_location/Performance Timeline.widl" "$json_dir/Performance Timeline.json" "$js_location/PerformanceTimeline.js"
npm run process -- "$idl_location/Web Messaging.widl" "$json_dir/Web Messaging.json" "$js_location/WebMessaging.js"
npm run process -- "$idl_location/Web Speech API.widl" "$json_dir/Web Speech API.json" "$js_location/WebSpeechAPI.js"
npm run process -- "$idl_location/Push.widl" "$json_dir/Push.json" "$js_location/Push.js"
npm run process -- "$idl_location/Screen Orientation.widl" "$json_dir/Screen Orientation.json" "$js_location/ScreenOrientation.js"
npm run process -- "$idl_location/Service Workers.widl" "$json_dir/Service Workers.json" "$js_location/ServiceWorkers.js"
cd ..

echo Completed!

0 comments on commit 69409dc

Please sign in to comment.