- Clone repo
- https:
git clone https://github.com/samAbeywickrama/react-component-starter.git
- ssh:
git clone git@github.com:samAbeywickrama/react-component-starter.git
- https:
- Remove existing git repo -
rm -rf .git
- Initialize new git repo -
git init
- Push your changes to your git repo
git remote add origin {git repo url here}
git push -u origin master
This repo uses travis CI with semantic release to automate the release process.
- Go to Travis https://travis-ci.org/ and signup
- Enable TravisCI for your repository form the Travis CI dashboard.
- Copy
.sample-semantic-release.travis.yml
intotravis.yml
- Run
npx semantic-release-cli setup
. You will see a list of questions. - Select
Travis CI
as the CI tool and answer the other questions. (You can use any other ci tool as you like) - Go to https://coveralls.io/ and sign up
- Enable coveralls for your repository from the coveralls dashboard
note: Do not change version if you are going to use semantic release
- Open package.json and change following lines
- name
- description
- keywords
- author
- bugs.url
- homepage
This repo uses semantic-release
with commitizen
. Releases are managed by Travis CI. To use this feature run npm run commit
to commit your changes to git. once you have pused/merged your changes to master branch it will trigger a travis build.
You can find all the rollup related configurations in rollup.config.js
- cd into to
exmaple/cra
- Run
npm install
- Run
npm intall ../..
now your component is included innode_modules
- Open
example/cra/src/app.js
and import your component. Call it in the render method - Run
npm start