This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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
JavaScript 5 hrs 33 mins ███████████▌░░░░░░░░░ 54.8% | |
TypeScript 2 hrs 48 mins █████▊░░░░░░░░░░░░░░░ 27.7% | |
Markdown 34 mins █▏░░░░░░░░░░░░░░░░░░░ 5.7% | |
YAML 28 mins ▉░░░░░░░░░░░░░░░░░░░░ 4.7% | |
JSON 23 mins ▊░░░░░░░░░░░░░░░░░░░░ 3.9% |