0.2.0 • Published 4 years ago
utexas-components v0.2.0
UTexas Components
This provides React components for use in UT web projects.
Running locally
- From the source repo,
npm install, thennpm run start
Developing components
- Components live in
/src/lib/components. Create a new one based on one of the existing ones. - The component then needs to be exported in
/src/lib/index.js - The component should be added to the
src/App.js, so that it can be viewed from this repo in the local dev environment.
Publishing a new version
- Increment the
versionin thepackage.json - Running the
buildscript (e.g.npm run build) will produce the compiled packaged output in thedistfolder at the top level of the project to verify. - Commit and push changes to the source repo.
- Can publish via
npm publishto make new version available on npm.
Pulling in the Forty Acres theme
- The current forty_acres styling from the Drupal Kit has been brought over and imported. It gets transpiled via Babel into components. The
src/lib/stylesfolder contains the data copied over from the forty_acres Drupal theme. Thetexas-design-systemfolder did not have theimagesfolder initially, but this should be retrievable from the forty_acres / STARTERKIT subtheme folder.