Adding gitpod setup

This commit is contained in:
julien Lengrand-Lambert
2022-07-03 20:13:18 +00:00
parent 77c02b8570
commit 0407cc4a61
3 changed files with 23 additions and 24 deletions

9
.gitpod.yml Normal file
View 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

View File

@@ -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
[![Open in Gitpod](https://gitpod.io/button/open-in-gitpod.svg)](https://gitpod.io/#https://github.com/jlengrand/supabase-fail)
[![Built with open-wc recommendations](https://img.shields.io/badge/built%20with-open--wc-blue.svg)](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.

View File

@@ -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() {