Skip to content
This repository has been archived by the owner on Dec 19, 2022. It is now read-only.

Commit

Permalink
init: 🚀
Browse files Browse the repository at this point in the history
  • Loading branch information
virtuoushub committed Dec 17, 2022
0 parents commit 6964641
Show file tree
Hide file tree
Showing 34 changed files with 3,831 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .gitignore
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
12 changes: 12 additions & 0 deletions .gitpod.yml
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
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
v18.12.1
26 changes: 26 additions & 0 deletions README.md
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`.
33 changes: 33 additions & 0 deletions package.json
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": "pnpm@7.18.2",
"volta": {
"node": "18.12.1"
},
"pnpm": {
"peerDependencyRules": {
"allowedVersions": {
"vite": "4"
}
}
}
}

0 comments on commit 6964641

Please sign in to comment.