repository for bootstrap project initialization
This PowerShell script initializes a Bootstrap project and can optionally also include Bootstrap Icons.
Run the script in PowerShell:
./bootstrap-generator.ps1
-WithBootstrapIcons
: Add this parameter to include Bootstrap Icons.-DirectoryName
: Name for the assets directory. Default is "assets".-DestinationPath
: Directory path where the files will be saved. Default is the current path.
- The script greets the user and verifies the destination path.
- It creates the directory if it does not already exist.
- It fetches the latest Bootstrap release and downloads the assets.
- The downloaded assets are extracted and the zip file is removed.
- The assets are moved to the destination directory and the temporary directory is removed.
- If the WithBootstrapIcons parameter is set, the script repeats steps 3-5 for the Bootstrap Icons.
- Finally, the script outputs a success message and displays the used versions of Bootstrap and, if applicable, Bootstrap Icons.
The developement of this script was greatly accelerated by GitHub Copilot.