2.9.5 • Published 11 months ago

@atomico/scaffold v2.9.5

Weekly downloads
-
License
MIT
Repository
github
Last release
11 months ago

@atomico/scaffold

CLI that generates files from markdown documents

Install

npm i @atomico/scaffold

use from package.json#scripts

Add script to package.json

{
    "scripts": {
        "create-component": "scaff template/component-jsx src"
    }
}

use from npx

scaff template/component-jsx src

Markdown

The files are created according to the markdown file associated with the CLI, all the code blocks that declare the path will be created only if the document does not exist, example:

---
{
    data: { name: "Upper Cod" },
    questions: [{ type: "text", name: "name", message: "Component name?" }],
}
---

## bla bla..

```js tests/build/<<name|kebabCase>>.js
const data = {"<<name|kebabCase>>":10};
const <<name|camelCase>> = 10;
const <<name|pascalCase>> = 10;
```

Bla bla..

```css tests/build/<<name|kebabCase>>.css
:host {
    display: block;
}
```

The CLI uses Prompts for the use of questions

2.9.4

11 months ago

2.9.5

11 months ago

2.9.2

12 months ago

2.8.3

12 months ago

2.9.1

12 months ago

2.9.3

12 months ago

2.9.0

12 months ago

0.8.1

12 months ago

0.8.0

12 months ago

0.8.2

12 months ago

0.6.2

2 years ago

0.5.0

2 years ago

0.7.0

1 year ago

0.6.1

2 years ago

0.5.2

2 years ago

0.6.0

2 years ago

0.5.1

2 years ago

0.3.0

2 years ago

0.4.0

2 years ago

0.2.0

2 years ago

0.1.0

2 years ago

0.0.0

2 years ago