- Install latest NodeJS LTS version using
tj/n
:- https://github.com/tj/n
- Note if you're on Windows, you'll have to use a different node installation method
- Note: the highest version of Node to use currently (as of 12/17/2024) is 16.
- Note: the recommended version of Node to use is 14.
- Install latest Yarn v1:
yarn install
yarn run serve
- set
DEV_SERVER_HOST
to change the default host of0.0.0.0
- set
DEV_SERVER_PORT
to change the port of8080
- set
- navigate to http://localhost:8080 in a supported browser
- add a
clsp
url to any of the inputs, then click submit - click play on the video element (if not using an autoplay player)
Open the developer console and run the following:
window.localStorage.setItem('skylineos.clsp-player.logLevel', [logLevel]);
where [logLevel]
is a valid log level, which is currently a number from 0 - 5. See src/js/utils/logger.js
.
Open the developer console and run the following:
window.localStorage.setItem('skylineos.clsp-player.logLevel', null);
To lint your code after making changes, run:
yarn run lint
@see the test README.md here ./test/jest/README.md
To test the TS definition file and run the unit tests on the codebase, run:
yarn run test
A code coverage report will be available at test/jest/coverage/lcov-report/index.html
. A link to this will be shown in the terminal after running the tests.
@see:
yarn version --new-version 1.2.3+4
NOTE - Use npm
to publish, NOT yarn
NOTE - YOU CANNOT PUBLISH A BUILD VERSION / TAG!
NOTE - Only publish pre-releases and releases!
- It is best to do this immediately after cutting a release tag
- Confirm that any webpack dev servers used for development are shut down
ps aux | grep yarn
- Checkout the version tag you want to publish
- e.g.
git checkout v0.22.1-2
- e.g.
- You MUST be on an unmodified checkout of the
git
tag you intend to publish. i.e,git status
should show:- You have a tag checked out
- There are no changes staged for commit
- You MUST have already run
yarn install
, since the dependencies are necessary for building and publishingrm -rf node_modules
yarn
- Ensure all lint checks and tests pass (they better, since this is a pre/release version)
yarn run lint
yarn run test
- Confirm that the build passes
yarn run build
NODE_ENV=production yarn run build
- You MUST be logged in to the public npm registry
- You MUST have access to the
skylineos
organization on npm - You MUST ONLY publish releases (e.g.
0.18.0
) or pre-releases (e.g.0.18.0-4
)- REMINDER - Use
npm
to publish, NOTyarn
- REMINDER - YOU CANNOT PUBLISH A BUILD VERSION / TAG!
- REMINDER - Only publish pre-releases and releases!
- pre-releases should be published with the
beta
tag, e.g.npm publish --tag beta
- releases should be published via
npm publish
- REMINDER - Use