-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-Authored-By: Damien Simonin Feugas <damien.feugas@gmail.com> Co-Authored-By: Timo Lins <me@timo.sh>
- Loading branch information
Showing
127 changed files
with
36,326 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
module.exports = { | ||
root: true, | ||
extends: [ | ||
require.resolve('@vercel/style-guide/eslint/browser'), | ||
require.resolve('@vercel/style-guide/eslint/typescript'), | ||
require.resolve('@vercel/style-guide/eslint/jest'), | ||
], | ||
env: { | ||
jest: true, | ||
}, | ||
parserOptions: { | ||
project: './tsconfig.json', | ||
}, | ||
ignorePatterns: ['*.config.js', 'dist/'], | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# Auto detect text files and perform LF normalization | ||
* text=auto |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
name: 'Install' | ||
description: 'Sets up Node.js and runs install' | ||
runs: | ||
using: composite | ||
steps: | ||
- name: Set up Node.js | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version-file: '.nvmrc' | ||
registry-url: 'https://registry.npmjs.org' | ||
|
||
- name: Install pnpm with corepack | ||
shell: bash | ||
run: corepack enable && pnpm --version | ||
|
||
- name: Get pnpm store directory | ||
id: pnpm-cache | ||
shell: bash | ||
run: echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT | ||
|
||
- name: Restore pnpm global cache | ||
uses: actions/cache@v3 | ||
with: | ||
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }} | ||
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('pnpm-lock.yaml') }} | ||
restore-keys: | | ||
${{ runner.os }}-pnpm-store-${{ hashFiles('pnpm-lock.yaml') }} | ||
${{ runner.os }}-pnpm-store- | ||
- name: Install dependencies | ||
shell: bash | ||
run: pnpm install |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
### 📓 What's in there? | ||
|
||
<!-- | ||
✍️ Please explain what this PR contains and why. | ||
If not done automatically, refer to any issues, PRs or stories. | ||
--> | ||
|
||
### 🧪 How to test? | ||
|
||
<!-- | ||
✍️ Help your reviewer testing your feature by providing simple instructions: | ||
- do X | ||
> expect A | ||
- do Y | ||
> expect B. It used to be C | ||
--> | ||
|
||
<!-- | ||
### ❗ Notes to reviewers | ||
✍️ You can provide more technical/design details about your change | ||
--> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
name: ci | ||
on: | ||
pull_request: | ||
push: | ||
branches: | ||
- main | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }} | ||
|
||
jobs: | ||
typescript: | ||
name: typescript | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 10 | ||
steps: | ||
- name: checkout | ||
uses: actions/checkout@v3 | ||
- name: Install | ||
uses: ./.github/composite-actions/install | ||
- name: lint | ||
run: pnpm -r lint | ||
- name: type-check | ||
run: pnpm -r type-check | ||
- name: prettier | ||
run: pnpm prettier -c . | ||
- name: build | ||
run: pnpm -r build | ||
- name: test | ||
run: pnpm -r test | ||
|
||
playwright: | ||
name: playwright | ||
runs-on: ubuntu-latest | ||
if: false | ||
timeout-minutes: 10 | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
test: | ||
- 'test:e2e:production' | ||
- 'test:e2e:development' | ||
steps: | ||
- name: checkout | ||
uses: actions/checkout@v3 | ||
- name: Install | ||
uses: ./.github/composite-actions/install | ||
- name: get playwright version | ||
id: pw | ||
run: echo "version=$(cat apps/nextjs/package.json | jq -r '.devDependencies."@playwright/test"')" >> $GITHUB_OUTPUT | ||
- name: install playwright | ||
run: pnpx playwright@${{ steps.pw.outputs.version }} install | ||
- name: test | ||
run: pnpm -r ${{ matrix.test }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
name: Publish | ||
on: | ||
release: | ||
types: [published] | ||
jobs: | ||
release: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: checkout | ||
uses: actions/checkout@v3 | ||
- name: Install | ||
uses: ./.github/composite-actions/install | ||
- name: lint | ||
run: pnpm -r lint | ||
- name: type-check | ||
run: pnpm -r type-check | ||
- name: prettier | ||
run: pnpm prettier -c . | ||
- name: build | ||
run: pnpm -r build | ||
- run: pnpm --filter @vercel/speed-insights publish --tag beta --no-git-checks | ||
if: github.event.release.prerelease == true | ||
env: | ||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN_ELEVATED }} | ||
- run: pnpm --filter @vercel/speed-insights publish --no-git-checks | ||
if: github.event.release.prerelease == false | ||
env: | ||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN_ELEVATED }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
node_modules | ||
dist | ||
.DS_Store | ||
.vscode |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/usr/bin/env sh | ||
. "$(dirname -- "$0")/_/husky.sh" | ||
|
||
pnpm lint-staged |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
18.16.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
.next/ | ||
dist/ | ||
.github/ | ||
.nuxt/ | ||
.svelte-kit/ | ||
.vercel/ |
Oops, something went wrong.
9bf6d96
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
speed-insights-nuxt – ./apps/nuxt
speed-insights-nuxt-vercel-analytics.vercel.app
speed-insights-nuxt-git-main-vercel-analytics.vercel.app
speed-insights-nuxt.vercel.app
9bf6d96
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
speed-insights-remix – ./apps/remix
speed-insights-remix-git-main-vercel-analytics.vercel.app
speed-insights-remix.vercel.app
speed-insights-remix-vercel-analytics.vercel.app