0.0.2 • Published 2 years ago
@applandeo/lib-template v0.0.2
@applandeo/lib-template
Install
npm install --save @applandeo/lib-template
Usage
import React, { Component } from 'react';
import MyComponent from '@applandeo/lib-template';
import '@applandeo/lib-template/dist/index.css';
class Example extends Component {
render() {
return <MyComponent />;
}
}
Development
make install
In order to run live dev server.
This will run application in "example" folder that you can use to test your changes.
make start
Commiting changes
We added opinionated tool that creates CHANGELOG.md file everytime that we commit new things. This means that each commit needs to be well described. Easiest way is to use
make commit
If you would like to git commit -m "" ( standard way ), then:
example:
chore: release new version v1.0.0
or
style: white-space fix white space in file XYZ
Here is the full list of types
Publish
In order to publish:
- you need to be on master branch
- your git status needs to be empty
- you need to be logged into npm (npm login)
This script will lint all files, run all tests, build the release version and if everything goes well, publish new lib version for you along with creating git tag and pushing everything to bitbucket.
make publish
License
MIT © d.slaby
0.0.2
2 years ago