Skip to content

Latest commit

 

History

History
45 lines (34 loc) · 1.5 KB

Prerequisites.md

File metadata and controls

45 lines (34 loc) · 1.5 KB

Installing SmallJS prerequisites

To install SmallJS prerequisites, see below.
To update components, check Updating

GIT

Download the latest version here:

https://git-scm.com/downloads

Visual Studio Code

Download the latest version here:

https://code.visualstudio.com/download

On MacOS you should add VSCode to the path, this way:
In VSCode, open the Command Palette (Cmd+Shift+P) type 'shell command' to find:
Shell Command: Install 'code' command in PATH command
click on to add VSCode to the path.

VSCode Firefox extension

From Chrome and Edge, step debugging is built into VSCode. For debugging in Firefox you should install this extension: Debugger for Firefox.

Note: If you are using Ubuntu with Firefox installed in a Snap container,
the extension wil not work because it does not have access to the /tmp dir.
To fix this, these lines should be added to the launch.json file of your browser projects:

    "timeout": 90000,
    "tmpDir": "/some/folder/of/yours/with/write/perms",

Node.js

Download the latest version here:

nodejs.org/en/download

VSCode extension installer

This is needed to install the SmallJS language extension.

npm install -g @vscode/vsce

TypeScript

To install TypeScript globally:

npm install -g typescript

HTTP Server

A static HTTP server is installed globally with this command:

npm install -g http-server