mirror of
https://github.com/jlengrand/supabase-fail.git
synced 2026-03-10 08:41:18 +00:00
Adding gitpod setup
This commit is contained in:
9
.gitpod.yml
Normal file
9
.gitpod.yml
Normal file
@@ -0,0 +1,9 @@
|
||||
# This configuration file was automatically generated by Gitpod.
|
||||
# Please adjust to your needs (see https://www.gitpod.io/docs/config-gitpod-file)
|
||||
# and commit this file to your remote git repository to share the goodness with others.
|
||||
|
||||
tasks:
|
||||
- init: npm install
|
||||
command: npm run build
|
||||
|
||||
|
||||
35
README.md
35
README.md
@@ -1,31 +1,18 @@
|
||||
<p align="center">
|
||||
<img width="200" src="https://open-wc.org/hero.png"></img>
|
||||
</p>
|
||||
# Supabase fails to install with Open-WC
|
||||
|
||||
## Open-wc Starter App
|
||||
[](https://gitpod.io/#https://github.com/jlengrand/supabase-fail)
|
||||
|
||||
[](https://github.com/open-wc)
|
||||
or run `$npm install && npm run build`
|
||||
|
||||
## Quickstart
|
||||
|
||||
To get started:
|
||||
The error that shows up is
|
||||
|
||||
```bash
|
||||
npm init @open-wc
|
||||
# requires node 10 & npm 6 or higher
|
||||
|
||||
```
|
||||
...and 10 other files
|
||||
(!) Circular dependency
|
||||
node_modules/@supabase/realtime-js/dist/module/RealtimeSubscription.js -> node_modules/@supabase/realtime-js/dist/module/lib/push.js -> node_modules/@supabase/realtime-js/dist/module/RealtimeSubscription.js
|
||||
[!] Error: 'w3cwebsocket' is not exported by node_modules/websocket/index.js, imported by node_modules/@supabase/realtime-js/dist/module/RealtimeClient.js
|
||||
https://rollupjs.org/guide/en/#error-name-is-not-exported-by-module
|
||||
```
|
||||
|
||||
## Scripts
|
||||
|
||||
- `start` runs your app for development, reloading on file changes
|
||||
- `start:build` runs your app after it has been built using the build command
|
||||
- `build` builds your app and outputs it in your `dist` directory
|
||||
- `test` runs your test suite with Web Test Runner
|
||||
- `lint` runs the linter for your project
|
||||
- `format` fixes linting and formatting errors
|
||||
|
||||
## Tooling configs
|
||||
|
||||
For most of the tools, the configuration is in the `package.json` to reduce the amount of files in your project.
|
||||
|
||||
If you customize the configuration a lot, you can consider moving them to individual files.
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import { LitElement, html, css } from 'lit';
|
||||
import { createClient } from '@supabase/supabase-js'
|
||||
|
||||
const logo = new URL('../assets/open-wc-logo.svg', import.meta.url).href;
|
||||
|
||||
@@ -57,6 +58,8 @@ export class SupabaseFail extends LitElement {
|
||||
constructor() {
|
||||
super();
|
||||
this.title = 'My app';
|
||||
const supabase = createClient(SUPABASE_CONFIG.authDomain, SUPABASE_CONFIG.apiKey);
|
||||
console.log(supabase);
|
||||
}
|
||||
|
||||
render() {
|
||||
|
||||
Reference in New Issue
Block a user