@corva/create-app 0.27.0-1 → 0.28.0-1

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 (129) hide show
  1. package/README.md +160 -17
  2. package/bin/create-corva-app.js +5 -0
  3. package/lib/app.js +9 -0
  4. package/lib/bump-version.option.js +29 -0
  5. package/{constants → lib/constants}/cli.js +1 -0
  6. package/{constants → lib/constants}/manifest.js +4 -2
  7. package/lib/constants/messages.js +21 -0
  8. package/{constants → lib/constants}/package.js +2 -2
  9. package/lib/flow.js +46 -0
  10. package/lib/flows/lib/create-zip-archive.js +77 -0
  11. package/lib/flows/lib/json.js +28 -0
  12. package/lib/flows/lib/manifest.js +31 -0
  13. package/lib/flows/lib/step-error.js +12 -0
  14. package/lib/flows/prepare.js +8 -0
  15. package/lib/flows/release.js +18 -0
  16. package/lib/flows/steps/prepare-load-app-files.js +18 -0
  17. package/lib/flows/steps/release-get-app-key.js +16 -0
  18. package/lib/flows/steps/release-get-config.js +30 -0
  19. package/lib/flows/steps/release-upload-zip-to-corva.js +34 -0
  20. package/lib/flows/steps/zip-cleanup.js +17 -0
  21. package/lib/flows/steps/zip-create-archive.js +15 -0
  22. package/lib/flows/steps/zip-file-list-resolve.js +185 -0
  23. package/lib/flows/steps/zip-prepare.js +21 -0
  24. package/lib/flows/steps/zip.js +15 -0
  25. package/lib/flows/zip-simple.js +8 -0
  26. package/lib/flows/zip.js +9 -0
  27. package/{helpers → lib/helpers}/manifest.js +2 -2
  28. package/{helpers → lib/helpers}/utils.js +0 -0
  29. package/{helpers → lib/helpers}/versioning.js +0 -0
  30. package/{index.js → lib/index.js} +164 -51
  31. package/{scripts → lib/scripts}/utils/version.js +49 -26
  32. package/package.json +13 -8
  33. package/{template → templates}/scheduler/node/README.md +0 -0
  34. package/{template → templates}/scheduler/node/__test__/processor.test.js +0 -0
  35. package/{template → templates}/scheduler/node/gitignore +0 -0
  36. package/{template → templates}/scheduler/node/index.js +0 -0
  37. package/{template → templates}/scheduler/node/package.json +1 -1
  38. package/{template → templates}/scheduler/node/src/processor.js +0 -0
  39. package/{template → templates}/scheduler/node-ts/README.md +0 -0
  40. package/{template → templates}/scheduler/node-ts/__test__/processor.spec.ts +0 -0
  41. package/{template → templates}/scheduler/node-ts/gitignore +0 -0
  42. package/{template → templates}/scheduler/node-ts/index.ts +0 -0
  43. package/templates/scheduler/node-ts/lib/processor.js +16 -0
  44. package/templates/scheduler/node-ts/lib/processor.js.map +1 -0
  45. package/{template → templates}/scheduler/node-ts/lib/processor.ts +0 -0
  46. package/{template → templates}/scheduler/node-ts/package.json +1 -1
  47. package/{template → templates}/scheduler/node-ts/tsconfig.build.json +0 -0
  48. package/{template → templates}/scheduler/node-ts/tsconfig.json +0 -0
  49. package/templates/scheduler/python/Makefile +15 -0
  50. package/templates/scheduler/python/README.md +31 -0
  51. package/{template → templates}/scheduler/python/lambda_function.py +0 -0
  52. package/{template → templates}/scheduler/python/requirements.txt +0 -0
  53. package/{template → templates}/scheduler/python/test/__init__.py +0 -0
  54. package/{template → templates}/scheduler/python/test/app_test.py +0 -0
  55. package/{template → templates}/stream/node/README.md +0 -0
  56. package/{template → templates}/stream/node/__test__/processor.test.js +0 -0
  57. package/{template → templates}/stream/node/gitignore +0 -0
  58. package/{template → templates}/stream/node/index.js +0 -0
  59. package/{template → templates}/stream/node/package.json +1 -1
  60. package/{template → templates}/stream/node/src/processor.js +0 -0
  61. package/{template → templates}/stream/node-ts/README.md +0 -0
  62. package/{template → templates}/stream/node-ts/__test__/processor.spec.ts +0 -0
  63. package/{template → templates}/stream/node-ts/gitignore +0 -0
  64. package/{template → templates}/stream/node-ts/index.ts +0 -0
  65. package/{template → templates}/stream/node-ts/lib/processor.ts +0 -0
  66. package/{template → templates}/stream/node-ts/package.json +1 -1
  67. package/{template → templates}/stream/node-ts/tsconfig.build.json +0 -0
  68. package/{template → templates}/stream/node-ts/tsconfig.json +0 -0
  69. package/templates/stream/python/Makefile +15 -0
  70. package/templates/stream/python/README.md +31 -0
  71. package/{template → templates}/stream/python/lambda_function.py +0 -0
  72. package/{template → templates}/stream/python/requirements.txt +0 -0
  73. package/{template → templates}/stream/python/test/__init__.py +0 -0
  74. package/{template → templates}/stream/python/test/app_test.py +0 -0
  75. package/{template → templates}/task/node/README.md +0 -0
  76. package/{template → templates}/task/node/__test__/processor.test.js +0 -0
  77. package/{template → templates}/task/node/gitignore +0 -0
  78. package/{template → templates}/task/node/index.js +0 -0
  79. package/{template → templates}/task/node/package.json +1 -1
  80. package/{template → templates}/task/node/src/processor.js +0 -0
  81. package/{template → templates}/task/node-ts/README.md +0 -0
  82. package/{template → templates}/task/node-ts/__test__/processor.spec.ts +0 -0
  83. package/{template → templates}/task/node-ts/gitignore +0 -0
  84. package/{template → templates}/task/node-ts/index.ts +0 -0
  85. package/{template → templates}/task/node-ts/package.json +1 -1
  86. package/{template → templates}/task/node-ts/src/processor.ts +0 -0
  87. package/{template → templates}/task/node-ts/tsconfig.build.json +0 -0
  88. package/{template → templates}/task/node-ts/tsconfig.json +0 -0
  89. package/templates/task/python/Makefile +15 -0
  90. package/templates/task/python/README.md +31 -0
  91. package/{template → templates}/task/python/lambda_function.py +0 -0
  92. package/{template → templates}/task/python/requirements.txt +0 -0
  93. package/{template → templates}/task/python/test/__init__.py +0 -0
  94. package/{template → templates}/task/python/test/app_test.py +0 -0
  95. package/{template → templates}/ui/js/.env +0 -0
  96. package/{template → templates}/ui/js/.env.sample +0 -0
  97. package/{template → templates}/ui/js/.eslintrc +0 -0
  98. package/{template → templates}/ui/js/.prettierrc +0 -0
  99. package/{template → templates}/ui/js/README.md +0 -0
  100. package/{template → templates}/ui/js/config-overrides.js +0 -0
  101. package/{template → templates}/ui/js/gitignore +0 -0
  102. package/{template → templates}/ui/js/src/App.css +0 -0
  103. package/{template → templates}/ui/js/src/App.js +0 -0
  104. package/{template → templates}/ui/js/src/AppSettings.js +0 -0
  105. package/{template → templates}/ui/js/src/assets/logo.svg +0 -0
  106. package/{template → templates}/ui/js/src/constants.js +0 -0
  107. package/{template → templates}/ui/js/src/index.js +0 -0
  108. package/{template → templates}/ui/ts/.env +0 -0
  109. package/{template → templates}/ui/ts/.env.sample +0 -0
  110. package/{template → templates}/ui/ts/.eslintrc +0 -0
  111. package/{template → templates}/ui/ts/.prettierrc +0 -0
  112. package/{template → templates}/ui/ts/README.md +0 -0
  113. package/{template → templates}/ui/ts/config-overrides.js +0 -0
  114. package/{template → templates}/ui/ts/gitignore +0 -0
  115. package/{template → templates}/ui/ts/src/App.css +0 -0
  116. package/{template → templates}/ui/ts/src/App.tsx +0 -0
  117. package/{template → templates}/ui/ts/src/AppSettings.tsx +0 -0
  118. package/{template → templates}/ui/ts/src/assets/logo.svg +0 -0
  119. package/{template → templates}/ui/ts/src/constants.ts +0 -0
  120. package/{template → templates}/ui/ts/src/custom.d.ts +0 -0
  121. package/{template → templates}/ui/ts/src/index.js +0 -0
  122. package/{template → templates}/ui/ts/tsconfig.json +0 -0
  123. package/CHANGELOG.md +0 -489
  124. package/scripts/ui/index.js +0 -7
  125. package/scripts/ui/releaseAppZip.js +0 -91
  126. package/scripts/ui/zipAppSource.js +0 -103
  127. package/template/scheduler/python/README.md +0 -19
  128. package/template/stream/python/README.md +0 -19
  129. package/template/task/python/README.md +0 -19
