-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
33 changed files
with
954 additions
and
956 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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
{ | ||
"printWidth": 100 | ||
"printWidth": 100, | ||
"useTabs": false | ||
} |
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
import { defineCollection } from 'astro:content'; | ||
import { docsSchema } from '@astrojs/starlight/schema'; | ||
import { defineCollection } from "astro:content"; | ||
import { docsSchema } from "@astrojs/starlight/schema"; | ||
|
||
export const collections = { | ||
docs: defineCollection({ schema: docsSchema() }), | ||
docs: defineCollection({ schema: docsSchema() }), | ||
}; |
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
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 |
---|---|---|
|
@@ -4,4 +4,4 @@ | |
"jsx": "react-jsx", | ||
"jsxImportSource": "react" | ||
} | ||
} | ||
} |
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 |
---|---|---|
@@ -1,10 +1,10 @@ | ||
import unjs from "eslint-config-unjs"; | ||
|
||
export default unjs({ | ||
rules: { | ||
"unicorn/filename-case": "off", | ||
"unicorn/no-null": "off", | ||
"@typescript-eslint/consistent-type-imports": "error", | ||
"@typescript-eslint/triple-slash-reference": "off", | ||
}, | ||
rules: { | ||
"unicorn/filename-case": "off", | ||
"unicorn/no-null": "off", | ||
"@typescript-eslint/consistent-type-imports": "error", | ||
"@typescript-eslint/triple-slash-reference": "off", | ||
}, | ||
}); |
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
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
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 |
---|---|---|
@@ -1,54 +1,54 @@ | ||
{ | ||
"name": "usegl", | ||
"version": "0.2.0", | ||
"description": "Lightweight hooks library for WebGL", | ||
"repository": "jsulpis/usegl", | ||
"license": "MIT", | ||
"author": "Julien SULPIS", | ||
"sideEffects": false, | ||
"type": "module", | ||
"exports": { | ||
".": { | ||
"types": "./dist/index.d.ts", | ||
"import": "./dist/index.mjs" | ||
} | ||
}, | ||
"main": "./dist/index.mjs", | ||
"module": "./dist/index.mjs", | ||
"types": "./dist/index.d.ts", | ||
"files": [ | ||
"dist" | ||
], | ||
"scripts": { | ||
"build": "unbuild", | ||
"dev": "astro dev", | ||
"format": "prettier src --check", | ||
"format:fix": "prettier src --write", | ||
"lint": "eslint src", | ||
"lint:fix": "eslint src --fix", | ||
"prepack": "pnpm build", | ||
"release": "changelogen --release --clean", | ||
"test": "playwright test", | ||
"test:local": "docker build -t usegl . && docker run --rm -v $(pwd)/test-results:/app/test-results usegl /bin/sh -c 'xvfb-run pnpm run test'", | ||
"test:ui": "playwright test --ui", | ||
"test:update": "docker build -t usegl . && docker run --rm -v $(pwd)/test-results:/app/test-results -v $(pwd)/tests/__screenshots__:/app/tests/__screenshots__ usegl", | ||
"typecheck": "tsc --noEmit && astro check" | ||
}, | ||
"devDependencies": { | ||
"@astrojs/check": "0.9.4", | ||
"@playwright/test": "1.48.1", | ||
"@types/node": "22.1.0", | ||
"astro": "4.16.7", | ||
"changelogen": "0.5.5", | ||
"eslint": "9.8.0", | ||
"eslint-config-unjs": "0.3.2", | ||
"prettier": "3.3.3", | ||
"typescript": "5.5.4", | ||
"unbuild": "3.0.0-rc.7" | ||
}, | ||
"changelog": { | ||
"excludeAuthors": [ | ||
"" | ||
] | ||
} | ||
"name": "usegl", | ||
"version": "0.2.0", | ||
"description": "Lightweight hooks library for WebGL", | ||
"repository": "jsulpis/usegl", | ||
"license": "MIT", | ||
"author": "Julien SULPIS", | ||
"sideEffects": false, | ||
"type": "module", | ||
"exports": { | ||
".": { | ||
"types": "./dist/index.d.ts", | ||
"import": "./dist/index.mjs" | ||
} | ||
}, | ||
"main": "./dist/index.mjs", | ||
"module": "./dist/index.mjs", | ||
"types": "./dist/index.d.ts", | ||
"files": [ | ||
"dist" | ||
], | ||
"scripts": { | ||
"build": "unbuild", | ||
"dev": "astro dev", | ||
"format": "prettier src --check", | ||
"format:fix": "prettier src --write", | ||
"lint": "eslint src", | ||
"lint:fix": "eslint src --fix", | ||
"prepack": "pnpm build", | ||
"release": "changelogen --release --clean", | ||
"test": "playwright test", | ||
"test:local": "docker build -t usegl . && docker run --rm -v $(pwd)/test-results:/app/test-results usegl /bin/sh -c 'xvfb-run pnpm run test'", | ||
"test:ui": "playwright test --ui", | ||
"test:update": "docker build -t usegl . && docker run --rm -v $(pwd)/test-results:/app/test-results -v $(pwd)/tests/__screenshots__:/app/tests/__screenshots__ usegl", | ||
"typecheck": "tsc --noEmit && astro check" | ||
}, | ||
"devDependencies": { | ||
"@astrojs/check": "0.9.4", | ||
"@playwright/test": "1.48.1", | ||
"@types/node": "22.1.0", | ||
"astro": "4.16.7", | ||
"changelogen": "0.5.5", | ||
"eslint": "9.8.0", | ||
"eslint-config-unjs": "0.3.2", | ||
"prettier": "3.3.3", | ||
"typescript": "5.5.4", | ||
"unbuild": "3.0.0-rc.7" | ||
}, | ||
"changelog": { | ||
"excludeAuthors": [ | ||
"" | ||
] | ||
} | ||
} |
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
export function incrementRenderCount() { | ||
const renderCountElement = document.querySelector("#renderCount"); | ||
renderCountElement.textContent = `${Number(renderCountElement.textContent) + 1}`; | ||
const renderCountElement = document.querySelector("#renderCount"); | ||
renderCountElement.textContent = `${Number(renderCountElement.textContent) + 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 |
---|---|---|
@@ -1,14 +1,14 @@ | ||
import { readdirSync } from "node:fs"; | ||
|
||
export const sections = readdirSync("playground/src/pages", { withFileTypes: true }) | ||
.filter((file) => file.isDirectory()) | ||
.map((folder) => folder.name); | ||
.filter((file) => file.isDirectory()) | ||
.map((folder) => folder.name); | ||
|
||
export const routes = sections.flatMap((section) => { | ||
const files = readdirSync(`playground/src/pages/${section}`); | ||
const files = readdirSync(`playground/src/pages/${section}`); | ||
|
||
return files.map((file) => { | ||
const route = file.replace(".astro", ""); | ||
return { section, route }; | ||
}); | ||
return files.map((file) => { | ||
const route = file.replace(".astro", ""); | ||
return { section, route }; | ||
}); | ||
}); |
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 |
---|---|---|
@@ -1 +1 @@ | ||
/// <reference path="../../.astro/types.d.ts" /> | ||
/// <reference path="../../.astro/types.d.ts" /> |
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 |
---|---|---|
@@ -1,9 +1,9 @@ | ||
{ | ||
"extends": "astro/tsconfigs/base", | ||
"include": ["../src", "src"], | ||
"compilerOptions": { | ||
"paths": { | ||
"usegl": ["../src/index.ts"] | ||
} | ||
} | ||
"extends": "astro/tsconfigs/base", | ||
"include": ["../src", "src"], | ||
"compilerOptions": { | ||
"paths": { | ||
"usegl": ["../src/index.ts"] | ||
} | ||
} | ||
} |
Oops, something went wrong.