Create a site using Next and Drupal or Contentful. The goal of this multi-tenant platform is to offer an on brand and streamlined approach to get a Penn State site up and running quickly. The platform leverages CMS along with Next.js to build a performant site that can be customized to match your departments needs.
Click here for workflow quick-links & changelog
For more app or package specific instructions please refer to the README files inside the associated directory. Some quick links listed below.
In root:
Install project dependencies
yarn
Start all applications
yarn dev
Build all applications
yarn build
Remove node modules in all projects
yarn clean-modules
Workspace app script pattern
To run a command on a specific app or package where the app/package name is the name in the corresponding package.json file:
Note - all workspace commands can be run from any directory
yarn workspace [package/app name] [command]
Storybook app example
To start just the storybook app:
yarn workspace psu-storybook dev
Add dependency to app example
will add a dependency to the @psu-flex/psu-global-ui package
yarn workspace @psu-flex/psu-global-ui add [some dependency]
Generate component example
To generate a new component and associated story with some boiler plate. The command below will generate a new component in the psu-global-ui package.
yarn workspace @psu-flex/psu-global-ui generate:component
<type>(optional scope): <description>
- API relevant changes
- feat Commits, that adds or remove a new feature
- fix Commits, that fixes a bug
- refactor Commits, that rewrite/restructure your code, however does not change any API behaviour
- perf Commits are special refactor commits, that improve performance
- style Commits, that do not affect the meaning (white-space, formatting, missing semi-colons, etc)
- test Commits, that add missing tests or correcting existing tests
- docs Commits, that affect documentation only
- build Commits, that affect build components like build tool, ci pipeline, dependencies, project version, ...
- ops Commits, that affect operational components like infrastructure, deployment, backup, recovery, ...
- chore Miscellaneous commits e.g. modifying .gitignore
Breaking changes should be indicated by an ! before the : in the subject line e.g. feat(api)!: remove status endpoint
-
Is an optional part of the format
feat: add email notification on form submit
feat(header): add the amazing button
feat!: remove ticket list endpoint
refers to JIRA-1337
BREAKING CHANGES: ticket enpoints no longer supports list all entites.
fix(api): handle empty message in request body
fix(api): fix wrong calculation of request body checksum
fix: add missing parameter to service call
The error occurred because of (reasons).
perf: reduce header api calls
build: update dependencies
build(release): `bump version to 1.0.0
refactor: update RichText node calculation as recursion
style: adjust padding on FactCard
Public permalink for any branch deployed sb https://{insert-branch-name}--64821f7a7ea081d31324f929.chromatic.com
Permalink for stackoverflow teams. Used for troubleshooting common issues specific to project. https://stackoverflowteams.com/c/psu-flex
Theory of atomic web development https://bradfrost.com/blog/post/atomic-web-design/
react-hook-form docs https://react-hook-form.com/
react-aria https://react-spectrum.adobe.com/react-aria/getting-started.html
Theme-UI docs https://theme-ui.com/getting-started
*Add in your space id and access token to connect graphiql to your space api