usable-canvas-userscript

Usable Canvas Userscript

Template build for developing mods to Instructure's Canvas LMS using Svelte

usable-canvas-userscript

:construction: Very much under construction. Not ready for use. :construction:

Template build for developing mods to Instructure's Canvas LMS using Svelte

Based on canvas-collections in turn based on tampermonkey-svelte this template aims to provide a usable build method for developing Javascript modifications to the Canvas LMS.

The template seeks to provide

  1. Quick and painless developer experience.
  2. Support for both production modifications that can be adopted both
    1. Institutionally using Canvas theme editor and hence available to anyone using that Canvas instance.
    2. Individually as a userscript with TamperMonkey or similar and hence enabling initial testing and individual adoption.

Template features

  • npm as the package management
  • rollup as the bundler
  • Local development using Chrome
  • Material for MkDocs for documentation

Template structure

  • dev
  • dist
  • docs
  • src
  • meta.js
  • mkdocs.yml
  • package.json
  • README.md
  • rollup.build.config.js
  • rollup.config.js
  • tsconfig.json

Template usage

Getting started

  1. Clone the template repository
  2. npm install
  3. Modify settings

Modify settings

  1. Pick a name for your App and rename App.svelte and other stuff??
  2. Update the name of the repo in meta.js

Example

As an example, the existing code produces a script that adds a hello world message to the top of the Modules and Rubrics pages of a Canvas course.

Top categories

Loading Svelte Themes