Table of Contents
npm install
npm run dev
This project uses environment variables for the different apps
/libs
.
We recommend fetching them from Vercel and then adjusting based on your project needs.
npm run vercel:env_link
npm run vercel:env_pull
See Vercel docs for more info
Installs all dependencies.
Run npm run web:serve
to start the Nextjs dev server. Navigate to http://localhost:4200
Run nx g web:block --name SomeName
to scaffold a new block.
Run nx run web:generate_graphql_types:watch
to start the graphql codegen script in watch mode.
Run npm run storybook
to start the Storybook dev server Navigate to http://localhost:4400/
Run npm run generate
to update auto generated code (theme variables).
Run npm run test
to execute all lint, unit and e2e tests in the project.
Go to package.json
to see more run scripts.
See more documentation in the ./docs
directory.
These are the available setups which can be accessed using the different branches.
Branches | Description |
---|---|
main |
This is a full setup including a Nextjs Application and a Sanity Studio setup. |
umbraco |
This is a setup for a Nextjs Application for use with umbraco-boilerplate. |
setup/simple |
This is a simple setup including a Nextjs Application. |
git checkout [branch]
Feature | main |
setup/simple |
umbraco |
---|---|---|---|
NX (including NX Cloud) | ✅ | ✅ | ✅ |
Next.js app |
✅ | ✅ | ✅ |
Sanity Studio app |
✅ | ❌ | ❌ |
Theme SCSS lib |
✅ | ✅ | ✅ |
UI library SCSS lib |
✅ | ✅ | ✅ |
Meilisearch lib/service |
✅ | ❌ | ❌ |
Mailchimp lib/service |
✅ | ❌ | ❌ |
Storybook lib/utils |
✅ | ✅ | ✅ |
Tracking lib/service |
✅ | ⚡ | ✅ |
Testing (E2E) lib/service |
✅ | ✅ | ✅ |
Common Utilities lib/utils |
✅ | ✅ | ✅ |
Chromatic github/action |
✅ | ✅ | ✅ |
NX Affected [test , e2e ] github/action |
✅ | ✅ | ✅ |
Commitlint | ✅ | ✅ | ✅ |
✅ Full support ⚡ Supported (Needs configuration) ❌ No Support
The project is using npm@8.1.1
to manage the monorepo and it's dependencies.
That means that each project should include the dependencies related to that project and they should not be part of the root package.json
.
This project uses Conventional Commits rules.
You can either format the project using standard commit rules manually, or use the included cli tool. Run npm run commit
or npx git-cz
to start the cli tool.