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.
- 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)
- A recent version of Node.js
node
(tested with 22 LTS) and its package managernpm
- On Windows and Mac download and run the installer
- On Linux check the installation guide
- git clone the repository
- install packages
npm install
- install default sciter SDK
npm run install-sdk
- start the sandbox
npm run scapp
NOTE: scapp
command is broken in 6.0.0.4 and 6.0.0.5
npm run install-sdk [version]
# example
npm run install-sdk 5.0.3.21
npm run [scapp|scapp32]
npm run [usciter|usciter32]
npm run stop
npm run sdk-version
Javascript code linting uses xo which uses eslint internally.
npx xo (--fix) [file1 file2]
Note: without files, xo automatically finds the files to lint.
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",
"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"
},
You can set your project to use a specific SDK version by adding the object key sciterVersion: 5.0.1.2
inside package.json
.
- 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)
# bump version
npm version 1.4.6
# create package locally
npm pack
# publish package (send to npmjs.com)
npm publish