1.3.0 • Published 9 months ago

pro-local-scripting v1.3.0

Weekly downloads
-
License
LGPL-3.0-or-later
Repository
github
Last release
9 months ago

Pro Local Scripting (pls)

Scripting box3 pro code in local

After 1.3 pls will check version both configuration and browser!

Using different versions on different clients together may cause unknown bugs.

Install

yarn global add pro-local-scripting

Use

pls <scripting-dictionary>

If you are scripting at /box3/foo/bar, you have to run pls /box3/foo/bar

Browser

Install pls.user.js GM script to your Tampermonkey
Join map https://view.dao3.fun/e/{mapId} and join in the game
Press F12 and open console
Run startPls(port in your config)

Configure

  • Create pls.json
  • Copy the json below into pls.json
{
    "version": "1.3",
    "mapId": "114514eeaaa",
    "port": 6420,
    "entry": "/foo/bar/src/index.js",
    "dist": "/foo/bar/out.js",
    "watch": "/foo/bar/src",
    "beforeBundle": "tsc",
    "type": "script",
    "banner": "// Pack by Pro Local Scripting",
    "autoFetchDeclare": true
}
KeyDescriptionRequireDefault
versionCurrent versiontrue
mapIdThe id of your map (Like https://dao3.fun/edit/bdb29e0f7060a56dfa1e belongs to bdb29e0f7060a56dfa1e)true
portThe port server listen. Please use the same port in browser extensiontrue
entryThe code source entrytrue
distGenerated code outputtrue
watchIf setted, will watch the target dictionarytrue
beforeBundleIf setted, will run the command inside after watch dictionary change and before bundlefalse''
typeYour code is module or scriptfalse'script'
bannerThe banner at the top of your codefalse''
autoFetchDeclareWill fetch declare file automaticallyfalsetrue
1.3.0

9 months ago

1.2.4

9 months ago

1.2.3

9 months ago

1.2.2

9 months ago

1.2.1

9 months ago

1.2.0

9 months ago

1.1.6

9 months ago

1.1.5

9 months ago

1.1.4

9 months ago

1.1.3

9 months ago

1.1.2

9 months ago

1.1.1

9 months ago

1.1.0

9 months ago

1.0.2

9 months ago

1.0.1

9 months ago

1.0.0

9 months ago