Monorepo with a set of tools and utilities, developed by our team, to ease our day-to-day work on projects.
Tools are designed to be used in projects with Javascript and Typescript and are designed to increase developer performance as well as unify development experience.
IMPORTANT: we use our custom yarn bundle
To start using it:
First time:
yarn set version https://raw.githubusercontent.com/atls/raijin/master/yarn/cli/dist/yarn.mjs
- installs our latest custom yarn bundle in the project scope.
Upgrade already installed bundle:
yarn set version atls
- updates bundle to latest version and updates@atls/code-runtime
dependency to latest
Besides standard yarn
scripts we developed our custom ones for ease of work:
yarn check
- executestypecheck
,lint
,format
. Executes automatically on commits viahusky
. Execute before createing Pull Requestyarn files changed list
- print out list of changed filesyarn commit ...
- work with git commitsmessage
- create commit messagestaged
- move commit to stage
yarn typecheck
- executes type checkyarn lint
- executes ESLint--cache
- executes ESLint with cache
yarn format
- reformats whole project based on ourprettier
config
yarn service build
- build as service bundleyarn service dev
- run service in dev modeyarn library build
- build as libraryyarn image pack
- build as docker image via buildpacks
In package.json
of entrypoint you can add following options:
"packConfiguration": {
"builderTag": "22",
"buildpackVersion": "0.1.1",
"require": [
"curl",
"htop"
]
}
Where:
builderTag
- NodeJS version to use. Available optionsbuildpackVersion
- buildpacks to use. Available optionsrequire
- array of additional dependencies to be available in final image. Available options are here underatlantislab/buildpack-extension-...
yarn test ...
- run testsintegration
- integration tests. Runs tests inintegration
foldersunit
- runs all tests besides ones inintegration
foldersname of file/test suite
- runs only tests matching pattern
Options:
--watch
- run tests and rerun upon changes in linked files--watchAll
- run tests in any changes in repo
yarn workspaces changed foreach image pack
- build services with local changesyarn workspaces foreach image pack
- build all services
yarn generate project
- generate project schematicsyarn badges generate
- generates badges in root README.md based on version in root package.json