@kcinternal/react-testkit v0.2.5
KC Utils
This project is monorepository contains all utilities for all projects that generate from monots project.
For End User
This repository contains 2 scope projects @kcinternal
and @kcutils
.
@kcinternal
This is a internal projects which contains all internal tools like compiler, eslint configuration generic testkit. Published on org/kcinternal on npm
- commandline - contains useful commandline for monots projects.
icompiler-tsc
- for tsc compile without tsconfig fileicompiler-webpack
- for webpack compile (use with @kcinternal/configuration package)icleaner [--all]
- for clean package results, includes log file, buildinfo, etc. This will log all files/folders that deleteitester
- using jest to run test (use with @kcinternal/configution package)irunner [--index <filename>]
- using node to execute .js file. Default will find index.js file to custom pass--index <filename>
to commandline
- configuration - contains useful configuration for commandline and more
eslint
- supportnode
andreact
webpack
- supportnode
andreact
jest
- supportnode
andreact
- graph - for generate dependencies graph for monots projects
- react-testkit - add support enzyme and other testkit for react
@kcutils
THis is a utils projects for external projects to use
- error - contains error management and custom throwable
- logger - another logger services
- helper - for kcutils and might handle for external user as well
For Contribution User
I create new mono repository for typescript projects. Which include typescript
, webpack
and react
. For testing, I choose jest
as testing framework. For linter, I choose eslint
combine with prettier
.
How to use
- choose technology that you want. here
Create new package
you can copy code from _example package. Mainly you need src
folder and package.json
file. And we have some optional file you might want.
Support tsc compiler
If you want use icompiler-tsc
command. You just update build command on package.json and done.
Support webpack compiler
If you want to use icompiler-webpack
command. You have to add webpack.config.js and tsconfig.json file.
Support linter and formatter
By default this have editorconfig file so for basic formatting like space, newline, final line it will support on most of text-editor. but for advance formatting like eslint and prettier, you have to add .eslintrc.js file
Support testing
If you want to use itester
command. You have to add jest.config.js file.
Technology
- CI/CD
- github workflow - for testing only
- circleci - for testing and deployment; Need more configuration on circleci side
- Package management
- dependabot - for auto create and merge new package from package.json
- Commit management
- gitgo - custom commit message which follow angular commit conversion
- Code analytics
- sonar - for checking code smell and errors; Need more configuration on sonar side