Skip to content

Commit dc71cc1

Browse files
authored
Merge pull request #34 from ralphsmith80/modern-solid
Modern solid
2 parents f6c94e1 + bdde169 commit dc71cc1

39 files changed

+6617
-15659
lines changed

apps/solid/.gitignore

Lines changed: 3 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,3 @@
1-
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2-
3-
# dependencies
4-
/node_modules
5-
/.pnp
6-
.pnp.js
7-
8-
# testing
9-
/coverage
10-
11-
# production
12-
/build
13-
14-
# misc
15-
.DS_Store
16-
.env.local
17-
.env.development.local
18-
.env.test.local
19-
.env.production.local
20-
21-
npm-debug.log*
22-
yarn-debug.log*
23-
yarn-error.log*
1+
node_modules
2+
dist
3+
.DS_Store

apps/solid/CHANGELOG.md

Lines changed: 0 additions & 373 deletions
This file was deleted.

apps/solid/README.md

Lines changed: 33 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,52 +1,51 @@
1-
This project was bootstrapped with [Create Solid](https://github.com/ryansolid/create-solid). Create Solid is a Fork of Create React App.
21

3-
## Available Scripts
4-
5-
In the project directory, you can run:
6-
7-
### `npm start`
2+
# Example App
83

9-
Runs the app in the development mode.<br>
10-
Open [http://localhost:3000](http://localhost:3000) to view it in the browser.
11-
12-
The page will reload if you make edits.<br>
13-
You will also see any lint errors in the console.
4+
This project was bootstrapped by following the
5+
[Solid Getting Started](https://www.solidjs.com/guides/getting-started) guide
6+
using to following command.
147

15-
### `npm test`
8+
```bash
9+
npx degit solidjs/templates/ts solid
10+
```
1611

17-
Launches the test runner in the interactive watch mode.<br>
18-
See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information.
12+
## Usage
1913

20-
### `npm run build`
14+
Those templates dependencies are maintained via [pnpm](https://pnpm.io) via
15+
`pnpm up -Lri`.
2116

22-
Builds the app for production to the `build` folder.<br>
23-
It correctly bundles Solid in production mode and optimizes the build for the best performance.
17+
This is the reason you see a `pnpm-lock.yaml`. That being said, any package
18+
manager will work. This file can be safely be removed once you clone a
19+
template.
2420

25-
The build is minified and the filenames include the hashes.<br>
26-
Your app is ready to be deployed!
21+
```bash
22+
npm install # or pnpm install or yarn install
23+
```
2724

28-
See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information.
25+
Learn more on the [Solid Website](https://solidjs.com) and come chat with us
26+
on our [Discord](https://discord.com/invite/solidjs)
2927

30-
### Code Splitting
31-
32-
This section has moved here: https://facebook.github.io/create-react-app/docs/code-splitting
33-
34-
### Analyzing the Bundle Size
28+
## Available Scripts
3529

36-
This section has moved here: https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size
30+
In the project directory, you can run:
3731

38-
### Making a Progressive Web App
32+
### `npm run dev` or `npm start`
3933

40-
This section has moved here: https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app
34+
Runs the app in the development mode.
35+
Open [http://localhost:3000](http://localhost:3000) to view it in the browser.
4136

42-
### Advanced Configuration
37+
The page will reload if you make edits.
4338

44-
This section has moved here: https://facebook.github.io/create-react-app/docs/advanced-configuration
39+
### `npm run build`
4540

46-
### Deployment
41+
Builds the app for production to the `dist` folder.
42+
It correctly bundles Solid in production mode and optimizes the build for the
43+
best performance.
4744

48-
This section has moved here: https://facebook.github.io/create-react-app/docs/deployment
45+
The build is minified and the filenames include the hashes.
46+
Your app is ready to be deployed!
4947

50-
### `npm run build` fails to minify
48+
## Deployment
5149

52-
This section has moved here: https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify
50+
You can deploy the `dist` folder to any static host provider
51+
(netlify, surge, now, etc.)

apps/solid/index.html

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="utf-8" />
5+
<meta name="viewport" content="width=device-width, initial-scale=1" />
6+
<meta name="theme-color" content="#000000" />
7+
<link rel="shortcut icon" type="image/ico" href="/src/assets/favicon.ico" />
8+
<title>Solid App</title>
9+
</head>
10+
<body>
11+
<noscript>You need to enable JavaScript to run this app.</noscript>
12+
<div id="root"></div>
13+
14+
<script src="/src/index.tsx" type="module"></script>
15+
</body>
16+
</html>

apps/solid/package.json

Lines changed: 21 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,25 @@
11
{
2-
"name": "@tsparticles/solid-demo",
3-
"version": "3.0.0",
4-
"private": true,
5-
"devDependencies": {
6-
"@tsparticles/configs": "^3.0.3",
7-
"@tsparticles/engine": "^3.0.3",
8-
"@tsparticles/solid": "workspace:^",
9-
"@types/jest": "^29.5.11",
10-
"@types/node": "^20.10.5",
11-
"browserslist": "^4.22.2",
12-
"component-register": "^0.8.3",
13-
"solid-js": "^1.8.7",
14-
"solid-scripts": "^0.0.61",
15-
"tsparticles": "^3.0.3",
16-
"typescript": "^5.0.0"
17-
},
2+
"name": "vite-template-solid",
3+
"version": "0.0.0",
4+
"description": "",
185
"scripts": {
19-
"start": "env NODE_OPTIONS=--openssl-legacy-provider solid-scripts start",
20-
"build": "env NODE_OPTIONS=--openssl-legacy-provider solid-scripts build",
21-
"build:ci": "env NODE_OPTIONS=--openssl-legacy-provider solid-scripts build",
22-
"test": "solid-scripts test"
6+
"start": "vite",
7+
"dev": "vite",
8+
"build": "vite build",
9+
"serve": "vite preview"
10+
},
11+
"license": "MIT",
12+
"devDependencies": {
13+
"solid-devtools": "^0.29.2",
14+
"typescript": "^5.3.3",
15+
"vite": "^5.0.11",
16+
"vite-plugin-solid": "^2.8.2"
2317
},
24-
"browserslist": [
25-
"Chrome 74",
26-
"Firefox 63",
27-
"Safari 11",
28-
"Edge 17",
29-
"Node 10"
30-
]
18+
"dependencies": {
19+
"@tsparticles/configs": "^3.5.0",
20+
"@tsparticles/engine": "^3.5.0",
21+
"@tsparticles/solid": "workspace:*",
22+
"solid-js": "^1.8.11",
23+
"tsparticles": "^3.5.0"
24+
}
3125
}

apps/solid/public/favicon.ico

-36.5 KB
Binary file not shown.

apps/solid/public/index.html

Lines changed: 0 additions & 38 deletions
This file was deleted.

apps/solid/public/manifest.json

Lines changed: 0 additions & 15 deletions
This file was deleted.

apps/solid/src/App.css

Lines changed: 0 additions & 33 deletions
This file was deleted.

apps/solid/src/App.test.tsx

Lines changed: 0 additions & 9 deletions
This file was deleted.

0 commit comments

Comments
 (0)