- We are using Node 8. If you need to work with multiple versions of Node, you might consider using nvm.
- This repository uses yarn to manage node dependencies. Please install yarn globally using
npm install --global yarn. - This repository uses typescript. Please install yarn globally using
yarn global add typescript ts-node - This repository uses mocha to run tests.
yarn global add mocha
You would only do this once after you cloned the repository.
- Clone this repository from git.
cdintosteedos-core.- We develop on the
developbranch and release from themasterbranch. At this point, you should do initiate agit checkout -t origin/develop. yarn bootstrapto bootstrap the packages in the current Lerna repo. Installs all of their dependencies and links any cross-dependencies.yarnto bring in all the top-level dependencies.- Open the project in your editor of choice.
This compiles the typescript to javascript.
This cleans all generated files and directories. Run yarn cleal-all will also clean up the node_module directories.
This tests the typescript using ts-node.
This lists all the typescript. If there are no errors/warnings from tslint, then you get a clean output. But, if they are errors from tslint, you will see a long error that can be confusing – just focus on the tslint errors. The results of this is deeper than what the tslint extension in VS Code does because of semantic lint rules which requires a tsconfig.json to be passed to tslint.