mirror of
https://github.com/xodio/xod.git
synced 2026-03-15 05:06:59 +01:00
af08d68309fce795223dbadb4bc461bea60d37fc
XOD
Deployment on localhost
Install all dependencies and perform package cross-linking with:
$ yarn install
Build the code:
$ yarn run build
Browser IDE
$ yarn run dev -- xod-client-browser
Open http://localhost:8080 in your browser.
Desktop IDE
$ yarn run electron-rebuild
$ yarn run start:xod-client-electron
Maintenance Scripts
Cleaning
yarn run clean:distremoves all build artifactsyarn run clean:node_modulesremoves all installednode_modulesin all packagesyarn run cleanresets the sandbox to just-cloned state
Verification
yarn run lintperforms lint-checking in all packagesyarn run test -- <name> --onlyruns test on package with specified<name>. E.g.yarn run test -- xod-client --only.yarn run test -- <name>runs test on package with specified<name>, and all packages it depends on directly or indirectly. E.g.yarn run test -- xod-client.yarn testtests all packagesyarn test-funcruns automated end-to-end functional tests. You can setXOD_DEBUG_TESTSenvironment variable to keep IDE open on failure:XOD_DEBUG_TESTS=1 yarn test-funcyarn run verifybuilds lints and tests; run this prior to pull requestyarn run ciinstalls and verifies; used as a script for CI-server
Run yarn start:spectron-repl to start IDE under control of
Spectron. Then you can use objects
provided by REPL to query elements, click buttons, etc. It would help in
creating functional tests for IDE.
Building
yarn run buildbuilds all packagesyarn run build -- <name> --onlybuilds a package with specified<name>, e.g.yarn run build -- xod-cli --onlyyarn run build -- <name>builds a package with specified<name>and all its dependencies, e.g.yarn run build -- xod-client-electronyarn run dev -- <name> --onlybuilds a package with specified<name>and stays in watch mode with auto-rebuild when its files change, e.g.yarn run dev -- xod-cli --onlyyarn run dev -- <name>builds a package with specified<name>and all its dependencies, then stay in watch mode looking for changes in that package or any of its dependencies; e.g.yarn run dev -- xod-client-browser
Packaging
yarn run bootsrapcreates all necessary links between local packages and installs their dependencies
Distributing
-
Creates a distribution artifact corresponding to host's platform:
yarn install yarn run verify yarn run electron-dist
Contributing
Feel free to contribute to the project! Make sure to read contribution guidelines.
Jetbrains users can benefit from XOD Jetbrains Live Template.
Description
Languages
JavaScript
78.9%
C++
11.7%
Reason
4.9%
SCSS
4.2%
Shell
0.1%