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
import fs from 'fs/promises' | |
/** | |
* Create files recursively if no directory. | |
*/ | |
export const createFile = async ( | |
data: string, | |
filePath: string, | |
): Promise<void> => { | |
try { |
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
import dynamic from 'next/dynamic'; | |
import { P5WrapperProps } from 'react-p5-wrapper'; | |
import { NamedExoticComponent } from 'react'; | |
const importReactP5Wrapper = async () => { | |
const module = await import('react-p5-wrapper'); | |
return module.ReactP5Wrapper as NamedExoticComponent<P5WrapperProps>; | |
}; | |
export const ReactP5Wrapper = dynamic(importReactP5Wrapper, { |
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
# ==== Prefix ==== | |
# init | |
# feat | |
# fix | |
# refactor | |
# docs | |
# des | |
# remove |
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
TypeScript 2 hrs 29 mins ██████████████████░░░ 86.0% | |
YAML 17 mins ██░░░░░░░░░░░░░░░░░░░ 9.8% | |
textmate 5 mins ▋░░░░░░░░░░░░░░░░░░░░ 3.1% | |
yarn.lock 1 min ▏░░░░░░░░░░░░░░░░░░░░ 0.7% | |
JSON 0 secs ░░░░░░░░░░░░░░░░░░░░░ 0.3% |