Skip to content

Instantly share code, notes, and snippets.

View iyu88's full-sized avatar

Hyunbin Lee iyu88

View GitHub Profile
@iyu88
iyu88 / 01_tablist_example.html
Created March 17, 2024 14:17
[2024-03-17-aria-hidden-and-role] Example code snippet
<ul role="tablist">
<li role="none">
<a href="#panel_1"
role="tab"
aria-selected="true/false"
aria-controls="panel_1">
...
</a>
</li>
<!-- etc. -->
@iyu88
iyu88 / 01_cjs_syntax.js
Last active March 2, 2024 13:09
[2024-03-02-javascript-module-system] Example code snippet
// [출처] express (https://github.com/expressjs/express)
/**
* @description 모듈을 내보낼 때
* @see https://github.com/expressjs/express/blob/master/index.js#L11
*/
module.exports = require('./lib/express');
/**
@iyu88
iyu88 / .lighthouserc.json
Created November 17, 2022 13:30
Example of '.lighthouserc.json'
{
"ci": {
"collect": {
"staticDistDir": "./build",
"url": ["http://localhost:3000"],
"numberOfRuns": 5 // 테스트 실행 횟수 (기본값 3)
},
"upload": {
"target": "filesystem",
// 테스트 결과를 저장하는 폴더 경로
@iyu88
iyu88 / lighthouse-ci.yaml
Created November 17, 2022 13:25
Example of Lighthouse CI GitHub Actions
name: Run lighthouse CI When Pull Request
on:
pull_request:
branches: ['dev']
paths:
- './frontend/**'
workflow_dispatch:
jobs:
@iyu88
iyu88 / lighthouse.yaml
Created November 17, 2022 11:05
Example of 'lighthouse-report-formatter' usage
- name: Format lighthouse score
id: format_lighthouse_score
uses: iyu88/lighthouse-report-formatter@v1.0.0
with:
# 디렉토리 루트를 기준으로 '.lighthouserc.json' 파일이 있는 위치를 명시합니다.
lh_directory: ./frontend/
# lighthouse 실행 결과를 보여주는 파일들이 저장되는 폴더 이름 (outputDir) 을 명시합니다.
# .lighthouserc.json 예시
# "upload": {
# "target": "filesystem",