+1
-1
| { | ||
| "name": "forji", | ||
| "version": "1.0.2", | ||
| "version": "1.0.3", | ||
| "description": "Library for building project structures with dynamic folder/file names", | ||
@@ -5,0 +5,0 @@ "type": "module", |
+9
-9
@@ -45,8 +45,8 @@ # ๐๏ธ Project Builder | ||
| const structure = { | ||
| 'src': { | ||
| 'components': { | ||
| src: { | ||
| components: { | ||
| Button$tsx: 'export const Button = () => <button>Click me</button>;', | ||
| 'index$ts': 'export * from "./Button";' | ||
| index$ts: 'export * from "./Button";' | ||
| }, | ||
| 'utils': { | ||
| utils: { | ||
| helpers$ts: 'export const sum = (a: number, b: number) => a + b;' | ||
@@ -292,4 +292,4 @@ }, | ||
| const structure = { | ||
| 'src': { | ||
| 'models': { | ||
| src: { | ||
| models: { | ||
| '{{entityName}}$ts': () => { | ||
@@ -391,4 +391,4 @@ // This function has access to the variables via closure | ||
| const reactProject = { | ||
| 'src': { | ||
| 'components': { | ||
| src: { | ||
| components: { | ||
| App$tsx: `import React from 'react'; | ||
@@ -404,3 +404,3 @@ export const App = () => <div>Hello World</div>;`, | ||
| }, | ||
| 'public': { | ||
| public: { | ||
| 'index.html': `<!DOCTYPE html> | ||
@@ -407,0 +407,0 @@ <html> |
19296
-0.09%