TSLint styleguide based on our rules & prettier, before you even commit
Standardize commits to show what does the commits has, currently checking:
Feature? breaking change? Fix? Refactor? Docs? Styleguide? Test?
Testing functions, props, state & life cycle methods in React Components
UI Testing (this is the only thing in this repo that is not mandatory, but you should definitely use the server we setup!)
Checks percentage of code covered by tests based on Jest configuration in package.json
After CI has completed its tasks, we need repo owners to registry a review on the code to allow merging to master
Releases right version BASED ON COMMITIZEN to Github & NPM
Commit
TSLint
Review
New
Release
How does it determine to which version should it update? Based on x.y.z fundamentals
import React from 'react';
class Example extends React.Component {
render() {
return (
<div>
Hello World!
</div>
)
}
}
export default Example;
import React from 'react';
class Example extends React.Component {
render(): React.ReactNode {
return (
<div>
Hello World!
</div>
)
}
}
export default Example;
import React from 'react';
interface IProps {
message?: string;
}
class Example extends React.Component<IProps> {
render(): React.ReactNode {
return (
<div>
{this.props.message}
</div>
)
}
}
export default Example;
import React from 'react';
class Example extends React.Component {
render() {
return (
<div>
{this.props.message}
</div>
)
}
}
export default Example;
import React from 'react';
interface IProps {
message?: string;
}
interface IState {
title: Date;
}
class Example
extends React.Component<IProps, IState> {
render(): React.ReactNode {
return (
<div>
{this.state.title}
{this.props.message}
</div>
)
}
}
export default Example;
import React from 'react';
class Example extends React.Component {
render() {
return (
<div>
{this.props.message}
</div>
)
}
}
export default Example;
@santospatrick