2.1.0 • Published 3 months ago

sciter-sandbox v2.1.0

Weekly downloads
-
License
MIT
Repository
-
Last release
3 months ago

sciter sandbox

latest version downloads

This is a sciter.js cross-platform development environment, making it easy to build and test Sciter applications. The environment automatically installs the Sciter SDK and provides various tools to streamline development.

features

  • works on Windows, Mac and Linux
  • automatically install the sciter SDK
  • easily switch between SDK versions
  • start scapp with inspector
  • auto-detects changes to your code and refreshes
  • lint javascript code (check for issues and format code)

sciter sandbox gif

requirements

  • A recent version of Node.js node (tested with 22 LTS) and its package manager npm

start sandbox

  • git clone the repository
  • install packages npm install
  • install default sciter SDK npm run install-sdk
  • start the sandbox npm run scapp

commands

install sciter SDK

npm run install-sdk [version]

# example
npm run install-sdk 6.0.0.7

NOTE: if you don't select a version, the default version will be installed.

start scapp / usciter

npm run [scapp|scapp32]

npm run [usciter|usciter32]

close scapp, usciter and inspector

npm run stop

check SDK version

npm run sdk-version

lint code

Javascript code linting uses xo which uses eslint internally.

npx xo (--fix) [file1 file2]

Note: without files, xo automatically finds the files to lint.

add sandbox to your project

You can also use the sandbox in your own projects:

  • inside your project root dir npm install --save-dev sciter-sandbox
  • add the following scripts inside package.json
  "scripts": {
    "install-sdk": "node ./node_modules/sciter-sandbox/scripts/install.mjs cleanup",
    "sdk-version": "node ./node_modules/sciter-sandbox/scripts/version.mjs",
    "scapp": "node ./node_modules/sciter-sandbox/scripts/start.mjs scapp",
    "usciter": "node ./node_modules/sciter-sandbox/scripts/start.mjs usciter",
    "stop": "node ./node_modules/sciter-sandbox/scripts/stop.mjs",
    "scapp32": "node ./node_modules/sciter-sandbox/scripts/start.mjs scapp32",
    "usciter32": "node ./node_modules/sciter-sandbox/scripts/start.mjs usciter32"
  },

define project SDK version

You can set your project to use a specific SDK version by adding the key sciterVersion: 6.0.0.7 inside package.json.

known issues

  • Linux and Mac require more testing
  • all OSes: usciter does not connect to the inspector
  • Linux: inspector has issues communicating (I don't know why)

how to release

# bump version
npm version 1.4.6

# publish package (send to npmjs.com)
npm publish
2.0.1

3 months ago

2.0.0

3 months ago

1.5.9

4 months ago

1.5.8

4 months ago

1.5.7

4 months ago

1.5.6

4 months ago

1.5.5

4 months ago

1.5.4

4 months ago

1.5.3

4 months ago

1.5.2

4 months ago

1.5.1

4 months ago

1.5.0

4 months ago

2.1.0

3 months ago

1.4.6

2 years ago

1.4.5

2 years ago

1.4.4

2 years ago

1.4.3

2 years ago

1.4.2

2 years ago

1.4.1

2 years ago

1.4.0

2 years ago

1.3.9

2 years ago

1.3.7

3 years ago

1.3.6

3 years ago

1.3.8

3 years ago

1.3.5

3 years ago

1.3.4

3 years ago

1.3.3

3 years ago

1.3.2

3 years ago

1.3.1

3 years ago

1.3.0

3 years ago

1.2.11

3 years ago

1.2.10

3 years ago

1.2.9

3 years ago

1.2.8

3 years ago

1.2.7

3 years ago

1.2.6

3 years ago

1.2.5

3 years ago

1.2.4

3 years ago

1.2.3

3 years ago

1.2.2

3 years ago

1.2.1

3 years ago

1.2.0

3 years ago

1.1.15

3 years ago

1.1.14

3 years ago

1.1.13

3 years ago

1.1.12

3 years ago

1.1.11

3 years ago

1.1.10

3 years ago

1.1.9

3 years ago

1.1.8

3 years ago

1.1.7

3 years ago

1.1.6

3 years ago

1.1.5

3 years ago