Skip to content

Commit

Permalink
tests: Add solid.js tests
Browse files Browse the repository at this point in the history
  • Loading branch information
pan93412 committed Aug 13, 2023
1 parent b06d273 commit d57b775
Show file tree
Hide file tree
Showing 32 changed files with 3,964 additions and 0 deletions.
28 changes: 28 additions & 0 deletions tests/node-solid-static/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@

dist
.solid
.output
.vercel
.netlify
netlify

# Environment
.env
.env*.local

# dependencies
/node_modules

# IDEs and editors
/.idea
.project
.classpath
*.launch
.settings/

# Temp
gitignore

# System Files
.DS_Store
Thumbs.db
30 changes: 30 additions & 0 deletions tests/node-solid-static/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# SolidStart

Everything you need to build a Solid project, powered by [`solid-start`](https://start.solidjs.com);

## Creating a project

```bash
# create a new project in the current directory
npm init solid@latest

# create a new project in my-app
npm init solid@latest my-app
```

## 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

Solid 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`.
27 changes: 27 additions & 0 deletions tests/node-solid-static/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"name": "node-solid-static",
"scripts": {
"dev": "solid-start dev",
"build": "solid-start build",
"start": "solid-start start"
},
"type": "module",
"devDependencies": {
"@types/node": "^18.16.19",
"esbuild": "^0.14.54",
"postcss": "^8.4.26",
"solid-start-static": "^0.3.0",
"typescript": "^4.9.5",
"vite": "^4.4.6"
},
"dependencies": {
"@solidjs/meta": "^0.28.5",
"@solidjs/router": "^0.8.2",
"solid-js": "^1.7.11",
"solid-start": "^0.3.2",
"undici": "^5.23.0"
},
"engines": {
"node": ">=18"
}
}
Loading

0 comments on commit d57b775

Please sign in to comment.