aprog 2.1.0 → 2.1.2

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 +10 -0
  2. package/package.json +1 -1
  3. package/publish.js +4 -8
package/README.md CHANGED
@@ -139,6 +139,16 @@ onInput: (event) => {
139
139
  <input value="4">
140
140
  ```
141
141
 
142
+ Завантаження `Constructs`
143
+ ```shell
144
+ node node_modules/aprog/publish.js
145
+ ```
146
+
147
+ Завантаження `Constructs` з перезаписом
148
+ ```shell
149
+ node node_modules/aprog/publish.js --force
150
+ ```
151
+
142
152
  ########## ########## ########## ########## ##########
143
153
 
144
154
  Загальний список методів:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aprog",
3
- "version": "2.1.0",
3
+ "version": "2.1.2",
4
4
  "description": "Допоміжна JavaScript-бібліотека для проєктів",
5
5
  "main": "index.js",
6
6
  "exports": {
package/publish.js CHANGED
@@ -13,12 +13,10 @@ function copyFile(from, to) {
13
13
 
14
14
  if (!fs.existsSync(to) || force) {
15
15
  fs.copyFileSync(from, to);
16
- console.log("");
17
- console.log(`✅ %c Копійовано: %c ${to}`, 'color: green', 'color: orange');
16
+ console.log(`✅ Копійовано: ${to}`);
18
17
  console.log("");
19
18
  } else {
20
- console.log("");
21
- console.log(`ℹ️ %c Пропущено (вже існує): %c ${to}`, 'color: orange', 'color: gray');
19
+ console.log(`ℹ️ Пропущено (вже існує): ${to}`);
22
20
  console.log("");
23
21
  }
24
22
  }
@@ -31,8 +29,7 @@ function copyConstructs() {
31
29
  const destDir = path.resolve(process.cwd(), 'resources/js/components/constructs');
32
30
 
33
31
  if (!fs.existsSync(srcDir)) {
34
- console.log("");
35
- console.error(`❌ %c Не знайдено директорії: %c ${srcDir}`, 'color: red', 'color: gray');
32
+ console.error(`❌ Не знайдено директорії: ${srcDir}`);
36
33
  process.exit(1);
37
34
  }
38
35
 
@@ -51,5 +48,4 @@ function copyConstructs() {
51
48
  console.log('📦 Починаю копіювання файлів з Aprog...');
52
49
  console.log("");
53
50
  copyConstructs();
54
- console.log("");
55
- console.log('🏁 %c Готово.', 'color: green');
51
+ console.log('🏁 Готово.');