This repository has been archived by the owner on Dec 19, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 6964641
Showing
34 changed files
with
3,831 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
|
||
dist | ||
.solid | ||
.output | ||
.vercel | ||
.netlify | ||
netlify | ||
|
||
# dependencies | ||
/node_modules | ||
|
||
# IDEs and editors | ||
/.idea | ||
.project | ||
.classpath | ||
*.launch | ||
.settings/ | ||
|
||
# Temp | ||
gitignore | ||
|
||
# System Files | ||
.DS_Store | ||
Thumbs.db | ||
|
||
# | ||
vite.config.ts.timestamp-*.mjs |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# (see https://www.gitpod.io/docs/config-gitpod-file) | ||
|
||
tasks: | ||
- before: corepack enable && corepack prepare && nvm install && nvm use | ||
init: pnpm install && pnpm run build | ||
command: pnpm run start | ||
|
||
ports: | ||
- port: 3000 | ||
onOpen: open-preview | ||
name: SolidStart Hackernews Example | ||
description: SolidStart Hackernews Example Preview |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
v18.12.1 |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# SolidStart Hackernews Example | ||
|
||
Hackernews example powered by [`solid-start`](https://start.solidjs.com); | ||
|
||
```bash | ||
npm init solid -- --template hackernews | ||
``` | ||
|
||
[![Open in StackBlitz](https://developer.stackblitz.com/img/open_in_stackblitz.svg)](https://stackblitz.com/github/virtuoushub/solid-start-vite-4-and-pnpm-repro) | ||
|
||
## Developing | ||
|
||
Once you've created a project and installed dependencies with `npm install` (or `pnpm install` or `yarn`), start a development server: | ||
|
||
```bash | ||
npm run dev | ||
|
||
# or start the server and open the app in a new browser tab | ||
npm run dev -- --open | ||
``` | ||
|
||
## Building | ||
|
||
SolidStart apps are built with _adapters_, which optimise your project for deployment to different environments. | ||
|
||
By default, `npm run build` will generate a Node app that you can run with `npm start`. To use a different adapter, add it to the `devDependencies` in `package.json` and specify in your `vite.config.js`. |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
{ | ||
"name": "solid-start-project-setup", | ||
"scripts": { | ||
"dev": "solid-start dev", | ||
"build": "solid-start build", | ||
"start": "solid-start start" | ||
}, | ||
"type": "module", | ||
"main": "./dist/index.js", | ||
"devDependencies": { | ||
"solid-start-node": "0.2.7", | ||
"typescript": "4.9.4", | ||
"vite": "4.0.1" | ||
}, | ||
"dependencies": { | ||
"@solidjs/meta": "0.28.2", | ||
"@solidjs/router": "0.5.1", | ||
"solid-js": "1.6.5", | ||
"solid-start": "0.2.7", | ||
"undici": "5.14.0" | ||
}, | ||
"packageManager": "[email protected]", | ||
"volta": { | ||
"node": "18.12.1" | ||
}, | ||
"pnpm": { | ||
"peerDependencyRules": { | ||
"allowedVersions": { | ||
"vite": "4" | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.