This article will focus on setting up the "Typescript For Stellarium" toolchain for an Ubuntu based Linux system as well as for the Windows 10 Operating system.
First and foremost you should install the current versions of Stellarium and Visual Studio code.
The following instructions will install the required packages. 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".
# Install npm and typescript sudo apt install npm # may already be installed sudo npm install -g typescript # Install webpack and ts-loader in the user home directory cd ~ npm install webpack webpack-cli --save-dev npm install ts-loader
cd %HOMEPATH% npm install webpack webpack-cli ts-loader typescript --save-dev
Once you have installed Visual Studio Code, Typescript and Webpack you can start with creating Stellarium scripts in Typescript. Continue by downloading the sample projects from github.
You might also like: