Skip to content

Commit

Permalink
enhancement/adopt pnpm (#21)
Browse files Browse the repository at this point in the history
  • Loading branch information
thescientist13 authored Jan 27, 2025
1 parent ad8b48d commit 311f74c
Show file tree
Hide file tree
Showing 8 changed files with 3,165 additions and 8,059 deletions.
2 changes: 1 addition & 1 deletion .npmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
legacy-peer-deps=true
public-hoist-pattern[]=@lit-labs/*
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
18.20.2
22.13.0
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,14 @@ You can see the live demo at [https://greenwood-lit-ssr.vercel.app/](https://gre
## Setup

To run locally
To run locally:
1. Install [**pnpm**](https://pnpm.io/installation)
1. Clone the repo
1. Run `npm ci`
1. Run `pnpm i`

You can now run these npm scripts
- `npm run dev` - Start the demo with Greenwood local dev server
- `npm start` - Start the demo with a production Greenwood build
- `pnpm dev` - Start the demo with Greenwood local dev server
- `pnpm start` - Start the demo with a production Greenwood build

> 👉 **Note**: _If deploying to your own Vercel instance, make sure you set the NodeJS version to `18.x` in your Vercel project's General settings_.
Expand Down
4 changes: 3 additions & 1 deletion greenwood.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ import { greenwoodPluginTypeScript } from '@greenwood/plugin-typescript';
export default {
plugins: [
greenwoodPluginRendererLit(),
greenwoodPluginAdapterVercel(),
greenwoodPluginAdapterVercel({
runtime: 'nodejs22.x'
}),
greenwoodPluginTypeScript({
extendConfig: true
})
Expand Down
Loading

0 comments on commit 311f74c

Please sign in to comment.