creatium 0.1.4 → 0.1.6
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.
- package/README.md +2 -74
- package/dist/main.mjs +5 -5
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -27,10 +27,6 @@ Demo of the `creatium` library:
|
|
|
27
27
|
|
|
28
28
|

|
|
29
29
|
|
|
30
|
-
## 📄 Description
|
|
31
|
-
|
|
32
|
-
Build your create-bins quickly and easily
|
|
33
|
-
|
|
34
30
|
## Table of contents
|
|
35
31
|
|
|
36
32
|
- [🤔 What is it `creatium`?](#-what-is-it-creatium)
|
|
@@ -38,88 +34,20 @@ Build your create-bins quickly and easily
|
|
|
38
34
|
- [🔑 Installation](#-installation)
|
|
39
35
|
- [🚀 Usage](#-usage)
|
|
40
36
|
- [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
37
|
- [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
38
|
- [Api documentation](#api-documentation)
|
|
57
39
|
- [Classes](#classes)
|
|
58
|
-
- [Creatium](#creatium)
|
|
59
|
-
- [CreatiumCore\<C\>](#creatiumcorec)
|
|
60
40
|
- [Type Aliases](#type-aliases)
|
|
61
|
-
- [CliOpts](#cliopts)
|
|
62
|
-
- [Config](#config)
|
|
63
|
-
- [CreateOpts](#createopts)
|
|
64
|
-
- [CreateTemplateOpts](#createtemplateopts)
|
|
65
41
|
- [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
42
|
- [👨💻 Development](#-development)
|
|
74
43
|
- [☕ Donate](#-donate)
|
|
75
44
|
- [📜 License](#-license)
|
|
76
45
|
- [🐦 About us](#-about-us)
|
|
77
46
|
|
|
78
47
|
|
|
48
|
+
## 📄 Description
|
|
79
49
|
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
- [🤔 What is it `creatium`?](#-what-is-it-creatium)
|
|
83
|
-
- [📄 Description](#-description)
|
|
84
|
-
- [🔑 Installation](#-installation)
|
|
85
|
-
- [🚀 Usage](#-usage)
|
|
86
|
-
- [Simple use case](#simple-use-case)
|
|
87
|
-
- [Project structure](#project-structure)
|
|
88
|
-
- [src/core.js](#srccorejs)
|
|
89
|
-
- [src/bin.js](#srcbinjs)
|
|
90
|
-
- [src/lib.js](#srclibjs)
|
|
91
|
-
- [package.json](#packagejson)
|
|
92
|
-
- [Data (templates)](#data-templates)
|
|
93
|
-
- [Execute](#execute)
|
|
94
|
-
- [Advanced use case](#advanced-use-case)
|
|
95
|
-
- [Project structure](#project-structure)
|
|
96
|
-
- [src/core.js](#srccorejs)
|
|
97
|
-
- [src/bin.js](#srcbinjs)
|
|
98
|
-
- [src/lib.js](#srclibjs)
|
|
99
|
-
- [package.json](#packagejson)
|
|
100
|
-
- [Data (templates & partials)](#data-templates--partials)
|
|
101
|
-
- [Execute](#execute)
|
|
102
|
-
- [Api documentation](#api-documentation)
|
|
103
|
-
- [Classes](#classes)
|
|
104
|
-
- [Creatium](#creatium)
|
|
105
|
-
- [CreatiumCore\<C\>](#creatiumcorec)
|
|
106
|
-
- [Type Aliases](#type-aliases)
|
|
107
|
-
- [CliOpts](#cliopts)
|
|
108
|
-
- [Config](#config)
|
|
109
|
-
- [CreateOpts](#createopts)
|
|
110
|
-
- [CreateTemplateOpts](#createtemplateopts)
|
|
111
|
-
- [Variables](#variables)
|
|
112
|
-
- [env](#env)
|
|
113
|
-
- [INSTALLER](#installer)
|
|
114
|
-
- [OPTION](#option)
|
|
115
|
-
- [prompt](#prompt)
|
|
116
|
-
- [style](#style)
|
|
117
|
-
- [sys](#sys)
|
|
118
|
-
- [TEXT\_EDITOR](#text_editor)
|
|
119
|
-
- [👨💻 Development](#-development)
|
|
120
|
-
- [☕ Donate](#-donate)
|
|
121
|
-
- [📜 License](#-license)
|
|
122
|
-
- [🐦 About us](#-about-us)
|
|
50
|
+
Build your create-bins quickly and easily
|
|
123
51
|
|
|
124
52
|
|
|
125
53
|
## 🔑 Installation
|
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("
|
|
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
|
|
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
|
|
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
|
|
1703
|
+
s.stop(`Error opening [${editor}] text editor: ${_e?.toString()}`);
|
|
1704
1704
|
else
|
|
1705
|
-
s.stop(
|
|
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
|
+
"version": "0.1.6",
|
|
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.
|
|
50
|
+
"@creatium/repo-config": "0.1.5"
|
|
51
51
|
},
|
|
52
52
|
"publishConfig": {
|
|
53
53
|
"access": "public",
|