This document describes deployment notes for testing and showcase production.
To start a development server, execute the following commands:
# Install all the dependencies
pnpm i
# Build all Angular Components for testing
pnpm -r build-dev
# Build the main showcase project
pnpm build-dev amc-docs
# Start the server
pnpm startIf you want to test with production builds, use the following commands:
# Install all the dependencies
pnpm i
# Build all Angular Components
pnpm -r build
# Build the main showcase project
pnpm build amc-docs
# Start the server
pnpm startThis project is configured to be deployed in GitHub Pages.
The site is available at https://fbf-prog64.github.io/angular-material-components/.
The deployment can be done in two different ways:
The project includes a GitHub Actions workflow that is automatically run when:
- Making a push to the
devormainbranches. - A Pull Request is made to
devormain. - The workflow is manually executed from the "Actions" tab in GitHub.
This method must be used when changing anything from Angular.
To manually deploy changes to the site, follow these steps:
- Ensure you have both NodeJS and pnpm installed.
- Clone the repository.
- Checkout the
gh-pagesbranch. - Perform the desired changes.
- Commit and push the changes directly to
origin/gh-pages.
This method must be used when changing anything static (such as common dependencies or the home page).
- The
base-hrefis configured as/angular-material-components/. - The site files (including transpiled components) are stored in the
gh-pagesbranch.
If you have problems with publishing, please check the following:
- Check the workflow logs to determine if something failed ("Actions" tab).
- Double-check that the build completes without errors and runs locally.