creatium 0.1.3 → 0.1.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/README.md +64 -10
  2. package/dist/main.mjs +5 -5
  3. package/package.json +2 -2
package/README.md CHANGED
@@ -12,12 +12,76 @@
12
12
  [![Medium](https://img.shields.io/badge/Medium-black?style=for-the-badge&logo=medium&logoColor=white)](https://medium.com/@pigeonposse)
13
13
 
14
14
 
15
+ [![License](https://img.shields.io/github/license/pigeonposse/creatium?color=green&style=for-the-badge&logoColor=white)](https://github.com/pigeonposse/creatium/blob/main/LICENSE)
16
+ [![Version](https://img.shields.io/npm/v/creatium?color=blue&style=for-the-badge&label=Version)](https://www.npmjs.com/package/creatium)
17
+
18
+ ## 🤔 What is it `creatium`?
19
+
20
+ `creatium` is a JavaScript Library for creating project templates.
21
+
22
+ > Useful for create-binaries like `pnpm create backan`
23
+
24
+ [Read more](https://www.npmjs.com/package/creatium)
25
+
26
+ Demo of the `creatium` library:
27
+
28
+ ![demo](https://github.com/pigeonposse/creatium/raw/main/docs/public/example.gif)
29
+
30
+ ## 📄 Description
31
+
15
32
  Build your create-bins quickly and easily
16
33
 
17
34
  ## Table of contents
18
35
 
36
+ - [🤔 What is it `creatium`?](#-what-is-it-creatium)
37
+ - [📄 Description](#-description)
19
38
  - [🔑 Installation](#-installation)
39
+ - [🚀 Usage](#-usage)
40
+ - [Simple use case](#simple-use-case)
41
+ - [Project structure](#project-structure)
42
+ - [src/core.js](#srccorejs)
43
+ - [src/bin.js](#srcbinjs)
44
+ - [src/lib.js](#srclibjs)
45
+ - [package.json](#packagejson)
46
+ - [Data (templates)](#data-templates)
47
+ - [Execute](#execute)
48
+ - [Advanced use case](#advanced-use-case)
49
+ - [Project structure](#project-structure)
50
+ - [src/core.js](#srccorejs)
51
+ - [src/bin.js](#srcbinjs)
52
+ - [src/lib.js](#srclibjs)
53
+ - [package.json](#packagejson)
54
+ - [Data (templates & partials)](#data-templates--partials)
55
+ - [Execute](#execute)
56
+ - [Api documentation](#api-documentation)
57
+ - [Classes](#classes)
58
+ - [Creatium](#creatium)
59
+ - [CreatiumCore\<C\>](#creatiumcorec)
60
+ - [Type Aliases](#type-aliases)
61
+ - [CliOpts](#cliopts)
62
+ - [Config](#config)
63
+ - [CreateOpts](#createopts)
64
+ - [CreateTemplateOpts](#createtemplateopts)
65
+ - [Variables](#variables)
66
+ - [env](#env)
67
+ - [INSTALLER](#installer)
68
+ - [OPTION](#option)
69
+ - [prompt](#prompt)
70
+ - [style](#style)
71
+ - [sys](#sys)
72
+ - [TEXT\_EDITOR](#text_editor)
73
+ - [👨‍💻 Development](#-development)
74
+ - [☕ Donate](#-donate)
75
+ - [📜 License](#-license)
76
+ - [🐦 About us](#-about-us)
77
+
78
+
79
+
80
+ ## Table of contents
81
+
20
82
  - [🤔 What is it `creatium`?](#-what-is-it-creatium)
83
+ - [📄 Description](#-description)
84
+ - [🔑 Installation](#-installation)
21
85
  - [🚀 Usage](#-usage)
22
86
  - [Simple use case](#simple-use-case)
23
87
  - [Project structure](#project-structure)
@@ -72,14 +136,6 @@ deno install creatium
72
136
  bun add creatium
73
137
  ```
74
138
 
75
- ## 🤔 What is it `creatium`?
76
-
77
- `creatium` is a CLI and Library for creating project templates.
78
-
79
- > Useful for create-binaries like `pnpm create backan`
80
-
81
- [Read more](https://www.npmjs.com/package/creatium)
82
-
83
139
  ## 🚀 Usage
84
140
 
85
141
  Create a cli and a library project with `creatium`
@@ -1524,8 +1580,6 @@ Text editor values used in `openEditor` option.
1524
1580
  | `WEBSTORM` | `"webstorm"` | 'webstorm' |
1525
1581
 
1526
1582
 
1527
- ***
1528
-
1529
1583
  ## 👨‍💻 Development
1530
1584
 
1531
1585
  __creatium__ is an open-source project and its development is open to anyone who wants to participate.
package/dist/main.mjs CHANGED
@@ -1609,7 +1609,7 @@ class CreatiumCore {
1609
1609
  else if (typeof this.config.outro === "function" && __privateGet$1(this, _data))
1610
1610
  await this.config.outro(__privateGet$1(this, _data));
1611
1611
  else if (this.config.outro === void 0)
1612
- this.utils.prompt.outro("Succesfully finished \u{1F308}");
1612
+ this.utils.prompt.outro("Successfully completed \u{1F308}");
1613
1613
  }
1614
1614
  /**
1615
1615
  * Copy a directory from input path to output path.
@@ -1661,7 +1661,7 @@ class CreatiumCore {
1661
1661
  try {
1662
1662
  s.start(`Installing with ${installer}`);
1663
1663
  await execChild(command[installer]);
1664
- s.stop(__privateGet$1(this, _style).tick + " Package installed successfully");
1664
+ s.stop(`${__privateGet$1(this, _style).tick} Package installed with [${installer}] successfully`);
1665
1665
  } catch (_e) {
1666
1666
  if (this.debugMode)
1667
1667
  s.stop(`Error in installation with [${installer}]: ${_e?.toString()}`);
@@ -1697,12 +1697,12 @@ class CreatiumCore {
1697
1697
  try {
1698
1698
  s.start(`Opening in ${editor}`);
1699
1699
  await execChild(`${editor} ${input}`);
1700
- s.stop(__privateGet$1(this, _style).tick + " TEXT_EDITOR opened successfully");
1700
+ s.stop(`${__privateGet$1(this, _style).tick} Text editor [${editor}] opened successfully`);
1701
1701
  } catch (_e) {
1702
1702
  if (this.debugMode)
1703
- s.stop(`Error opening in [${editor}]: ${_e?.toString()}`);
1703
+ s.stop(`Error opening [${editor}] text editor: ${_e?.toString()}`);
1704
1704
  else
1705
- s.stop("Error opening TEXT_EDITOR");
1705
+ s.stop(`Error opening [${editor}] text editor`);
1706
1706
  }
1707
1707
  }
1708
1708
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "creatium",
3
- "version": "0.1.3",
3
+ "version": "0.1.5",
4
4
  "description": "Build your create-bins quickly and easily",
5
5
  "bugs": {
6
6
  "url": "https://github.com/pigeonposse/creatium/issues",
@@ -47,7 +47,7 @@
47
47
  "@types/columnify": "1.5.4",
48
48
  "@types/update-notifier": "6.0.8",
49
49
  "@types/yargs": "17.0.33",
50
- "@creatium/repo-config": "0.1.2"
50
+ "@creatium/repo-config": "0.1.4"
51
51
  },
52
52
  "publishConfig": {
53
53
  "access": "public",