Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Latest commit

 

History

History
History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

README.md

Outline

Debug Folder

This folder is dedicated to creating and testing debug files that won't be committed to the repository. It provides a safe environment for contributors to experiment and test without impacting the main codebase. It also offers an easy way to manage multiple sandboxes and includes a default template to help you get started quickly.

Usage

Before using the package, initialize the common root directory for all experiments by running:

npm run init

Creating a Sandbox

To create a new sandbox, use the following command:

npm run create <NAME>

Replace <NAME> with the desired name for your new sandbox, which will be created under playground/<NAME>.d.

By default, the sandbox includes lightweight-charts, typescript, and vite. Additional packages can be installed as needed, and any installed package will be shared across all sandboxes, both existing and future.

Running a Sandbox

Ensure that lightweight-charts is built, as it depends on your local copy.

To (re)build lightweight-charts, run:

npm run build --prefix ..

To run a sandbox, use the serve command. This starts a web server, compiles TypeScript, and enables live reload when files change.

npm run serve <NAME>

To run sandbox against production (minified) build of the lightweight-charts:

npm run serve:prod <NAME>

Removing a Sandbox

If you need to delete a sandbox, use the following command:

npm run remove <NAME>

This will remove everything under playground/<NAME>.d, including the directory itself.

Morty Proxy This is a proxified and sanitized view of the page, visit original site.