Skip to content

Commit

Permalink
Merge pull request #184 from replayio/aditya/v7-merge-back
Browse files Browse the repository at this point in the history
  • Loading branch information
callingmedic911 authored Apr 10, 2024
2 parents 9d954d8 + 5d17c77 commit 73f3ef9
Show file tree
Hide file tree
Showing 371 changed files with 15,190 additions and 10,790 deletions.
9 changes: 6 additions & 3 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Put your environment variable keys here.

NEXT_PUBLIC_SITE_URL=""
NEXT_PUBLIC_SITE_URL=http://localhost:3000
BASEHUB_TOKEN="<basehub_token>"
REPLAY_API_KEY="<replay_api_key>"
BASEHUB_DRAFT=true
DRAFT_MODE=true
REPLAY_PLAYWRIGHT_FIXTURE=true
Empty file removed .eslintignore
Empty file.
7 changes: 7 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"extends": ["next/core-web-vitals", "prettier"],
"plugins": ["prettier"],
"rules": {
"prettier/prettier": "error"
}
}
1 change: 0 additions & 1 deletion .github/.kodiak.toml

This file was deleted.

10 changes: 0 additions & 10 deletions .github/PULL_REQUEST_TEMPLATE.md

This file was deleted.

42 changes: 42 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Lint

on:
pull_request:
workflow_dispatch:
push:
branches: [main]

