Skip to content

Commit

Permalink
feat: Add content and base styling (#15)
Browse files Browse the repository at this point in the history
  • Loading branch information
evadecker authored May 27, 2024
1 parent 506d57e commit 7a680cc
Show file tree
Hide file tree
Showing 12 changed files with 575 additions and 180 deletions.
9 changes: 7 additions & 2 deletions astro.config.mjs
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
import { defineConfig } from "astro/config";
import sitemap from "@astrojs/sitemap";
import react from "@astrojs/react";

// https://astro.build/config
export default defineConfig({
site: "https://namesake.fyi",
integrations: [sitemap()],
});
integrations: [sitemap(), react()],
devToolbar: {
enabled: false
}
});
14 changes: 11 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,22 +8,30 @@
"build": "astro check && astro build",
"preview": "astro preview",
"astro": "astro",
"test": "playwright test --ui"
"test": "playwright test --reporter=html"
},
"dependencies": {
"@astrojs/check": "^0.7.0",
"@astrojs/react": "^3.4.0",
"@astrojs/sitemap": "^3.1.5",
"@axe-core/playwright": "^4.9.1",
"@radix-ui/colors": "^3.0.0",
"@types/react": "^18.3.3",
"@types/react-dom": "^18.3.0",
"astro": "^4.8.6",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react-icons": "^5.2.1",
"typescript": "^5.4.5"
},
"devDependencies": {
"@playwright/test": "^1.44.0",
"@types/node": "^20.12.12",
"@typescript-eslint/parser": "^7.10.0",
"eslint": "^9.3.0",
"eslint": "^8.57.0",
"eslint-plugin-astro": "^1.2.0",
"eslint-plugin-jsx-a11y": "^6.8.0"
"eslint-plugin-jsx-a11y": "^6.8.0",
"sass": "^1.77.2",
"sharp": "^0.33.4"
}
}
50 changes: 0 additions & 50 deletions playwright.config.ts
Original file line number Diff line number Diff line change
@@ -1,74 +1,24 @@
import { defineConfig, devices } from '@playwright/test';

/**
* Read environment variables from file.
* https://github.com/motdotla/dotenv
*/
// require('dotenv').config();

/**
* See https://playwright.dev/docs/test-configuration.
*/
export default defineConfig({
testDir: './tests',
/* Run tests in files in parallel */
fullyParallel: true,
/* Fail the build on CI if you accidentally left test.only in the source code. */
forbidOnly: !!process.env.CI,
/* Retry on CI only */
retries: process.env.CI ? 2 : 0,
/* Opt out of parallel tests on CI. */
workers: process.env.CI ? 1 : undefined,
/* Reporter to use. See https://playwright.dev/docs/test-reporters */
reporter: 'html',
/* Shared settings for all the projects below. See https://playwright.dev/docs/api/class-testoptions. */
use: {
/* Base URL to use in actions like `await page.goto('/')`. */
baseURL: 'http://localhost:4321',

/* Collect trace when retrying the failed test. See https://playwright.dev/docs/trace-viewer */
trace: 'on-first-retry',
},

/* Configure projects for major browsers */
projects: [
{
name: 'chromium',
use: { ...devices['Desktop Chrome'] },
},

{
name: 'firefox',
use: { ...devices['Desktop Firefox'] },
},

{
name: 'webkit',
use: { ...devices['Desktop Safari'] },
},

/* Test against mobile viewports. */
// {
// name: 'Mobile Chrome',
// use: { ...devices['Pixel 5'] },
// },
// {
// name: 'Mobile Safari',
// use: { ...devices['iPhone 12'] },
// },

/* Test against branded browsers. */
// {
// name: 'Microsoft Edge',
// use: { ...devices['Desktop Edge'], channel: 'msedge' },
// },
// {
// name: 'Google Chrome',
// use: { ...devices['Desktop Chrome'], channel: 'chrome' },
// },
],

/* Run your local dev server before starting the tests */
webServer: {
command: 'pnpm dev',
url: 'http://localhost:4321',
Expand Down
Loading

0 comments on commit 7a680cc

Please sign in to comment.