refactor(starter): upgrade to new version of gatsby

This commit is contained in:
Alexander Shelepenok
2022-01-09 20:12:31 +00:00
parent 84bdc5899d
commit 67ebabbaac
397 changed files with 26665 additions and 34984 deletions

View File

@@ -0,0 +1,3 @@
const concat = (...args: string[]): string => args.join("");
export default concat;

View File

@@ -0,0 +1,3 @@
const decrement = (n: number): number => n - 1;
export default decrement;

View File

@@ -0,0 +1,3 @@
const increment = (n: number): number => n + 1;
export default increment;

View File

@@ -0,0 +1,4 @@
export { default as toKebabCase } from "./to-kebab-case";
export { default as decrement } from "./decrement";
export { default as increment } from "./increment";
export { default as concat } from "./concat";

View File

@@ -0,0 +1,6 @@
const toKebabCase = (str: string = ""): string => str.toLowerCase()
.replace(/[^\w\s]/gi, "")
.split(" ").join("-")
.split("_").join("-");
export default toKebabCase;