@tollbrothers/tollbrothers-ui v1.33.1
Tollbrothers UI
React library for Tollbrothers
Workflow
- 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
Workflow Alternative if above doesn't work
Install yalc
Run npm i yalc -g
(you only have to ever do this once on your computer)
Step 1.
Run yalc push --sig
in the tollbrothers-ui project
Run npm run start
in the tollbrothers-ui project
Run npm run watch
in the tollbrothers-ui project in another terminal window
Step 2.
Run yalc link @tollbrothers/tollbrothers-ui
in the parent project
Clean up
Run yalc remove @tollbrothers/tollbrothers-ui && npm install
in the parent project
Stop the running scripts from Step 1 in the tollbrothers-ui project
Run yalc installations clean @tollbrothers/tollbrothers-ui
in the tollbrothers-ui project
Installation
npm i next react react-dom sass blaze-slider
Local development
npx create-next-app@latest && npm i sass blaze-slider
npm install <path to tollbrothers-ui>
Required CSS
// ./pages/_app.js
import '@tollbrothers/tollbrothers-ui/dist/index.modern.css'
import 'blaze-slider/dist/blaze.css'
Node version
Take a look at the .nvmrc
file.
Publish changes
Publishing has been automated by the Semantic Release Workflow.
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:
1. Create a new branch with your changes Make sure you have a commit prefixed with either 'fix:' or 'feat:'
2. Create a PR to from your branch to master
3. On merge a github action called release will kick off
4. A new release will be published on npm
5. Confirm the release number and bump the necessary package.json files
Things to consider
- 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
Keep in mind we use the Semantic Release package
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
If you see publish errors
Make sure the NPM package has read/write turned on under @tollbrothers org -> developers
6 months ago
7 months ago
7 months ago
8 months ago
8 months ago
8 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
10 months ago
12 months ago
10 months ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago