Skip to content

Commit 11a09a6

Browse files
author
Andrew Smith
authored
Fix path to dist for esm/cjs (#122)
* Fix path to dist for esm/cjs * Move solidjs example to the examples directory (#123)
1 parent f71ed3e commit 11a09a6

26 files changed

+2050
-298
lines changed

Diff for: .changeset/nine-jokes-help.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@supabase/auth-ui-solid': patch
3+
---
4+
5+
Fix path to dist for esm and cjs

Diff for: examples/solidjs/.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
node_modules
2+
dist

Diff for: examples/solidjs/README.md

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
## Usage
2+
3+
Those templates dependencies are maintained via [pnpm](https://pnpm.io) via `pnpm up -Lri`.
4+
5+
This is the reason you see a `pnpm-lock.yaml`. That being said, any package manager will work. This file can be safely be removed once you clone a template.
6+
7+
```bash
8+
$ npm install # or pnpm install or yarn install
9+
```
10+
11+
### Learn more on the [Solid Website](https://solidjs.com) and come chat with us on our [Discord](https://discord.com/invite/solidjs)
12+
13+
## Available Scripts
14+
15+
In the project directory, you can run:
16+
17+
### `npm dev` or `npm start`
18+
19+
Runs the app in the development mode.<br>
20+
Open [http://localhost:3000](http://localhost:3000) to view it in the browser.
21+
22+
The page will reload if you make edits.<br>
23+
24+
### `npm run build`
25+
26+
Builds the app for production to the `dist` folder.<br>
27+
It correctly bundles Solid in production mode and optimizes the build for the best performance.
28+
29+
The build is minified and the filenames include the hashes.<br>
30+
Your app is ready to be deployed!
31+
32+
## Deployment
33+
34+
You can deploy the `dist` folder to any static host provider (netlify, surge, now, etc.)

Diff for: packages/solid/index.html renamed to examples/solidjs/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@
1111
<noscript>You need to enable JavaScript to run this app.</noscript>
1212
<div id="root"></div>
1313

14-
<script src="/src/example/index.tsx" type="module"></script>
14+
<script src="/src/index.tsx" type="module"></script>
1515
</body>
1616
</html>

Diff for: examples/solidjs/package.json

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
"name": "@example/solidjs",
3+
"version": "0.0.0",
4+
"description": "",
5+
"scripts": {
6+
"start": "vite",
7+
"dev": "vite",
8+
"build": "vite build",
9+
"serve": "vite preview"
10+
},
11+
"license": "MIT",
12+
"devDependencies": {
13+
"@suid/icons-material": "^0.4.1",
14+
"@suid/material": "^0.6.3",
15+
"typescript": "^4.9.5",
16+
"vite": "^4.1.1",
17+
"vite-plugin-solid": "^2.5.0"
18+
},
19+
"dependencies": {
20+
"@supabase/auth-ui-solid": "workspace:*",
21+
"@supabase/supabase-js": "^2.7.1",
22+
"solid-js": "^1.6.10"
23+
}
24+
}

0 commit comments

Comments
 (0)