package/CHANGELOG.md DELETED
@@ -1,489 +0,0 @@
1
- # Changelog
2
-
3
- All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
-
5
- ## [0.27.0-1](https://github.com/corva-ai/create-corva-app/compare/v0.27.0-0...v0.27.0-1) (2022-04-13)
6
-
7
- ## [0.27.0-0](https://github.com/corva-ai/create-corva-app/compare/v0.26.0-1...v0.27.0-0) (2022-04-12)
8
-
9
- ## [0.26.0-1](https://github.com/corva-ai/create-corva-app/compare/v0.24.0-0...v0.26.0-1) (2022-04-11)
10
-
11
-
12
- ### Features
13
-
14
- * **CQA-601:** Updated circle executor for tests ([42496c7](https://github.com/corva-ai/create-corva-app/commit/42496c78b6b4ef88232487aa1ab8e41de29c9432))
15
- * **DC-2969:** prompt package version bump on yarn zip ([8d0825f](https://github.com/corva-ai/create-corva-app/commit/8d0825f0fb9362636b4d95d3e79249d2309a0789))
16
- * **DC-3035:** revert engines ([fbe6c2d](https://github.com/corva-ai/create-corva-app/commit/fbe6c2de87c972bf11a6c53e967f8ed6f93e8aa2))
17
- * **DC-3035:** specify node version ([ebabf71](https://github.com/corva-ai/create-corva-app/commit/ebabf7142b0788f8984c20b9cd74d043bdb0d952))
18
- * **DC-3189:** suppress yarn warnings ([13265ab](https://github.com/corva-ai/create-corva-app/commit/13265ab4c5ce8ee74c883696855b643d21347d64))
19
-
20
-
21
- ### Bug Fixes
22
-
23
- * **CQA-603:** Modules install for tests ([34adc5d](https://github.com/corva-ai/create-corva-app/commit/34adc5d2ac8a48cb2275b514ed9b24002e63a364))
24
- * **DC-2969:** fix PR comments ([6993822](https://github.com/corva-ai/create-corva-app/commit/69938227c85a4749daff04e48fa366094b31b3f8))
25
- * **DC-3242:** fix small size view in initial template ([bf396b9](https://github.com/corva-ai/create-corva-app/commit/bf396b9cbdc29692d5cbaee5bb5741b36b251b3d))
26
-
27
- ## [0.26.0-0](https://github.com/corva-ai/create-corva-app/compare/v0.25.0-0...v0.26.0-0) (2022-03-30)
28
-
29
-
30
- ### Features
31
-
32
- * **CQA-601:** Updated circle executor for tests ([42496c7](https://github.com/corva-ai/create-corva-app/commit/42496c78b6b4ef88232487aa1ab8e41de29c9432))
33
-
34
-
35
- ### Bug Fixes
36
-
37
- * **CQA-603:** Modules install for tests ([34adc5d](https://github.com/corva-ai/create-corva-app/commit/34adc5d2ac8a48cb2275b514ed9b24002e63a364))
38
-
39
- ## [0.25.0-0](https://github.com/corva-ai/create-corva-app/compare/v0.24.0-4...v0.25.0-0) (2022-03-15)
40
-
41
- ## [0.24.0-4](https://github.com/corva-ai/create-corva-app/compare/v0.24.0-1...v0.24.0-4) (2022-03-15)
42
-
43
-
44
- ### Features
45
-
46
- * **DC-3035:** revert engines ([fbe6c2d](https://github.com/corva-ai/create-corva-app/commit/fbe6c2de87c972bf11a6c53e967f8ed6f93e8aa2))
47
- * **DC-3189:** suppress yarn warnings ([13265ab](https://github.com/corva-ai/create-corva-app/commit/13265ab4c5ce8ee74c883696855b643d21347d64))
48
-
49
- ## [0.24.0-3](https://github.com/corva-ai/create-corva-app/compare/v0.24.0-0...v0.24.0-3) (2022-03-11)
50
-
51
-
52
- ### Features
53
-
54
- * **DC-2969:** prompt package version bump on yarn zip ([8d0825f](https://github.com/corva-ai/create-corva-app/commit/8d0825f0fb9362636b4d95d3e79249d2309a0789))
55
- * **DC-3035:** revert engines ([fbe6c2d](https://github.com/corva-ai/create-corva-app/commit/fbe6c2de87c972bf11a6c53e967f8ed6f93e8aa2))
56
- * **DC-3035:** specify node version ([ebabf71](https://github.com/corva-ai/create-corva-app/commit/ebabf7142b0788f8984c20b9cd74d043bdb0d952))
57
-
58
-
59
- ### Bug Fixes
60
-
61
- * **DC-2969:** fix PR comments ([6993822](https://github.com/corva-ai/create-corva-app/commit/69938227c85a4749daff04e48fa366094b31b3f8))
62
-
63
- ## [0.24.0-2](https://github.com/corva-ai/create-corva-app/compare/v0.24.0-1...v0.24.0-2) (2022-03-10)
64
-
65
-
66
- ### Features
67
-
68
- * **DC-3035:** revert engines ([fbe6c2d](https://github.com/corva-ai/create-corva-app/commit/fbe6c2de87c972bf11a6c53e967f8ed6f93e8aa2))
69
-
70
- ## [0.24.0-1](https://github.com/corva-ai/create-corva-app/compare/v0.23.0-1...v0.24.0-1) (2022-03-08)
71
-
72
-
73
- ### Features
74
-
75
- * **DC-2969:** prompt package version bump on yarn zip ([8d0825f](https://github.com/corva-ai/create-corva-app/commit/8d0825f0fb9362636b4d95d3e79249d2309a0789))
76
- * **DC-3051:** run release command for all app types ([5f7a2d8](https://github.com/corva-ai/create-corva-app/commit/5f7a2d850f29c903cf2c4cb6f83c63192519c192))
77
-
78
- ## [0.24.0-0](https://github.com/corva-ai/create-corva-app/compare/v0.23.0-2...v0.24.0-0) (2022-03-01)
79
-
80
- ## [0.23.0-2](https://github.com/corva-ai/create-corva-app/compare/v0.23.0-1...v0.23.0-2) (2022-02-21)
81
-
82
-
83
- ### Features
84
-
85
- * **DC-3051:** run release command for all app types ([5f7a2d8](https://github.com/corva-ai/create-corva-app/commit/5f7a2d850f29c903cf2c4cb6f83c63192519c192))
86
-
87
- ## [0.23.0-1](https://github.com/corva-ai/create-corva-app/compare/v0.23.0-0...v0.23.0-1) (2022-02-17)
88
-
89
-
90
- ### Features
91
-
92
- * **DC-2291:** add release script to FE dc apps ([fe1bda2](https://github.com/corva-ai/create-corva-app/commit/fe1bda29aa2b68d6912894353d731e73aadeb47b))
93
-
94
- ## [0.23.0-0](https://github.com/corva-ai/create-corva-app/compare/v0.22.0-0...v0.23.0-0) (2022-02-15)
95
-
96
- ## [0.22.0-0](https://github.com/corva-ai/create-corva-app/compare/v0.21.0-2...v0.22.0-0) (2022-02-01)
97
-
98
- ## [0.21.0-2](https://github.com/corva-ai/create-corva-app/compare/v0.21.0-1...v0.21.0-2) (2022-01-25)
99
-
100
-
101
- ### Bug Fixes
102
-
103
- * **dc-2955:** get back -t option ([b6ffc5f](https://github.com/corva-ai/create-corva-app/commit/b6ffc5f38e818d038bf8c7346fa7183a18d97fa6))
104
-
105
- ## [0.21.0-1](https://github.com/corva-ai/create-corva-app/compare/v0.21.0-0...v0.21.0-1) (2022-01-21)
106
-
107
-
108
- ### Bug Fixes
109
-
110
- * pass depth milestone ([abab200](https://github.com/corva-ai/create-corva-app/commit/abab20069f41bda35c2059102f1629a35575042f))
111
-
112
- ## [0.20.0-2](https://github.com/corva-ai/create-corva-app/compare/v0.20.0-1...v0.20.0-2) (2022-01-17)
113
-
114
-
115
- ### Bug Fixes
116
-
117
- * **DC-2798:** add .env file ([42eb6fb](https://github.com/corva-ai/create-corva-app/commit/42eb6fb256c6b5238b449fa0d81bafa930dbbd91))
118
-
119
- ## [0.20.0-1](https://github.com/corva-ai/create-corva-app/compare/v0.20.0-0...v0.20.0-1) (2022-01-05)
120
-
121
-
122
- ### Bug Fixes
123
-
124
- * allow to specify depth_milestone ([833d570](https://github.com/corva-ai/create-corva-app/commit/833d570ef11bc73605524d479db43e293bf2e31f))
125
-
126
- ## [0.20.0-0](https://github.com/corva-ai/create-corva-app/compare/v0.19.0-0...v0.20.0-0) (2022-01-04)
127
-
128
- ## [0.19.0-0](https://github.com/corva-ai/create-corva-app/compare/v0.18.0-1...v0.19.0-0) (2021-12-21)
129
-
130
- ## [0.18.0-1](https://github.com/corva-ai/create-corva-app/compare/v0.18.0-0...v0.18.0-1) (2021-12-20)
131
-
132
-
133
- ### Features
134
-
135
- * **CQA-445:** DC local development test to CI config ([6a63221](https://github.com/corva-ai/create-corva-app/commit/6a6322182d02dbe56f8f50d3e406e04890c4a6fd))
136
-
137
-
138
- ### Bug Fixes
139
-
140
- * **dc-2707:** check file existence before zipping it ([064add5](https://github.com/corva-ai/create-corva-app/commit/064add5b86dfb32073eb9f7b4d16f7d4f71d32c1))
141
-
142
- ## [0.17.0-2](https://github.com/corva-ai/create-corva-app/compare/v0.17.0-0...v0.17.0-2) (2021-12-07)
143
-
144
-
145
- ### Features
146
-
147
- * add scheduler type option ([e2d3d3d](https://github.com/corva-ai/create-corva-app/commit/e2d3d3dcc7154d841b3da342a36a7edfbc8488e4))
148
-
149
-
150
- ### Bug Fixes
151
-
152
- * diff app types, runtimes and templates ([7c52817](https://github.com/corva-ai/create-corva-app/commit/7c528173535b9a915372ec469df8043b3830e387))
153
-
154
- ## [0.17.0-1](https://github.com/corva-ai/create-corva-app/compare/v0.17.0-0...v0.17.0-1) (2021-12-03)
155
-
156
-
157
- ### Features
158
-
159
- * add scheduler type option ([e2d3d3d](https://github.com/corva-ai/create-corva-app/commit/e2d3d3dcc7154d841b3da342a36a7edfbc8488e4))
160
-
161
-
162
- ### Bug Fixes
163
-
164
- * diff app types, runtimes and templates ([7c52817](https://github.com/corva-ai/create-corva-app/commit/7c528173535b9a915372ec469df8043b3830e387))
165
-
166
- ## [0.17.0-0](https://github.com/corva-ai/create-corva-app/compare/v0.16.0-1...v0.17.0-0) (2021-11-23)
167
-
168
- ## [0.16.0-1](https://github.com/corva-ai/create-corva-app/compare/v0.16.0-0...v0.16.0-1) (2021-11-18)
169
-
170
-
171
- ### Bug Fixes
172
-
173
- * add .idea to gitignore ([1d3c8d3](https://github.com/corva-ai/create-corva-app/commit/1d3c8d314ca6ce853e03f475c88c0bab5f0dde76))
174
-
175
- ## [0.16.0-0](https://github.com/corva-ai/create-corva-app/compare/v0.15.0-0...v0.16.0-0) (2021-11-09)
176
-
177
-
178
- ### Features
179
-
180
- * **core:** upgrade template AppSettings.tsx to React.FC approach ([383203c](https://github.com/corva-ai/create-corva-app/commit/383203c5d4323f66218726de16be0a77da108f7e))
181
-
182
-
183
- ### Bug Fixes
184
-
185
- * **templates:** move out React.FC syntax from AppSettings.tsx ([aaec071](https://github.com/corva-ai/create-corva-app/commit/aaec071cf5c546c226ad59133b5d28b29e968f58))
186
-
187
- ## [0.15.0-0](https://github.com/corva-ai/create-corva-app/compare/v0.14.0-0...v0.15.0-0) (2021-10-26)
188
-
189
- ## [0.14.0-0](https://github.com/corva-ai/create-corva-app/compare/v0.13.0-0...v0.14.0-0) (2021-10-12)
190
-
191
- ## [0.12.0-4](https://github.com/corva-ai/create-corva-app/compare/v0.12.0-3...v0.12.0-4) (2021-09-27)
192
-
193
-
194
- ### Features
195
-
196
- * **DC-2203:** add eslint support for TS files ([251d41b](https://github.com/corva-ai/create-corva-app/commit/251d41bd09ae8db7a19475e37f1bc8bd5d43429c))
197
- * **DC-2203:** add ts devDeps to template package.json ([352add5](https://github.com/corva-ai/create-corva-app/commit/352add5f1f399e6bd3c84bee70fdaf9fe936d3fb))
198
- * **DC-2203:** copy js template to ts ([8f1cd55](https://github.com/corva-ai/create-corva-app/commit/8f1cd55758337b6a5966d84c6b91d7eb368d286f))
199
- * **DC-2203:** copy tsconfig.json while zipping ([f3bcec1](https://github.com/corva-ai/create-corva-app/commit/f3bcec1b6aca09d47f07cb2582b5ee23cf4854a2))
200
- * **DC-2203:** extract webpack TS rule ([4e66dc5](https://github.com/corva-ai/create-corva-app/commit/4e66dc51547f438963d36f8a5a69e09543f3ffb3))
201
- * **DC-2203:** fix entry point ([7d5e9b7](https://github.com/corva-ai/create-corva-app/commit/7d5e9b7d0b90ce9aec8747b28770bdf91e59cf87))
202
- * **DC-2203:** fix eslint rule ([f1c50ea](https://github.com/corva-ai/create-corva-app/commit/f1c50ea6fba6394a4aebb713b520f7690e44b815))
203
- * **DC-2203:** move ui template to ui/js dir ([78dec63](https://github.com/corva-ai/create-corva-app/commit/78dec63db3175a452b648e33d5fc81004e697e02))
204
- * **DC-2203:** show TypeScript option for ui apps ([7c8b612](https://github.com/corva-ai/create-corva-app/commit/7c8b612c6081cb2d16e860e4ae77c9a6ed137e8b))
205
- * **DC-2203:** update ui ts template ([ced0092](https://github.com/corva-ai/create-corva-app/commit/ced00928ff274ddda80e5fe6bb55b5fa31cf5adc))
206
- * **DC-2203:** use default create-react-app TS config ([69ced8a](https://github.com/corva-ai/create-corva-app/commit/69ced8a46a542914c930ac7613cf76469d884292))
207
- * **DC-2203:** use regExp instead of string ([ce86a6d](https://github.com/corva-ai/create-corva-app/commit/ce86a6d497c729d4d61aa823f391deec9ea2def4))
208
- * **DC-2203:** use ts template ([7b43431](https://github.com/corva-ai/create-corva-app/commit/7b43431d7f9c1b295cdc44774bd964f9c954e22e))
209
-
210
- ## [0.12.0-3](https://github.com/corva-ai/create-corva-app/compare/v0.12.0-2...v0.12.0-3) (2021-09-21)
211
-
212
- ## [0.12.0-2](https://github.com/corva-ai/create-corva-app/compare/v0.12.0-1...v0.12.0-2) (2021-09-21)
213
-
214
-
215
- ### Features
216
-
217
- * add typescript app templates ([f256b39](https://github.com/corva-ai/create-corva-app/commit/f256b3970b4a2f426c6f87ddd10fe5c957757658))
218
- * **DC-2167:** updated node templates to use latest sdk ([#118](https://corvaqa.atlassian.net/browse/118)) ([c9dc93a](https://github.com/corva-ai/create-corva-app/commit/c9dc93a07a48b06f4c0831bcd95aca4fd5b5504c))
219
-
220
- ## [0.12.0-1](https://github.com/corva-ai/create-corva-app/compare/v0.12.0-0...v0.12.0-1) (2021-09-20)
221
-
222
-
223
- ### Features
224
-
225
- * **DC-2204:** Add .env file to gitignore ([cb598d6](https://github.com/corva-ai/create-corva-app/commit/cb598d654dcd78f20ce93c6dcf7bf4282cad47c9))
226
-
227
- ## [0.12.0-0](https://github.com/corva-ai/create-corva-app/compare/v0.11.0-0...v0.12.0-0) (2021-09-14)
228
-
229
-
230
- ### Features
231
-
232
- * **DC-2132:** add scheduler type to manifest template ([#112](https://corvaqa.atlassian.net/browse/112)) ([4955186](https://github.com/corva-ai/create-corva-app/commit/4955186a4d2e5ee8c0d5a3e44ecd54752d561de3))
233
-
234
- ## [0.11.0-0](https://github.com/corva-ai/create-corva-app/compare/v0.10.0-0...v0.11.0-0) (2021-08-31)
235
-
236
- ## [0.10.0-0](https://github.com/corva-ai/create-corva-app/compare/v0.9.0-0...v0.10.0-0) (2021-08-18)
237
-
238
- ## [0.9.0-0](https://github.com/corva-ai/create-corva-app/compare/v0.8.0-0...v0.9.0-0) (2021-08-04)
239
-
240
-
241
- ### Bug Fixes
242
-
243
- * **DC-1945:** Fix missing .gitignore problem ([d3e02b3](https://github.com/corva-ai/create-corva-app/commit/d3e02b369ea176419fb8b025293d30cc9d9e084a))
244
- * **Redundant github actions:** Removed config ([e0653eb](https://github.com/corva-ai/create-corva-app/commit/e0653ebe25d7998e14b339df9c4a8e5c8ac68829))
245
-
246
- ## [0.8.0-2](https://github.com/corva-ai/create-corva-app/compare/v0.8.0-0...v0.8.0-2) (2021-08-03)
247
-
248
-
249
- ### Bug Fixes
250
-
251
- * **DC-1945:** Fix missing .gitignore problem ([c9170aa](https://github.com/corva-ai/create-corva-app/commit/c9170aab82c2add8eaff8ee05359b10403712f45))
252
- * **Redundant github actions:** Removed config ([e0653eb](https://github.com/corva-ai/create-corva-app/commit/e0653ebe25d7998e14b339df9c4a8e5c8ac68829))
253
-
254
- ## [0.8.0-1](https://github.com/corva-ai/create-corva-app/compare/v0.8.0-0...v0.8.0-1) (2021-07-31)
255
-
256
-
257
- ### Bug Fixes
258
-
259
- * **Redundant github actions:** Removed config ([e0653eb](https://github.com/corva-ai/create-corva-app/commit/e0653ebe25d7998e14b339df9c4a8e5c8ac68829))
260
-
261
- ## [0.8.0-0](https://github.com/corva-ai/create-corva-app/compare/v0.7.0-4...v0.8.0-0) (2021-07-21)
262
-
263
- ## [0.7.0-4](https://github.com/corva-ai/create-corva-app/compare/v0.7.0-3...v0.7.0-4) (2021-07-19)
264
-
265
-
266
- ### Features
267
-
268
- * **DC-1761:** Add doc links to UI readme. ([41b7d4b](https://github.com/corva-ai/create-corva-app/commit/41b7d4b437c976f64f70fa697c3f3af4eac38c59))
269
-
270
- ## [0.7.0-3](https://github.com/corva-ai/create-corva-app/compare/v0.7.0-2...v0.7.0-3) (2021-07-19)
271
-
272
-
273
- ### Bug Fixes
274
-
275
- * **DC-1735:** Ensure latest version is used when creating app from CLI ([06d86fa](https://github.com/corva-ai/create-corva-app/commit/06d86faabeabc85eb5f2874c3b07d2334dc46ff2))
276
-
277
- ## [0.7.0-2](https://github.com/corva-ai/create-corva-app/compare/v0.7.0-0...v0.7.0-2) (2021-07-16)
278
-
279
-
280
- ### Features
281
-
282
- * **DC-1735:** Ensure that latest create-corva-app is used when creating new UI app ([1b937e7](https://github.com/corva-ai/create-corva-app/commit/1b937e75379beb6357a3dd721cf18ee3f74a459d))
283
-
284
- ## [0.7.0-1](https://github.com/facebook/create-react-app/compare/v0.7.0-0...v0.7.0-1) (2021-07-09)
285
-
286
- ## [0.7.0-0](https://github.com/facebook/create-react-app/compare/v0.6.0-2...v0.7.0-0) (2021-07-08)
287
-
288
-
289
- ### Bug Fixes
290
-
291
- * delete unsolicited export ([2c938ac](https://github.com/facebook/create-react-app/commit/2c938acf068d63166af0b33c9973fd3b8218b214))
292
-
293
- ## [0.6.0-2](https://github.com/facebook/create-react-app/compare/v0.6.0-1...v0.6.0-2) (2021-06-16)
294
-
295
-
296
- ### Features
297
-
298
- * **CINF-297:** Version alignment ([dad4718](https://github.com/facebook/create-react-app/commit/dad4718d510d9fa54d7251182ea6602e37ad42ec))
299
-
300
- ## [0.6.0-1](https://github.com/facebook/create-react-app/compare/v0.6.0-0...v0.6.0-1) (2021-06-16)
301
-
302
-
303
- ### Features
304
-
305
- * **CINF-297:** CI/CD ([9bb4ba1](https://github.com/facebook/create-react-app/commit/9bb4ba1fce8f1f2c1f21e6930bb4f27a4771836f))
306
- * **CINF-297:** CI/CD ([7b2adb1](https://github.com/facebook/create-react-app/commit/7b2adb19b4681fa4505e2d70ad4d8041a4733878))
307
- * **CINF-297:** CI/CD test ([5bb6071](https://github.com/facebook/create-react-app/commit/5bb607105fec2973ccb045d84c010d4f3112099f))
308
- * **CINF-297:** CI/CD workflow ([c4248f6](https://github.com/facebook/create-react-app/commit/c4248f6c427a3a1a04a8d2807f5125c5e4c186d6))
309
- * **CINF-297:** CI/CD workflow ([7be17ce](https://github.com/facebook/create-react-app/commit/7be17ce30a555d87e736cbf99b3dcdbc90fb548a))
310
- * **CINF-297:** CI/CD workflow ([6779c9d](https://github.com/facebook/create-react-app/commit/6779c9df1ce94a41655f03055d9e847a56e894c3))
311
- * **CINF-297:** CI/CD workflow ([08b4e49](https://github.com/facebook/create-react-app/commit/08b4e49850b73fbb2345140fd71ada2cbf736fed))
312
- * **CINF-297:** CI/CD workflow ([98ebf01](https://github.com/facebook/create-react-app/commit/98ebf01ea17a84ca53ded759a08a4fae4da570fe))
313
- * **CINF-297:** CI/CD workflow ([efdfe9c](https://github.com/facebook/create-react-app/commit/efdfe9cc57ab1496103ae850eacf1193c9b74e8b))
314
- * **CINF-297:** CI/CD workflow ([af549a9](https://github.com/facebook/create-react-app/commit/af549a9af169f2d6155bb38cc0e1f7c852d59d5f))
315
- * **CINF-297:** CI/CD workflow ([5a5909b](https://github.com/facebook/create-react-app/commit/5a5909bcf30f6da49225940eced754a2402fe611))
316
- * **CINF-297:** CI/CD workflow ([dee28f1](https://github.com/facebook/create-react-app/commit/dee28f117743fa9b7ec6e7385cddc19681744259))
317
- * **CINF-297:** CI/CD workflow ([c3603ab](https://github.com/facebook/create-react-app/commit/c3603ab5329d87085305c0b201e7fe53ecc9a037))
318
- * **CINF-297:** CI/CD workflow ([9cd6ba3](https://github.com/facebook/create-react-app/commit/9cd6ba31947e7e1247b678975ab6d4af14299297))
319
-
320
- ## [0.6.0-0](https://github.com/facebook/create-react-app/compare/v0.5.0-0...v0.6.0-0) (2021-06-16)
321
-
322
- ## [0.5.0-0](https://github.com/facebook/create-react-app/compare/v0.2.29...v0.5.0-0) (2021-06-02)
323
-
324
- ### [0.4.3](https://github.com/facebook/create-react-app/compare/v0.4.0...v0.4.3) (2021-05-26)
325
-
326
- ## [0.4.0](https://github.com/facebook/create-react-app/compare/v0.3.7...v0.4.0) (2021-05-26)
327
-
328
- ### [0.3.7](https://github.com/facebook/create-react-app/compare/v0.3.0...v0.3.7) (2021-05-26)
329
-
330
- ## [0.3.0](https://github.com/facebook/create-react-app/compare/v0.2.29...v0.3.0) (2021-05-26)
331
-
332
- ### [0.2.29](https://github.com/facebook/create-react-app/compare/v0.2.28...v0.2.29) (2021-05-26)
333
-
334
- ### [0.2.28](https://github.com/facebook/create-react-app/compare/v0.2.27...v0.2.28) (2021-05-18)
335
-
336
- ### [0.2.27](https://github.com/facebook/create-react-app/compare/v0.2.25...v0.2.27) (2021-05-18)
337
-
338
- ### [0.2.26](https://github.com/facebook/create-react-app/compare/v0.2.25...v0.2.26) (2021-05-18)
339
-
340
- ### [0.2.25](https://github.com/facebook/create-react-app/compare/v0.2.23-rc.0...v0.2.25) (2021-05-14)
341
-
342
-
343
- ### Features
344
-
345
- * **dc-1395:** update backend node app templates ([abc28be](https://github.com/facebook/create-react-app/commit/abc28be3a671893792be4c5752364120847e0ab7))
346
-
347
- ### [0.2.24](https://github.com/facebook/create-react-app/compare/v0.2.23-rc.0...v0.2.23) (2021-04-29)
348
-
349
-
350
- ### Features
351
-
352
- * **dc-1395:** update backend node app templates ([abc28be](https://github.com/facebook/create-react-app/commit/abc28be3a671893792be4c5752364120847e0ab7))
353
-
354
- ### [0.2.23-rc.0](https://github.com/facebook/create-react-app/compare/v0.2.22-rc.2...v0.2.23-rc.0) (2021-04-07)
355
-
356
-
357
- ### Features
358
-
359
- * **DC-1147:** Fixes template according to changes in App Header component ([04b9a1d](https://github.com/facebook/create-react-app/commit/04b9a1df5cbd90bfcfd85ca2702d9416942c9624))
360
-
361
- ### [0.2.22-rc.2](https://github.com/facebook/create-react-app/compare/v0.2.22-rc.1...v0.2.22-rc.2) (2021-03-17)
362
-
363
- ### [0.2.22-rc.1](https://github.com/facebook/create-react-app/compare/v0.2.22-rc.0...v0.2.22-rc.1) (2021-03-16)
364
-
365
- ### [0.2.22-rc.0](https://github.com/facebook/create-react-app/compare/v0.2.20...v0.2.22-rc.0) (2021-03-16)
366
-
367
-
368
- ### Bug Fixes
369
-
370
- * **DC-1068:** Fixes zipAppSource script ([9f6cb03](https://github.com/facebook/create-react-app/commit/9f6cb03558129185530ffa7543d9e54fad0fd999))
371
-
372
- ### [0.2.21](https://github.com/facebook/create-react-app/compare/v0.2.18...v0.2.21) (2021-03-10)
373
-
374
-
375
- ### Bug Fixes
376
-
377
- * **DC-1068:** Fix app template according to new devserver build approach ([24496b0](https://github.com/facebook/create-react-app/commit/24496b00ded323d570b149fef8dbefc7d343d086))
378
- * **DC-1068:** Fixes zipAppSource script ([9f6cb03](https://github.com/facebook/create-react-app/commit/9f6cb03558129185530ffa7543d9e54fad0fd999))
379
-
380
- ### [0.2.20](https://github.com/facebook/create-react-app/compare/v0.2.19...v0.2.20) (2021-03-09)
381
-
382
-
383
- ### Bug Fixes
384
-
385
- * **DC-1068:** Fix app template according to new devserver build approach ([24496b0](https://github.com/facebook/create-react-app/commit/24496b00ded323d570b149fef8dbefc7d343d086))
386
-
387
- ### [0.2.19](https://github.com/facebook/create-react-app/compare/v0.2.18...v0.2.19) (2021-03-04)
388
-
389
- ### [0.2.18](https://github.com/facebook/create-react-app/compare/v0.2.16...v0.2.18) (2021-02-19)
390
-
391
- ### [0.2.17](https://github.com/facebook/create-react-app/compare/v0.2.16...v0.2.17) (2021-02-18)
392
-
393
- ### [0.2.16](https://github.com/facebook/create-react-app/compare/v0.2.15...v0.2.16) (2021-02-16)
394
-
395
- ### [0.2.15](https://github.com/facebook/create-react-app/compare/v0.2.13...v0.2.15) (2021-02-11)
396
-
397
- ### [0.2.14](https://github.com/facebook/create-react-app/compare/v0.2.13...v0.2.14) (2021-02-08)
398
-
399
- ### [0.2.13](https://github.com/facebook/create-react-app/compare/v0.2.11...v0.2.13) (2021-02-07)
400
-
401
-
402
- ### Bug Fixes
403
-
404
- * **DC-879:** adds cwd to git commit command ([cde7a1a](https://github.com/facebook/create-react-app/commit/cde7a1a94889d274dfad2793b699c3df804364a3))
405
-
406
- ### [0.2.12](https://github.com/facebook/create-react-app/compare/v0.2.11...v0.2.12) (2021-02-05)
407
-
408
- ### [0.2.11](https://github.com/facebook/create-react-app/compare/v0.2.9...v0.2.11) (2021-02-04)
409
-
410
-
411
- ### Bug Fixes
412
-
413
- * **DC-879:** adding appPath ([5ea00d8](https://github.com/facebook/create-react-app/commit/5ea00d8eae15867fe6b5dbb164db15da048a7b1a))
414
- * **DC-879:** moving isInGitRepository to the beginning of tryGitInit function ([f8847a5](https://github.com/facebook/create-react-app/commit/f8847a54d0b7cadf29f044c9c1759026004dc074))
415
-
416
- ### [0.2.10](https://github.com/facebook/create-react-app/compare/v0.2.9...v0.2.10) (2021-02-04)
417
-
418
- ### [0.2.9](https://github.com/facebook/create-react-app/compare/v0.2.8...v0.2.9) (2021-01-26)
419
-
420
- ### [0.2.8](https://github.com/facebook/create-react-app/compare/v0.2.7...v0.2.8) (2021-01-14)
421
-
422
-
423
- ### Features
424
-
425
- * **DC-534:** Add asset selector to App create CLI ([c59e0a7](https://github.com/facebook/create-react-app/commit/c59e0a7199f562f327209532da5734e02b268e5c))
426
-
427
- ### [0.2.7](https://github.com/facebook/create-react-app/compare/v0.2.6...v0.2.7) (2020-12-31)
428
-
429
- ### [0.2.6](https://github.com/facebook/create-react-app/compare/v0.2.5...v0.2.6) (2020-12-31)
430
-
431
- ### [0.2.5](https://github.com/facebook/create-react-app/compare/v0.2.4...v0.2.5) (2020-12-31)
432
-
433
- ### [0.2.4](https://github.com/facebook/create-react-app/compare/v0.2.3...v0.2.4) (2020-12-29)
434
-
435
-
436
- ### Bug Fixes
437
-
438
- * Delete copying manifest.json ([18afde2](https://github.com/facebook/create-react-app/commit/18afde28c4430f43bae47e0968505608d97860e8))
439
-
440
- ### [0.2.3](https://github.com/facebook/create-react-app/compare/v0.2.2...v0.2.3) (2020-12-28)
441
-
442
- ### [0.2.2](https://github.com/facebook/create-react-app/compare/v0.2.1...v0.2.2) (2020-12-22)
443
-
444
-
445
- ### Features
446
-
447
- * **DC-506:** Adds props for App Header to support Last Annotation ([44efee8](https://github.com/facebook/create-react-app/commit/44efee8c84e7bd600ea86fb52906e7c528936da4))
448
- * **DC-506:** Fixes props for the AppHeader ([b851c36](https://github.com/facebook/create-react-app/commit/b851c3629b59b47fb718d527b2aed99fba8479fd))
449
-
450
-
451
- ### Bug Fixes
452
-
453
- * update command typo ([efe3c9a](https://github.com/facebook/create-react-app/commit/efe3c9ae652eb0e6a49779daeb10ba36d7bd69ba))
454
- * update dependencies ([1619118](https://github.com/facebook/create-react-app/commit/161911837fcbb137cccbb08a243f58cf7f6ec2b6))
455
-
456
- ### [0.2.1](https://github.com/facebook/create-react-app/compare/v0.1.7...v0.2.1) (2020-10-27)
457
-
458
- ### [0.1.7](https://github.com/facebook/create-react-app/compare/v0.1.6...v0.1.7) (2020-10-22)
459
-
460
- ### [0.1.6](https://github.com/facebook/create-react-app/compare/v0.1.5...v0.1.6) (2020-10-21)
461
-
462
- ### [0.1.5](https://github.com/facebook/create-react-app/compare/v0.1.4...v0.1.5) (2020-10-21)
463
-
464
- ### [0.1.4](https://github.com/facebook/create-react-app/compare/v0.1.3...v0.1.4) (2020-10-19)
465
-
466
- ### [0.1.3](https://github.com/facebook/create-react-app/compare/v0.1.1...v0.1.3) (2020-10-15)
467
-
468
- ### [0.1.2](https://github.com/facebook/create-react-app/compare/v0.1.1...v0.1.2) (2020-10-15)
469
-
470
- ### [0.1.1](https://github.com/facebook/create-react-app/compare/v0.1.0...v0.1.1) (2020-10-13)
471
-
472
- ## [0.1.0](https://github.com/facebook/create-react-app/compare/v0.0.12...v0.1.0) (2020-10-13)
473
-
474
- ### [0.0.12](https://github.com/facebook/create-react-app/compare/v0.0.10...v0.0.12) (2020-10-13)
475
-
476
- ### [0.0.11](https://github.com/facebook/create-react-app/compare/v0.0.10...v0.0.11) (2020-10-13)
477
-
478
- ### 0.0.10 (2020-10-13)
479
-
480
-
481
- ### Features
482
-
483
- * use app key as app component identificator ([a74cbce](https://github.com/facebook/create-react-app/commit/a74cbce1b4d5d3f24e4f4ac22a3c8533b98f1171))
484
- * **dc-287:** Remove duplicated dependencies ([bf0ceb0](https://github.com/facebook/create-react-app/commit/bf0ceb0a09d24d1d7426b0ec8168f36467703563))
485
-
486
-
487
- ### Bug Fixes
488
-
489
- * Fix app name for UI apps ([bb09287](https://github.com/facebook/create-react-app/commit/bb09287c75f29a82453858a772d8de54773ce22e))
@@ -1,7 +0,0 @@
1
- const zipAppSource = require('./zipAppSource');
2
- const releaseAppZip = require('./releaseAppZip');
3
-
4
- module.exports = {
5
- zipAppSource,
6
- releaseAppZip,
7
- };
@@ -1,91 +0,0 @@
1
- const fs = require('fs');
2
- const path = require('path');
3
- const axios = require('axios');
4
- const FormData = require('form-data');
5
- const chalk = require('chalk');
6
- const dotenv = require('dotenv');
7
- const get = require('lodash').get;
8
- const zipAppSource = require('./zipAppSource');
9
-
10
- const SUCCESS_ICON = ' ✅ \n';
11
- const ERROR_ICON = ' ❌ \n';
12
-
13
- const CONSOLE_MESSAGES = {
14
- createZip: 'Creating zip archive...\n',
15
- createZipError: 'Could not create zip archive.',
16
- createZipSuccess: `Zip archive has been created ${SUCCESS_ICON}`,
17
- getAuthToken: 'Reading auth token...',
18
- getAuthTokenError: `Could not find auth token. Please run ${chalk.cyan(
19
- 'yarn start'
20
- )} and login to Corva`,
21
- getAppKey: 'Reading app key...',
22
- getAppKeyError: "Could not find app key. Please make sure it's defined in manifest.json",
23
- uploadApp: 'Uploading app...',
24
- };
25
-
26
- function handleError(e, message) {
27
- process.stdout.write(ERROR_ICON);
28
- message && console.log(chalk.red(message));
29
- console.error(chalk.red(e));
30
- process.exit(1);
31
- }
32
-
33
- async function releaseAppZip({ bumpVersion }) {
34
- const dirname = process.cwd();
35
-
36
- // Read auth token
37
- let authToken;
38
- let corvaAPIEnv = 'production';
39
- try {
40
- process.stdout.write(CONSOLE_MESSAGES.getAuthToken);
41
- const env = await fs.promises.readFile(path.resolve(dirname, './.env'));
42
- const config = dotenv.parse(env);
43
- authToken = config.AUTH_TOKEN;
44
- if (!authToken) throw new Error('No auth token.');
45
- if (config.CORVA_API_ENV) corvaAPIEnv = config.CORVA_API_ENV;
46
- process.stdout.write(SUCCESS_ICON);
47
- } catch (e) {
48
- handleError(e, CONSOLE_MESSAGES.getAuthTokenError);
49
- }
50
-
51
- // Read app key
52
- let appKey;
53
- try {
54
- process.stdout.write(CONSOLE_MESSAGES.getAppKey);
55
- const manifest = JSON.parse(
56
- await fs.promises.readFile(path.resolve(dirname, './manifest.json'))
57
- );
58
- appKey = manifest.application.key;
59
- if (!appKey) throw new Error('No app key.');
60
- process.stdout.write(SUCCESS_ICON);
61
- } catch (e) {
62
- handleError(e, CONSOLE_MESSAGES.getAppKeyError);
63
- }
64
-
65
- // Zip archive
66
- let zipPath;
67
- try {
68
- process.stdout.write(CONSOLE_MESSAGES.createZip);
69
- zipPath = await zipAppSource({ silent: true, bumpVersion });
70
- process.stdout.write(CONSOLE_MESSAGES.createZipSuccess);
71
- } catch (e) {
72
- handleError(e, CONSOLE_MESSAGES.createZipError);
73
- }
74
-
75
- let uploadURL;
76
- try {
77
- process.stdout.write(CONSOLE_MESSAGES.uploadApp);
78
- const form = new FormData();
79
- form.append('package', fs.createReadStream(zipPath), 'archive.zip');
80
- const baseURL = `https://api${corvaAPIEnv === 'production' ? '' : `.${corvaAPIEnv}`}.corva.ai`;
81
- uploadURL = `${baseURL}/v2/apps/${appKey}/packages/upload`;
82
- await axios.post(uploadURL, form, {
83
- headers: { ...form.getHeaders(), Authorization: `Bearer ${authToken}` },
84
- });
85
- process.stdout.write(SUCCESS_ICON);
86
- } catch (e) {
87
- handleError(e, `${get(e, 'response.data.message', '')} \nPOST: ${uploadURL} failed.`);
88
- }
89
- }
90
-
91
- module.exports = releaseAppZip;