UI
Shared React components for Thinkful applications.
/src
Code for the shared components.
/stories
Stories for demoing components using storybook
/script
Standard bootstrap scripts (Thinkful convention).
Demo
npm run dev/script/server
Development
Requires Node version >= 12. If you want to work on UI components locally and see your changes in another app (outside the stories demo), you can use npm link.
- From
Thinkful/ui
:npm run dev
- From
Thinkful/ui
:npm link
- From the folder containing your app's
package.json
:npm link thinkful-ui
Deploying changes to thinkful-ui
thinkful-ui
changes need to be deployed to npm, then both assets
and seagull
need to be updated to use the newest thinkful-ui
.
- Bump the version in
thinkful-ui
'spackage.json
. - in
Thinkful/ui
:npm publish
- in
Thinkful/assets
: bump thethinkful-ui
version inpackage.json
to the new version. - in
Thinkful
:make build assets && make upload assets
, which will regenerate build hashes indocker-compose.yml
. - in
Thinkful/assets
: Make a PR with thatpackage.json
change anddocker-compose.yml
updates, and merge tomaster
. - in
Thinkful/seagull
: do the same steps as above. - You're done!
Caveat: Make sure the React
versions in ui
and assets
are at least roughly in sync.