[skip ci] dev: add scripts and description how to test plugins locally (#1601)

* add scripts and description how to test plugins locally

* add serve as an explicit dependency
This commit is contained in:
Karol
2025-03-31 07:45:42 +02:00
committed by GitHub
parent c372089462
commit a83ab58080
6 changed files with 1477 additions and 26 deletions
+3 -1
View File
@@ -14,7 +14,9 @@ const matched = REMOTE.match(/([^:/]+?)\/([^/.]+)(\.git)?$/);
if (!matched) throw Error('Cant parse git url');
const USERNAME = matched[1];
const REPO = matched[2];
const USER_CONTENT_LINK = `https://raw.githubusercontent.com/${USERNAME}/${REPO}/${CURRENT_BRANCH}`;
const USER_CONTENT_LINK = process.env.USER_CONTENT_BASE
? process.env.USER_CONTENT_BASE
: `https://raw.githubusercontent.com/${USERNAME}/${REPO}/${CURRENT_BRANCH}`;
const STATIC_LINK = `${USER_CONTENT_LINK}/public/static`;
const PLUGIN_LINK = `${USER_CONTENT_LINK}/.js/src/plugins`;