Skip to content

Commit

Permalink
chore: pr review fixes (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
NoopDog committed Aug 30, 2024
1 parent 41a68c4 commit 399c052
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 21 deletions.
3 changes: 1 addition & 2 deletions data-catalog/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,5 @@ npm-debug.log*
# favicons
/public/favicons/*


# Build Dir
/build
/out
Original file line number Diff line number Diff line change
@@ -1,24 +1,20 @@
#!/usr/bin/env bash
# Exit immediately if a command exits with a non-zero status
set -e

echo \"Deleting ./out/\"
rm -rf ./out

echo \"Deleting ./build/\"
rm -rf ./build

# install node version 20.10.0
n 20.10.0
npm ci
export NEXT_PUBLIC_BASE_PATH="/data"

mkdir -p build/data

# Build AnVIL
rm -rf ./out
# Build catalog
npm run build:local
mv out/* build/data

export BUCKET=s3://tik-brc-analytics.dev.data/
export SRCDIR=build/
export SRCDIR=out/

aws s3 sync $SRCDIR $BUCKET --delete --profile excira
aws cloudfront create-invalidation --distribution-id E1OF5ESEGD5VAG --paths "/*" --profile excira
1 change: 1 addition & 0 deletions data-catalog/next.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ export default withPlugins(
[[withMDX, { pageExtensions: ["md", "mdx", "ts", "tsx"] }]],
{
basePath: process.env.NEXT_PUBLIC_BASE_PATH || "",
distDir: "out/data",
experimental: {
instrumentationHook: true,
},
Expand Down
2 changes: 1 addition & 1 deletion data-catalog/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"scripts": {
"dev": "./scripts/dev.sh brc-analytics-catalog && next dev",
"build:local": "./scripts/build.sh brc-analytics-catalog local && next build",
"start": "next start",
"start": "npx serve out",
"lint": "next lint --dir .",
"check-format": "prettier --check .",
"test": "jest --runInBand"
Expand Down
2 changes: 1 addition & 1 deletion website/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,4 @@ npm-debug.log*
/public/favicons/*

# Build Dir
/build
/out
11 changes: 4 additions & 7 deletions website/cc-brc-analytics.dev.clevercanary.com-deploy.sh
Original file line number Diff line number Diff line change
@@ -1,23 +1,20 @@
#!/usr/bin/env bash

# Exit immediately if a command exits with a non-zero status
set -e

echo \"Deleting ./out/\"
rm -rf ./out

echo \"Deleting ./build/\"
rm -rf ./build

n 20.10.0
npm ci

mkdir -p build

# Build the website
rm -rf ./out
npm run build:local
mv out/* build

export BUCKET=s3://tik-brc-analytics.dev/
export SRCDIR=build/
export SRCDIR=out/

aws s3 sync $SRCDIR $BUCKET --delete --profile excira
aws cloudfront create-invalidation --distribution-id E1OF5ESEGD5VAG --paths "/*" --profile excira
2 changes: 1 addition & 1 deletion website/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"scripts": {
"dev": "./scripts/dev.sh brc-analytics-site && next dev",
"build:local": "./scripts/build.sh brc-analytics-site local && next build",
"start": "next start",
"start": "npx serve out",
"lint": "next lint --dir .",
"check-format": "prettier --check .",
"test": "jest --runInBand"
Expand Down

0 comments on commit 399c052

Please sign in to comment.