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
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
's package.json
. - in
Thinkful/ui
: npm publish
- in
Thinkful/assets
: bump the thinkful-ui
version in package.json
to the new version. - in
Thinkful
: make build assets && make upload assets
, which will regenerate build hashes in docker-compose.yml
. - in
Thinkful/assets
: Make a PR with that package.json
change and docker-compose.yml
updates, and merge to master
. - 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.