React library for Tollbrothers.
- From
tollbrothers-ui-library
point package.json to local e.g.npm i ../tollbrothers-ui
- Make sure your library file is exporting e.g. export const
- Run
tollbrothers-ui
repo withnpm run start
this will listen to changes and be reflected intollbrothers-ui-library
npm i next react react-dom sass blaze-slider
npx create-next-app@latest && npm i sass blaze-slider
npm install <path to tollbrothers-ui>
// ./pages/_app.js
import '@tollbrothers/tollbrothers-ui/dist/index.modern.css'
import 'blaze-slider/dist/blaze.css'
Take a look at the .nvmrc
file.
Publishing has been automated by the Semantic Release Workflow.
Basically, follow the commit message format below. Then when the commit is posted on the master
branch semantic-release will do its thing and publish a new version on merge to master
or a direct commit to master
.
For instance:
In while in the root level of tollbrothers-ui
do the following:
- Create a new branch with your changes
Make sure you have a commit prefixed with either 'fix:' or 'feat:'
- Create a PR to from your branch to master
- On merge a github action called release will kick off
- A new release will be published on npm
- Confirm the release number and bump the necessary package.json files
- You can publish code without commiting it. Not sure why you would but there are no guards to prevent you from doing so.
- On github, the org is
tollbros
- On npm, the org is
tollbrothers
so if you want to bump it a specific way you need to prefix your commit e.g. fix:* e.g feat:*
if not, i think it defaults to a minor release