@vkontakte/vk-miniapps-deploy 0.1.6 → 0.1.7

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.
@@ -1,2 +1,2 @@
1
- * @VKCOM/vk-miniapp
2
- .github/dependabot.yml @VKCOM/vk-sec
1
+ * @VKCOM/vk-miniapp
2
+ .github @VKCOM/vk-sec
@@ -0,0 +1,58 @@
1
+ name: Bug Report
2
+ description: Помогите нам сделать библиотеку vk-miniapps-deploy более стабильной
3
+ title: '[Bug]: '
4
+ body:
5
+ - type: textarea
6
+ id: what-happened
7
+ attributes:
8
+ label: Описание
9
+ description: Расскажите о вашей проблеме.
10
+ validations:
11
+ required: true
12
+ - type: input
13
+ id: version
14
+ attributes:
15
+ label: Версия vk-miniapps-deploy
16
+ description: Поможет локализовать проблему.
17
+ validations:
18
+ required: true
19
+ - type: dropdown
20
+ id: platform
21
+ attributes:
22
+ label: Платформа
23
+ description: Выберите одну или несколько платформ, на которых воспроизводится ошибка.
24
+ multiple: true
25
+ options:
26
+ - Windows
27
+ - Linux
28
+ - MacOS
29
+ validations:
30
+ required: true
31
+ - type: textarea
32
+ id: steps
33
+ attributes:
34
+ label: Шаги воспроизведения
35
+ description: Желательно описать последовательность, при которой ошибка стабильно воспроизводится.
36
+ validations:
37
+ required: true
38
+ - type: textarea
39
+ id: expectations
40
+ attributes:
41
+ label: Ожидаемое поведение
42
+ description: Если считаете, что из описания ожидаемое поведение непонятно.
43
+ validations:
44
+ required: true
45
+ - type: textarea
46
+ id: screenshots
47
+ attributes:
48
+ label: Скриншоты
49
+ description: Прикрепите скриншоты, если есть такая возможность.
50
+ - type: textarea
51
+ id: reproduce-example
52
+ attributes:
53
+ label: Код, который вызвал ошибку
54
+ description: Вы можете привести листинг кода.
55
+ - type: markdown
56
+ attributes:
57
+ value: |
58
+ Спасибо за то, что помогаете нам стать лучше!
@@ -0,0 +1,57 @@
1
+ <!--
2
+ Если ваш pull request еще не готов до конца, отметьте его как draft.
3
+ (см. https://github.blog/2019-02-14-introducing-draft-pull-requests/)
4
+
5
+ Чек лист для отправки нового pull request в репозиторий vk-miniapps-deploy:
6
+ 1) 👷‍♀️ Создавайте небольшие PR. Один PR - одна проблема. Чем меньше изменений, тем проще нам будет его рассмотреть.
7
+ 2) ✅ Проверьте, что ваши изменения прошли проверки линтерами.
8
+ 3) 📝 В commit messages указывайте, какую именно пользу приносят ваши изменения.
9
+ 4) ⚠️ Убедитесь, что ваши изменения не сломают обратную совместимость текущего функционала.
10
+ 5) 🧑‍💻 Протестируйте ваши изменения на поддерживаемых библиотекой операционных системах (Windows/MacOS/Linux).
11
+
12
+ Если этот PR закрывает Issue, то укажите ссылку на него. Используйте доступные ключевые слова (см. https://docs.github.com/en/get-started/writing-on-github/working-with-advanced-formatting/using-keywords-in-issues-and-pull-requests).
13
+
14
+ Пример:
15
+ - close #123
16
+ -->
17
+
18
+ ## Описание проблемы
19
+
20
+ <!--
21
+ Проблема должна быть описана понятно и полностью, по возможности максимально коротко.
22
+ Для бага - дополнительно приведите описание окружения и шагов воспроизведения.
23
+ Если по данной проблеме создано issue, то добавьте ссылки.
24
+
25
+ Пример:
26
+ - related to #123
27
+ -->
28
+
29
+ ## Описание решения
30
+
31
+ <!--
32
+ Напишите подробности о том, что делает PR.
33
+ -->
34
+
35
+
36
+ ## Способ проверки с шагами
37
+
38
+ <!--
39
+ Опишите то, как тестировался данный pull request.
40
+ По возможности приведите алгоритм действий, расписанный по шагам.
41
+ -->
42
+
43
+ ## Обратная совместимость
44
+
45
+ <!--
46
+ Если ваш pull request изменяет поведение текущей реализации, то подробно опишите результат до/после.
47
+ -->
48
+
49
+ ## Скриншоты
50
+
51
+ <!--
52
+ Если ваши изменения касаются UI, то прикрепите скриншоты до/после.
53
+ -->
54
+
55
+ <!--
56
+ Спасибо за то, что помогаете нам стать лучше!
57
+ -->
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
- [<img width="134" src="https://vk.com/images/apps/mini_apps/vk_mini_apps_logo.svg">](https://vk.com/services)
1
+ [<img width="134" src="https://sun9-30.userapi.com/IMLu3sXowImUG-VtL34AqHT4qIUBapkCO0dyhA/bz55lWspvOk.svg">](https://vk.com/services)
2
2
 
3
- # VK Mini Apps Deploy [![npm][npm]][npm-url] [![deps][deps]][deps-url]
3
+ # VK Mini Apps Deploy [![npm][npm]][npm-url]
4
4
 
5
5
  Deploy straight to VK Mini Apps hosting with one simple command.
6
6
 
@@ -35,9 +35,9 @@ And now you can run `npm run deploy` to run the `vk-miniapps-deploy` installed i
35
35
 
36
36
  ## Options
37
37
 
38
- To configure `vk-miniapps-deploy` all you need to do is specify a couple of things in your `vk-hosting-config.json`
38
+ To configure `vk-miniapps-deploy` all you need to do is specify a couple of things in your `vk-hosting-config.json`
39
39
 
40
- ``` JSON
40
+ ```JSON
41
41
  {
42
42
  "static_path": "build",
43
43
  "app_id": "...",
@@ -50,10 +50,11 @@ To configure `vk-miniapps-deploy` all you need to do is specify a couple of thin
50
50
  ```
51
51
 
52
52
  ## How to use:
53
- * Make sure that in package.json the key value «homepage» is «./»
54
- * Copy the example config to the root folder of your application vk-hosting-config.json.example
53
+
54
+ - Make sure that in package.json the key value «homepage» is «./»
55
+ - Copy the example config to the root folder of your application vk-hosting-config.json.example
55
56
  and remove the suffix «.example»
56
- * Run yarn deploy
57
+ - Run yarn deploy
57
58
 
58
59
  For your CI, you can use
59
60
 
@@ -61,19 +62,20 @@ For your CI, you can use
61
62
  $ env MINI_APPS_ACCESS_TOKEN=<token> yarn deploy
62
63
  ```
63
64
 
64
- with *user token* retrieved from vk-miniapps-deploy OR *service token* of deployable application
65
+ with _user token_ retrieved from vk-miniapps-deploy OR _service token_ of deployable application
65
66
 
66
- There are two values to specify MINI_APPS_ENVIRONMENT: `production` or `dev`.
67
+ There are two values to specify MINI_APPS_ENVIRONMENT: `production` or `dev`.
67
68
  All production builds will be also deployed on dev environment.
68
69
 
69
70
  If you grep URL paths, you can use environment variable `CI_URLS = true`.
70
71
 
71
72
  ## Troubleshooting:
73
+
72
74
  If you get an error `User authorization failed: invalid session`, try this comand:
75
+
73
76
  ```bash
74
77
  rm ~/.config/configstore/@vkontakte/vk-miniapps-deploy.json
75
78
  ```
79
+
76
80
  [npm]: https://img.shields.io/npm/v/@vkontakte/vk-miniapps-deploy.svg
77
81
  [npm-url]: https://npmjs.com/package/@vkontakte/vk-miniapps-deploy
78
- [deps]: https://img.shields.io/david/vkcom/vk-miniapps-deploy.svg
79
- [deps-url]: https://david-dm.org/vkcom/vk-miniapps-deploy
package/index.js CHANGED
@@ -7,7 +7,6 @@ const { zip } = require('zip-a-folder');
7
7
  const fs = require('fs-extra');
8
8
  const FormData = require('form-data');
9
9
  const Configstore = require('configstore');
10
- const glob = require('glob');
11
10
  const vault = new Configstore(packageJson.name, {});
12
11
 
13
12
  var configJSON = require('require-module')('./vk-hosting-config.json');
@@ -415,12 +414,6 @@ async function run(cfg) {
415
414
  const bundleFile = cfg.bundleFile || './build.zip';
416
415
 
417
416
  if (!cfg.bundleFile) {
418
- const excludedFiles = await glob.sync('./' + staticPath + '/**/*.txt');
419
-
420
- await excludedFiles.forEach((file) => {
421
- fs.removeSync(file);
422
- });
423
-
424
417
  if (await fs.pathExists(bundleFile)) {
425
418
  fs.removeSync(bundleFile)
426
419
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vkontakte/vk-miniapps-deploy",
3
- "version": "0.1.6",
3
+ "version": "0.1.7",
4
4
  "description": "Deploy to VK Mini Apps hosting with one simple command",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -38,7 +38,6 @@
38
38
  "configstore": "^5.0.0",
39
39
  "form-data": "^3.0.0",
40
40
  "fs-extra": "^8.0.1",
41
- "glob": "^7.1.6",
42
41
  "node-fetch": "^2.6.0",
43
42
  "prompts": "^2.1.0",
44
43
  "require-module": "^0.1.0",