jobs:
trunk_check_runner:
name: Trunk Check runner
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: volta-cli/action@v1
with:
node-version: 20.12.0
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "{dir}={$(yarn config get cacheFolder)}" >> $GITHUB_OUTPUT
- name: Restore yarn cache
uses: useblacksmith/cache@v5
id: yarn-cache
with:
path: |
${{ steps.yarn-cache-dir-path.outputs.dir }}
**/node_modules
key: yarn-cache-folder-${{ hashFiles('**/yarn.lock', '.yarnrc.yml') }}
restore-keys: "yarn-cache-folder-"
# Actually install packages with Yarn
- name: Install packages
run: yarn install
env:
YARN_CHECKSUM_BEHAVIOR: "update"
- name: Lint
run: yarn lint
- name: Next Build (because it's more strict)
run: yarn build
env:
NEXT_PUBLIC_SITE_URL: "https://replay.io"
BASEHUB_TOKEN: ${{ secrets.BASEHUB_TOKEN }}
BASEHUB_DRAFT: true
43 changes: 43 additions & 0 deletions .github/workflows/playwright.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Playwright Tests
on:
push:
branches: [main]
pull_request:
jobs:
test:
timeout-minutes: 60
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: volta-cli/action@v1
with:
node-version: 20.12.0
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "{dir}={$(yarn config get cacheFolder)}" >> $GITHUB_OUTPUT
- name: Restore yarn cache
uses: useblacksmith/cache@v5
id: yarn-cache
with:
path: |
${{ steps.yarn-cache-dir-path.outputs.dir }}
**/node_modules
key: yarn-cache-folder-${{ hashFiles('**/yarn.lock', '.yarnrc.yml') }}
restore-keys: "yarn-cache-folder-"
- run: yarn install --frozen-lockfile
- run: yarn build
env:
BASEHUB_TOKEN: ${{ secrets.BASEHUB_TOKEN }}
BASEHUB_DRAFT: true
NEXT_PUBLIC_SITE_URL: "https://replay.io"
- run: yarn playwright:replay
env:
NEXT_PUBLIC_SITE_URL: "https://replay.io"
BASEHUB_TOKEN: ${{ secrets.BASEHUB_TOKEN }}
REPLAY_API_KEY: ${{ secrets.REPLAY_API_KEY }}
- uses: actions/upload-artifact@v4
if: always()
with:
name: playwright-report
path: playwright-report/
retention-days: 30
150 changes: 123 additions & 27 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,40 +1,136 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
.DS_Store
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
lerna-debug.log*
.pnpm-debug.log*

# dependencies
/node_modules
/.pnp
.pnp.js
# Diagnostic reports (https://nodejs.org/api/report.html)
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json

# testing
/coverage
# Runtime data
pids
*.pid
*.seed
*.pid.lock

# next.js
/.next/
/out/
# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# production
/build
# Coverage directory used by tools like istanbul
coverage
*.lcov

# misc
*/robots.txt
*/sitemap.xml
*/sitemap-0.xml
.DS_Store
*.pem
# nyc test coverage
.nyc_output

# debug
npm-debug.log*
yarn-debug.log*
yarn-error.log*
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# Bower dependency directory (https://bower.io/)
bower_components

# node-waf configuration
.lock-wscript

# Compiled binary addons (https://nodejs.org/api/addons.html)
build/Release

# Dependency directories
node_modules/
jspm_packages/

# Snowpack dependency directory (https://snowpack.dev/)
web_modules/

# TypeScript cache
*.tsbuildinfo

# Optional npm cache directory
.npm

# Optional eslint cache
.eslintcache

# Optional stylelint cache
.stylelintcache

# Microbundle cache
.rpt2_cache/
.rts2_cache_cjs/
.rts2_cache_es/
.rts2_cache_umd/

# local env files
# Optional REPL history
.node_repl_history

# Yarn Integrity file
.yarn-integrity

# dotenv environment variable files
.env
.env.local
.env.development.local
.env.test.local
.env.production.local
.env.local

# parcel-bundler cache (https://parceljs.org/)
.cache
.parcel-cache

# basehub build output
.basehub

# Next.js build output
.next
out

# Nuxt.js build / generate output
.nuxt
dist

# Gatsby files
.cache/
# Comment in the public line in if your project uses Gatsby and not Next.js
# https://nextjs.org/blog/next-9-1#public-directory-support
# public

# vuepress build output
.vuepress/dist

# vuepress v2.x temp and cache directory
.temp
.cache

# Docusaurus cache and generated files
.docusaurus

# Serverless directories
.serverless/

# FuseBox cache
.fusebox/

# DynamoDB Local files
.dynamodb/

# TernJS port file
.tern-port

# Stores VSCode versions used for testing VSCode extensions
.vscode-test

# vercel
# yarn v2
.yarn/cache
.yarn/unplugged
.yarn/build-state.yml
.yarn/install-state.gz
.pnp.*
.vercel
tsconfig.tsbuildinfo
.env*.local
/test-results/
/playwright-report/
/blob-report/
/playwright/.cache/
1 change: 0 additions & 1 deletion .husky/.gitignore

This file was deleted.

4 changes: 0 additions & 4 deletions .husky/pre-commit

This file was deleted.

2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
18
v20.12.0
4 changes: 1 addition & 3 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
{
"recommendations": [
"bradlc.vscode-tailwindcss",
"heybourn.headwind",
"dbaeumer.vscode-eslint",
"esbenp.prettier-vscode",
"stylelint.vscode-stylelint"
"esbenp.prettier-vscode"
]
}
30 changes: 19 additions & 11 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,23 +1,31 @@
{
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.defaultFormatter": "dbaeumer.vscode-eslint",
"editor.codeActionsOnSave": {
"source.fixAll.eslint": "explicit",
"source.fixAll.stylelint": "explicit"
"source.fixAll.eslint": "explicit"
},
"stylelint.validate": ["css", "scss"],
"css.validate": false,
"less.validate": false,
"scss.validate": false,
"[css]": {
"editor.formatOnSave": false
},
"[scss]": {
"editor.formatOnSave": false
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"typescript.tsdk": "node_modules/typescript/lib",
"[jsonc]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[postcss]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[markdown]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[yaml]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[less]": {
"editor.formatOnSave": false
"[json]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[typescriptreact]": {
"editor.defaultFormatter": "vscode.typescript-language-features"
"editor.defaultFormatter": "esbenp.prettier-vscode"
}
}
5 changes: 5 additions & 0 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
compressionLevel: mixed

enableGlobalCache: false

nodeLinker: node-modules
Loading

0 comments on commit 73f3ef9

Please sign in to comment.