JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 3
  • Score
    100M100P100Q34971F
  • License MIT

An unofficial open source yarn package to run Source code from Source Academy (CS1101S)

Package Exports

  • run-source

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (run-source) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

run-source

An unofficial open source package to run Source code from Source Academy (CS1101S) outside of the Source Academy Playground. There are currently no support for runes.

Installation

$ yarn add run-source

Usage

$ yarn run-source <path-to-file>

<path-to-file> defaults to .\index.source

Example

$ yarn run-source .\s1.source

Config

Configuration file can be found in config\default.json There are only 2 options currently:

  • source-chapter: 1-4
  • main: default path to run

Custom File Extensions

If you are using Visual Studio Code, add the following into your user settings to enable syntax highlighting for *.source files:

"files.associations": {
    "*.source": "javascript"
}

Todo

  • Add support for runes