A `package.json` file keeps a small web-component project’s npm setup in one place. Create it in the project directory with `npm init -y`, then install Vite with `npm install -D vite`. Add a `dev` script so `npm run dev` starts the local server. section 1.3 section 9.2
Listing 2.1 package.json
{
"name": "some-project-name",
"scripts": {
"dev": "vite"
},
"dependencies": {
"@awesome.me/webawesome": "^3.0.0"
},
"devDependencies": {
"vite": "^8.0.3"
}
}
This example records a project name, a `vite` development script, Web Awesome under `dependencies`, and Vite under `devDependencies`. The component files are used separately by the page; the manifest records the packages and command needed for the project. section 2.2
For a project using only local component files, the setup can be simpler: create `package.json`, install Vite, and add `"dev": "vite"`. A Web Awesome project can instead use its personal CDN, but installing the npm package gives more control over the source files and helps avoid vendor lock-in. section 9.2 section 2.2






