I hereby claim:
- I am tyom on github.
- I am tyom (https://keybase.io/tyom) on keybase.
- I have a public key whose fingerprint is 070D 4B95 A4C5 F5A6 09A4 52F0 DD60 5FE8 EA45 DAE0
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
{ | |
"devDependencies": { | |
"babel-core": "^6.11.4", | |
"babel-loader": "^6.2.4", | |
"babel-preset-es2015": "^6.9.0", | |
"babel-register": "^6.11.6", | |
"css-loader": "^0.23.1", | |
"extract-text-webpack-plugin": "^1.0.1", | |
"file-loader": "^0.9.0", | |
"node-sass": "^3.8.0", |
{ | |
"extends": "eslint:recommended", | |
"root": true, | |
"env": { | |
"es6": true, | |
"browser": true, | |
"node": true | |
}, | |
"parserOptions": { | |
"sourceType": "module" |
<script>(function(d){d.className=d.className.replace(/\bno-js\b/,'js-enabled')})(document.documentElement)</script> |
version: 2 | |
references: | |
container_config: &container_config | |
docker: | |
- image: circleci/node:10.8 | |
restore_deps_cache: &restore_deps_cache | |
restore_cache: | |
keys: |
const requireComponent = require.context( | |
'~/components', // components dir | |
true, // recursive | |
/^(\.\/.*)*V[A-Z].+\.vue$/, // name regex | |
); | |
requireComponent.keys().forEach(fileName => { | |
let baseComponentConfig = requireComponent(fileName); | |
baseComponentConfig = baseComponentConfig.default || baseComponentConfig; |
window.location.href.match(/[^/]$/) && (window.location.href += '/'); |
.divider { | |
margin: 1.5rem 0; | |
position: relative; | |
overflow: hidden; | |
&::before, | |
&::after { | |
content: ''; | |
position: absolute; | |
top: 50%; |
import { useRef, useEffect } from 'preact/hooks'; | |
export function useMountedEffect(cb: () => void, deps?: ReadonlyArray<unknown>): void { | |
const didMount = useRef(false); | |
useEffect(() => { | |
if (didMount.current) cb(); | |
else didMount.current = true; | |
}, deps); | |
} |
env: | |
# Add an optional dynamic string based on a PR number | |
SOME_ENV_VAR: static-string/${{ github.event_name == 'pull_request' && format('pr-{0}', github.event.number) || '' }} | |
jobs: | |
some-job: | |
steps: | |
# Conditionally name a step | |
- name: Step for ${{ github.event_name == 'pull_request' && '(PR)' || '(main)' }} |