GeoFS-Extensions / autoland

Accessible plugins for GeoFS, an online flight simulator.
https://geofsautoland.wixsite.com/autoland
GNU General Public License v3.0
6 stars 2 forks source link

[feat]: move init scripts to typescript #143

Closed nicolas377 closed 2 years ago

nicolas377 commented 2 years ago

Is there an existing issue for this?

Description

Now that we've moved from the requirejs optimizer to webpack, we don't need a javascript file to start from anymore. We can start from a init.ts file in the source directory, and move through from there. Here's a quick example I threw together:

ui/main.ts

function main() {
  // run the script
}
export default main;

init.ts

import main from "ui/main.ts";
// we're ready to start the script
main();

Are there alternatives you've considered?

No response