0.0.2 • Published 5 years ago

pseudopia v0.0.2

Weekly downloads
3
License
ISC
Repository
-
Last release
5 years ago

Pseudopia

Parse pseudo React into a scaffolded app.

Example

Pseudo code:

<Layout>
    <Header />
    <Wrapper>
        <MainContent
            title="Pseudopia"
            subTitle="A delightful React app generator"
        />
    </Wrapper>
    <Footer />
</Layout>

Generates:

./output/
├── App.tsx
└── components
    ├── Footer.tsx
    ├── Header.tsx
    ├── Layout.tsx
    ├── MainContent.tsx
    ├── Wrapper.tsx
    └── __tests__
        ├── Footer.test.tsx
        ├── Header.test.tsx
        ├── Layout.test.tsx
        ├── MainContent.test.tsx
        └── Wrapper.test.tsx

Getting Started

  1. Run npm i
  2. Fill out the pseudoCode.js file with your app idea
  3. Run npm start

You should now see an output directory with a scaffolded app.

Flags

Naming

NameOptionsDefault
--baseComponentNamestringApp
--componentDirNamestringcomponents
--extensionjs, jsx or tsxtsx

Outputs

NameOptionsDefault
--outputPathstring./output
--unitTestOutputPathstring./output/components/__tests__

Templates

NameOptionsDefault
--appTemplatePathstring./templates/app.hbs
--componentTemplatePathstring./templates/component.hbs
--unitTestTemplatePathstring./templates/unit-test.hbs

Example

$ pseudopia myPseudo.js --baseComponentName Wrapper

Enjoy.

0.0.2

5 years ago

0.0.1

5 years ago