Overview:
The cdnjs/static-website repository hosts the new cdnjs website built with Vue & Nuxt, following the proposed branding. Completely reliant on the cdnjs API, the website ensures low resource usage and limited app logic.
Features:
- Node.js Project: Built on Node.js with specified requirements.
- Dependency Lock File: Ensures consistent dependency versions across installations.
- Webpack Bundle Analysis: Utilizes Webpack to generate client-side bundle, with analysis tools available.
Installation:
- Ensure Node.js is installed according to the specified version in .nvmrc.
- Install Node dependencies using:
npm install
- Start Nuxt in development mode:
npm run dev
Summary:
The cdnjs/static-website is a Vue & Nuxt project relying on the cdnjs API for minimal resource usage. Developers can set up the website by following the specified Node.js requirements and utilizing the provided lock file for consistent installs. The use of Webpack allows for effective bundle analysis, enabling developers to better understand the size and components of the final bundle. By correctly setting environment variables for site base, Google Analytics, and Sentry error logging, developers can ensure smooth deployment and error tracking in production environments.