feat: replace build to use vite, playwright#55
Merged
Conversation
- Add package.json with project metadata and development dependencies - Create Playwright configuration for testing across multiple browsers - Implement main JavaScript functionality for mobile menu, smooth scrolling, and blog loading - Add Tailwind CSS styles for branding and utility classes - Configure Vite for building and serving the application
Contributor
There was a problem hiding this comment.
Pull Request Overview
This pull request migrates the Acoruss website from a CDN-based development approach to a modern build system using Vite, implementing performance optimizations, automated testing capabilities, and improved development workflows.
- Replaces Tailwind CDN with local compilation for better performance and tree-shaking
- Introduces Vite as the build tool with optimized bundling and development server
- Adds Playwright for automated browser testing and development quality assurance
- Establishes comprehensive tooling for code formatting, linting, and deployment automation
Reviewed Changes
Copilot reviewed 10 out of 12 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
| vite.config.js | Configures Vite build tool with Tailwind plugin, optimization settings, and development server |
| src/style.css | Migrates styles from inline HTML to dedicated CSS file with custom utilities and animations |
| src/main.js | Extracts JavaScript functionality from HTML into modular file with enhanced blog loading |
| playwright.config.js | Sets up cross-browser testing configuration for quality assurance |
| package.json | Defines project dependencies, scripts, and metadata for the new build system |
| index.html | Removes inline styles and scripts, now references Vite-managed assets |
| .prettierrc.json | Establishes code formatting standards for consistent style |
| .eslintrc.json | Configures code linting rules for quality and consistency |
| .github/workflows/deploy-pages.yml | Updates deployment workflow to use Node.js build process |
| README.md | Comprehensive documentation for the new development and testing workflows |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
…e config for better path resolution
- Created `privacy-policy.html` and `terms-of-service.html` with structured content and styling. - Updated Vite configuration to set the root directory to `src`, adjusted output directory, and specified input files for the build process.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request introduces the initial setup for the Acoruss company website, establishing a modern development workflow, automated deployment, code quality tooling, and the main application logic. The changes lay the foundation for a performant, maintainable, and feature-rich static site, including blog integration and responsive UI enhancements.
Development Environment & Tooling:
package.jsonwith scripts for development, build, preview, formatting, and linting, and included dependencies for Vite, Tailwind CSS, ESLint, and Prettier..eslintrc.jsonand.prettierrc.jsonfor code linting and formatting standards, ensuring code consistency and quality. [1] [2]playwright.config.jsto enable cross-browser and mobile testing using Playwright MCP.Automated Build & Deployment:
deploy-pages.yml) to automate deployment to GitHub Pages when release pull requests are merged, incorporating build steps with Node.js, dependency installation, and artifact upload. [1] [2]Documentation:
README.mdto provide detailed setup, development, testing, deployment, and design system documentation for contributors and maintainers.Main Application Logic:
src/main.jsimplementing:Development Environment & Tooling
package.jsonwith scripts for development, build, preview, formatting, and linting, including dependencies for Vite, Tailwind CSS, ESLint, Prettier, and Terser..eslintrc.json,.prettierrc.json) to enforce code style and quality standards across the project. [1] [2]playwright.config.js) for automated browser and mobile testing.Automated Build & Deployment
deploy-pages.yml) to automate deployment to GitHub Pages on merged release PRs, with steps for Node.js setup, dependency installation, build, and artifact upload. [1] [2]Documentation
README.mdwith comprehensive instructions for setup, development, testing, deployment, design system, and feature overview.Main Application Logic
src/main.jswith: