Skip to content

Commit

Permalink
dev env
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronshaf committed Nov 15, 2024
1 parent 55628bd commit ff01e5d
Show file tree
Hide file tree
Showing 33 changed files with 2,769 additions and 46 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/playwright.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Playwright Tests
on:
push:
branches: [ main, master ]
pull_request:
branches: [ main, master ]
jobs:
test:
timeout-minutes: 60
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: lts/*
- name: Install dependencies
run: npm install -g pnpm && pnpm install
- name: Install Playwright Browsers
run: pnpm exec playwright install --with-deps
- name: Run Playwright tests
run: pnpm exec playwright test
- uses: actions/upload-artifact@v4
if: ${{ !cancelled() }}
with:
name: playwright-report
path: playwright-report/
retention-days: 30
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,9 @@ dist/
.vscode/*
!.vscode/extensions.json
.idea
test-results
playwright-report
/blob-report/
/playwright/.cache/
packages/idb-cache/test-results
packages/idb-cache-app/test-results
38 changes: 7 additions & 31 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,37 +1,13 @@
{
"name": "@instructure/idb-cache",
"version": "1.0.3",
"license": "MIT",
"repository": {
"type": "git",
"url": "git+https://github.com/instructure/idb-cache.git"
},
"bugs": {
"url": "https://github.com/instructure/idb-cache/issues"
},
"homepage": "https://github.com/instructure/idb-cache#readme",
"type": "module",
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/index.js"
}
},
"module": "./dist/index.js",
"types": "./dist/index.d.ts",
"files": ["dist"],
"name": "idb-cache-monorepo",
"private": true,
"scripts": {
"build": "rslib build",
"dev": "rslib build --watch",
"biome:check": "biome check . --write"
},
"peerDependencies": {
"@rslib/core": "^0.0.15",
"idb": "^8.0.0"
"build": "pnpm -r run build",
"dev": "pnpm -r --parallel run dev",
"test": "pnpm -r run test",
"test:e2e": "pnpm --filter idb-cache-app run test:e2e"
},
"devDependencies": {
"@biomejs/biome": "1.9.4",
"@rslib/core": "^0.0.15",
"typescript": "^5.6.3"
"@biomejs/biome": "1.9.4"
}
}
13 changes: 13 additions & 0 deletions packages/idb-cache-app/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Local
.DS_Store
*.local
*.log*

# Dist
node_modules
dist/

# IDE
.vscode/*
!.vscode/extensions.json
.idea
29 changes: 29 additions & 0 deletions packages/idb-cache-app/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# Rsbuild Project

## Setup

Install the dependencies:

```bash
pnpm install
```

## Get Started

Start the dev server:

```bash
pnpm dev
```

Build the app for production:

```bash
pnpm build
```

Preview the production build locally:

```bash
pnpm preview
```
26 changes: 26 additions & 0 deletions packages/idb-cache-app/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"name": "idb-cache-app",
"private": true,
"version": "1.0.0",
"scripts": {
"dev": "rsbuild dev --open",
"build": "rsbuild build",
"preview": "rsbuild preview"
},
"dependencies": {
"@instructure/idb-cache": "workspace:*",
"random-seed": "^0.3.0",
"react": "^18.3.1",
"react-dom": "^18.3.1"
},
"devDependencies": {
"@rsbuild/core": "^1.0.19",
"@rsbuild/plugin-react": "^1.0.6",
"@types/random-seed": "^0.3.5",
"@types/react": "^18.3.12",
"@types/react-dom": "^18.3.1",
"daisyui": "^4.12.14",
"tailwindcss": "^3.4.15",
"typescript": "^5.6.3"
}
}
5 changes: 5 additions & 0 deletions packages/idb-cache-app/postcss.config.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
module.exports = {
plugins: {
tailwindcss: {},
},
};
Empty file.
9 changes: 9 additions & 0 deletions packages/idb-cache-app/rsbuild.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import { defineConfig } from "@rsbuild/core";
import { pluginReact } from "@rsbuild/plugin-react";

export default defineConfig({
plugins: [pluginReact()],
html: {
title: "idb-cache",
},
});
7 changes: 7 additions & 0 deletions packages/idb-cache-app/src/App.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
@tailwind base;
@tailwind components;
@tailwind utilities;

body {
font-family: 'Roboto', sans-serif;
}
Loading

0 comments on commit ff01e5d

Please sign in to comment.