Skip to content

Commit

Permalink
draft: ceremony site (#2928)
Browse files Browse the repository at this point in the history
  • Loading branch information
cor authored Sep 12, 2024
2 parents a1ca6c0 + 5d0f85e commit d98e9a0
Show file tree
Hide file tree
Showing 62 changed files with 4,734 additions and 6 deletions.
10 changes: 5 additions & 5 deletions app/src/generated/graphql-env.d.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions ceremony/.env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
VITE_BUCKET_ID=
VITE_SUPABASE_URL=
VITE_SUPABASE_ANON_KEY=
35 changes: 35 additions & 0 deletions ceremony/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# Node modules
node_modules

# Build directories
/build
/.svelte-kit
/output
.vercel

# OS-specific files
.DS_Store
Thumbs.db

# Environment files
.env
.env.*
!.env.example
!.env.test

# Vite config files
vite.config.js.timestamp-*
vite.config.ts.timestamp-*

# Sentry Config File
.sentryclirc

# ESLint and Prettier cache files
.eslintcache
.prettiercache

# Partytown
~partytown

# Stats directory
stats
3 changes: 3 additions & 0 deletions ceremony/.npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
engine-strict=true
legacy-peer-deps=true
@jsr:registry=https://npm.jsr.io
38 changes: 38 additions & 0 deletions ceremony/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# create-svelte

Everything you need to build a Svelte project, powered by [`create-svelte`](https://github.com/sveltejs/kit/tree/main/packages/create-svelte).

## Creating a project

If you're seeing this, you've probably already done this step. Congrats!

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

# create a new project in my-app
npm create svelte@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

To create a production version of your app:

```bash
npm run build
```

You can preview the production build with `npm run preview`.

> To deploy your app, you may need to install an [adapter](https://kit.svelte.dev/docs/adapters) for your target environment.
49 changes: 49 additions & 0 deletions ceremony/ceremony.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
{ ... }: {
perSystem = { pkgs, unstablePkgs, lib, ensureAtRepositoryRoot, ... }:
let
pkgsDeps = with pkgs; [ pkg-config python3 ];
nodeDeps = with unstablePkgs; [ nodePackages_latest.nodejs ];
combinedDeps = pkgsDeps ++ nodeDeps;
packageJSON = lib.importJSON ./package.json;
in
{
packages = {
ceremony = unstablePkgs.buildNpmPackage {
npmDepsHash = "sha256-iL4+qO73/tXPDPI7d6B8UywQN9vhchPzy91WiRLYXUI=";
src = ./.;
sourceRoot = "ceremony";
npmFlags = [ "--legacy-peer-deps" ];
pname = packageJSON.name;
version = packageJSON.version;
nativeBuildInputs = combinedDeps;
buildInputs = combinedDeps;
installPhase = ''
mkdir -p $out
cp -r ./build/* $out
'';
doDist = false;
NODE_OPTIONS = "--no-warnings";
VITE_BUCKET_ID = "contributions";
VITE_SUPABASE_URL = "https://otfaamdxmgnkjqsosxye.supabase.co/";
VITE_SUPABASE_ANON_KEY = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6Im90ZmFhbWR4bWdua2pxc29zeHllIiwicm9sZSI6ImFub24iLCJpYXQiOjE3MjEzMjA5NDMsImV4cCI6MjAzNjg5Njk0M30.q91NJPFFHKJXnbhbpUYwsB0NmimtD7pGPx6PkbB_A3w";
};
};

apps = {
ceremony-dev-server = {
type = "app";
program = pkgs.writeShellApplication {
name = "ceremony-dev-server";
runtimeInputs = combinedDeps;
text = ''
${ensureAtRepositoryRoot}
cd ceremony/
npm install
npm run dev
'';
};
};
};
};
}
Loading

0 comments on commit d98e9a0

Please sign in to comment.