

Npm install webpack webpack-cli -save-dev # Install webpack and ts-loader in the user home directory Sudo apt install npm # may already be installed Please note that some of the packages will be installed to the local users home directory! After executing the commands you will find a newly created folder named "node_modules". The following instructions will install the required packages. LabelMgr.labelScreen("Hello world", 400, 550, true, 100, "#66ccff") Ĭore.debug(" + Control Stellarium with Typescript!")Ĭore.debug(" + Keep your sanity whilst working with ECMA script")Ĭore.debug(" + get a onscreen display of bug messages")įor (var i=0 i 3.0) is needed for transpiling the typescript source code into ECMAScript and Webpack is required for bundling it into a single file. Description: A demonstrational script for tramnspiling typescript to stellarium Here is how a minimalistic example of Stellarium Typescript code looks like:

The script API of Stellarium is quite powerfull but there are certain limitations that make writing complex scripts difficult. In this article i will explain how to set up the Visual Studio Code development environment forĭeveloping Stellarium scripts in Typescript. One of the features of Stellarium is its scriptability. Stellarium is an open source astronomy software capable of rendering the night sky with near photographic realism. Stellarium Scripting with Typescript - Stellarium Automation with Typescript and Visual Studio Code Stellarium Scripting with Typescript
