Skip to content

Commit a0b26d4

Browse files
CNAME file added
1 parent 8d70ac5 commit a0b26d4

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

docs/CNAME

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
reactype.io
2+
www.reactype.io

src/utils/createFiles.util.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import fs from 'fs';
22
import { format } from 'prettier';
33
import componentRender from './componentRender.util.ts';
44

5-
const createFiles = (data: any, path: string, appName: string, exportAppBool: boolean) => {
5+
const createFiles = (components: any, path: string, appName: string, exportAppBool: boolean) => {
66
let dir = path;
77
if (!dir.match(/components|\*$/)) {
88
if (fs.existsSync(`${dir}/src`)) {
@@ -15,11 +15,11 @@ const createFiles = (data: any, path: string, appName: string, exportAppBool: bo
1515
}
1616

1717
const promises: Array<any> = [];
18-
data.forEach((component: any) => {
18+
components.forEach((component: any) => {
1919
const newPromise = new Promise((resolve, reject) => {
2020
fs.writeFile(
2121
`${dir}/${component.title}.tsx`,
22-
format(componentRender(component, data), {
22+
format(componentRender(component, components), {
2323
singleQuote: true,
2424
trailingComma: 'es5',
2525
bracketSpacing: true,

0 commit comments

Comments
 (0)