@goodgamestudios/cxf-plugins 0.105.6 → 0.105.8

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 CHANGED
@@ -1,3 +1,14 @@
1
+
2
+ ## IMPORTANT UPDATE
3
+ CI/CD flow is broken due to tokens policy changes from npmjs.com
4
+ It needs to make build and deploy manually.
5
+
6
+ ```bash
7
+ # deploy production version
8
+ npm run deploy:live
9
+ ```
10
+
11
+
1
12
  ## CI/CD
2
13
  - `develop` branch publishes with `@qa` tag and appends a pre-release postfix. Example: `1.4.1-qa.1`
3
14
  - `master` branch publishes with `@production` tag. Example: `1.4.1`
@@ -4,6 +4,6 @@
4
4
  "<script src='https://cdn.jsdelivr.net/npm/@goodgamestudios/cxf-announcements@0.19.8/dist/announcements.js'></script>",
5
5
  "<script src='https://cdn.jsdelivr.net/npm/@goodgamestudios/cxf-tracking@1.2.0/dist/index.js'></script>",
6
6
  "<script src='https://cdn.jsdelivr.net/npm/@goodgamestudios/cxf-dialog@1.6.1/dist/cxfDialog.js'></script>",
7
- "<script src='https://cdn.jsdelivr.net/npm/@goodgamestudios/cxf-webshop@7.1.2/dist/webshop-cxf.js'></script>",
7
+ "<script src='https://cdn.jsdelivr.net/npm/@goodgamestudios/cxf-webshop@7.1.4/dist/webshop-cxf.js'></script>",
8
8
  "<script src='https://cdn.jsdelivr.net/npm/@goodgamestudios/cxf-shop-zipcodes@1.0.2/dist/index.js'></script>"
9
- ]
9
+ ]
package/dist/bigfarm.json CHANGED
@@ -7,6 +7,6 @@
7
7
  "<script src='https://cdn.jsdelivr.net/npm/@goodgamestudios/cxf-dialog@1.6.1/dist/cxfDialog.js'></script>",
8
8
  "<script src='https://cdn.jsdelivr.net/npm/@goodgamestudios/cxf-fullscreen@0.0.7/dist/index.js'></script>",
9
9
  "<script src='https://cdn.jsdelivr.net/npm/@goodgamestudios/cxf-ia@0.21.1/dist/bigfarm.js'></script>",
10
- "<script src='https://cdn.jsdelivr.net/npm/@goodgamestudios/cxf-webshop@7.1.2/dist/webshop-cxf.js'></script>",
10
+ "<script src='https://cdn.jsdelivr.net/npm/@goodgamestudios/cxf-webshop@7.1.4/dist/webshop-cxf.js'></script>",
11
11
  "<script src='https://cdn.jsdelivr.net/npm/@goodgamestudios/cxf-shop-zipcodes@1.0.2/dist/index.js'></script>"
12
- ]
12
+ ]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@goodgamestudios/cxf-plugins",
3
- "version": "0.105.6",
3
+ "version": "0.105.8",
4
4
  "description": "List of plugins that will be installed by CXF",
5
5
  "author": "Davide de Paolis ddepaolis@goodgamestudios.com",
6
6
  "license": "UNLICENSED",
@@ -18,6 +18,7 @@
18
18
  "build:dev": "rimraf dist && copyfiles -f dev/*.json dist",
19
19
  "build:qa": "rimraf dist && copyfiles -f qa/*.json dist",
20
20
  "build:live": "rimraf dist && copyfiles -f prod/*.json dist",
21
+ "deploy:live": "npm run build:live && npm publish --tag production --access public",
21
22
  "config:validate": "node ./src/index.js"
22
23
  },
23
24
  "dependencies": {
package/.gitlab-ci.yml DELETED
@@ -1,55 +0,0 @@
1
- image: node:16
2
-
3
- variables:
4
- GIT_STRATEGY: clone
5
- GIT_AUTHOR_NAME: Skunk Bot
6
- GIT_AUTHOR_EMAIL: skunkbot@goodgamestudios.com
7
- GIT_COMMITTER_NAME: Skunk Bot
8
- GIT_COMMITTER_EMAIL: skunkbot@goodgamestudios.com
9
-
10
- stages:
11
- - staging
12
- - production
13
- - synchronize
14
-
15
- cache:
16
- key:
17
- files:
18
- - package-lock.json
19
- paths:
20
- - node_modules/
21
-
22
- before_script:
23
- - npm ci --cache node_modules --prefer-offline
24
-
25
- publish-to-qa:
26
- stage: staging
27
- tags:
28
- - cxf
29
- script:
30
- - npm run build:qa
31
- - npm run release
32
- only:
33
- - develop
34
-
35
- publish-to-production:
36
- stage: production
37
- tags:
38
- - cxf
39
- script:
40
- - npm run build:live
41
- - npm run release
42
- only:
43
- - master
44
-
45
- merge-master-to-develop:
46
- stage: synchronize
47
- tags:
48
- - cxf
49
- script:
50
- - git fetch
51
- - git checkout -b develop --track origin/develop
52
- - git merge origin/master
53
- - git push https://gitlab-ci-token:${GITLAB_TOKEN}@${CI_SERVER_HOST}/${CI_PROJECT_PATH}.git HEAD:develop
54
- only:
55
- - master
package/.idea/aws.xml DELETED
@@ -1,17 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project version="4">
3
- <component name="accountSettings">
4
- <option name="activeProfile" value="profile:default" />
5
- <option name="activeRegion" value="eu-west-1" />
6
- <option name="recentlyUsedProfiles">
7
- <list>
8
- <option value="profile:default" />
9
- </list>
10
- </option>
11
- <option name="recentlyUsedRegions">
12
- <list>
13
- <option value="eu-west-1" />
14
- </list>
15
- </option>
16
- </component>
17
- </project>
@@ -1,12 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <module type="WEB_MODULE" version="4">
3
- <component name="NewModuleRootManager">
4
- <content url="file://$MODULE_DIR$">
5
- <excludeFolder url="file://$MODULE_DIR$/temp" />
6
- <excludeFolder url="file://$MODULE_DIR$/.tmp" />
7
- <excludeFolder url="file://$MODULE_DIR$/tmp" />
8
- </content>
9
- <orderEntry type="inheritedJdk" />
10
- <orderEntry type="sourceFolder" forTests="false" />
11
- </component>
12
- </module>
@@ -1,6 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project version="4">
3
- <component name="GitToolBoxBlameSettings">
4
- <option name="version" value="2" />
5
- </component>
6
- </project>
@@ -1,15 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project version="4">
3
- <component name="GitToolBoxProjectSettings">
4
- <option name="commitMessageIssueKeyValidationOverride">
5
- <BoolValueOverride>
6
- <option name="enabled" value="true" />
7
- </BoolValueOverride>
8
- </option>
9
- <option name="commitMessageValidationEnabledOverride">
10
- <BoolValueOverride>
11
- <option name="enabled" value="true" />
12
- </BoolValueOverride>
13
- </option>
14
- </component>
15
- </project>
@@ -1,3 +0,0 @@
1
- {
2
- "notifCount": 0
3
- }
@@ -1 +0,0 @@
1
- # domain path name value date
@@ -1,18 +0,0 @@
1
- GET https://lemonstand-cashoffers-production.public.ggs-ep.com/catalog?locale=ru&sid=_&zoneId=121&category=cashoffers&criteria={"legendLevel":0,"level":30}&notifCountOnly=1
2
- User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:98.0) Gecko/20100101 Firefox/98.0
3
- Accept: */*
4
- Accept-Language: en-US,en;q=0.7,ru;q=0.3
5
- Accept-Encoding: gzip, deflate, br
6
- Referer: https://empire.goodgamestudios.com/
7
- Authorization: Bearer eyJraWQiOiI5YmJhYjIxZi02NmQxLTRkMzUtYTI2Ni01MzI1ZGVmZWRhY2IiLCJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJnYW1lSWQiOjEyLCJzdWIiOiIxMi0xLTEtNTU1NTEyMyIsImluc3RhbmNlSWQiOjEsImlzcyI6IkVtcGlyZSIsIm5ldHdvcmtJZCI6MSwiZXhwIjoxNjQ4NzMyNDU5LCJpYXQiOjE2NDg2NDYwNTksImp0aSI6IklJbVVnZ0hhcVFINmY1djBQelh6NUNaV3ZpQ3lkYlB4RWk3amVrc2ZkZWsiLCJyZW1vdGVBZGRyZXNzIjoiMTg1LjIxNS41NC4xNzEiLCJwbGF5ZXJJZCI6NTU1NTEyM30.L5-L8nyDFG9zZiE8oe8kI8OD5CF4nkwfq_X3-p_LINs0W-5dX7SDahI66lM7ldZ1T3FSZnlYmWqkxwG4_eIyP6zXYPjga0hY3O6-fpEe22yVdJAfKXxUvU1LfrFpJM_BxDNXm71tpxCFlOKysZTQftHdvXipHYBGnLmGxGtAPlQCyGnXlOKhRl0F9BKUEmUVH1rHgeSyzCg76wA1Vt84ZTUPMmre8dr-gC-ktl7Ys_vjuLYrgyiDd0foXFN4j7cHjtHUEtWzaL_ca1U2w4aUmKv_Y74nHiECiuJVUdZbJoO1l3Q14gLp4axDqOIHpSOVx70-n8B1zENU9HaTDpS3Qg
8
- Origin: https://empire.goodgamestudios.com
9
- Connection: keep-alive
10
- Sec-Fetch-Dest: empty
11
- Sec-Fetch-Mode: cors
12
- Sec-Fetch-Site: cross-site
13
- TE: trailers
14
-
15
- <> 2022-03-30T171737.200.json
16
-
17
- ###
18
-
package/.idea/modules.xml DELETED
@@ -1,8 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project version="4">
3
- <component name="ProjectModuleManager">
4
- <modules>
5
- <module fileurl="file://$PROJECT_DIR$/.idea/cxf-plugins.iml" filepath="$PROJECT_DIR$/.idea/cxf-plugins.iml" />
6
- </modules>
7
- </component>
8
- </project>
package/.idea/vcs.xml DELETED
@@ -1,12 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project version="4">
3
- <component name="CommitMessageInspectionProfile">
4
- <profile version="1.0">
5
- <inspection_tool class="CommitFormat" enabled="true" level="WARNING" enabled_by_default="true" />
6
- <inspection_tool class="CommitNamingConvention" enabled="true" level="WARNING" enabled_by_default="true" />
7
- </profile>
8
- </component>
9
- <component name="VcsDirectoryMappings">
10
- <mapping directory="$PROJECT_DIR$" vcs="Git" />
11
- </component>
12
- </project>
@@ -1,361 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project version="4">
3
- <component name="AutoImportSettings">
4
- <option name="autoReloadType" value="SELECTIVE" />
5
- </component>
6
- <component name="ChangeListManager">
7
- <list default="true" id="8a643d80-9fae-495e-993b-06419d273af9" name="Changes" comment="fix: change version of plugins for BF">
8
- <change beforePath="$PROJECT_DIR$/package.json" beforeDir="false" afterPath="$PROJECT_DIR$/package.json" afterDir="false" />
9
- <change beforePath="$PROJECT_DIR$/prod/bigfarm.json" beforeDir="false" afterPath="$PROJECT_DIR$/prod/bigfarm.json" afterDir="false" />
10
- </list>
11
- <option name="SHOW_DIALOG" value="false" />
12
- <option name="HIGHLIGHT_CONFLICTS" value="true" />
13
- <option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
14
- <option name="LAST_RESOLUTION" value="IGNORE" />
15
- </component>
16
- <component name="Git.Settings">
17
- <option name="RECENT_BRANCH_BY_REPOSITORY">
18
- <map>
19
- <entry key="$PROJECT_DIR$" value="disable_cxf-canvas" />
20
- </map>
21
- </option>
22
- <option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
23
- <option name="RESET_MODE" value="HARD" />
24
- </component>
25
- <component name="GitToolBoxStore">
26
- <option name="projectConfigVersion" value="5" />
27
- <option name="recentBranches">
28
- <RecentBranches>
29
- <option name="branchesForRepo">
30
- <list>
31
- <RecentBranchesForRepo>
32
- <option name="branches">
33
- <list>
34
- <RecentBranch>
35
- <option name="branchName" value="master" />
36
- <option name="lastUsedInstant" value="1764076843" />
37
- </RecentBranch>
38
- <RecentBranch>
39
- <option name="branchName" value="disable_cxf-canvas" />
40
- <option name="lastUsedInstant" value="1763571878" />
41
- </RecentBranch>
42
- <RecentBranch>
43
- <option name="branchName" value="add-cxf-canvas" />
44
- <option name="lastUsedInstant" value="1744817116" />
45
- </RecentBranch>
46
- <RecentBranch>
47
- <option name="branchName" value="develop" />
48
- <option name="lastUsedInstant" value="1744816540" />
49
- </RecentBranch>
50
- <RecentBranch>
51
- <option name="branchName" value="qa" />
52
- <option name="lastUsedInstant" value="1651049593" />
53
- </RecentBranch>
54
- </list>
55
- </option>
56
- <option name="repositoryRootUrl" value="file://$PROJECT_DIR$" />
57
- </RecentBranchesForRepo>
58
- </list>
59
- </option>
60
- </RecentBranches>
61
- </option>
62
- </component>
63
- <component name="MarkdownSettingsMigration">
64
- <option name="stateVersion" value="1" />
65
- </component>
66
- <component name="ProjectId" id="26C8auLu5zTRhYIFz1lIP9EfVhB" />
67
- <component name="ProjectViewState">
68
- <option name="hideEmptyMiddlePackages" value="true" />
69
- <option name="showLibraryContents" value="true" />
70
- </component>
71
- <component name="PropertiesComponent">{
72
- &quot;keyToString&quot;: {
73
- &quot;RunOnceActivity.OpenProjectViewOnStart&quot;: &quot;true&quot;,
74
- &quot;RunOnceActivity.ShowReadmeOnStart&quot;: &quot;true&quot;,
75
- &quot;WebServerToolWindowFactoryState&quot;: &quot;false&quot;,
76
- &quot;last_opened_file_path&quot;: &quot;/Users/roman/work/ggs/fe/cxf/cxf-plugins&quot;,
77
- &quot;node.js.detected.package.eslint&quot;: &quot;true&quot;,
78
- &quot;node.js.selected.package.eslint&quot;: &quot;(autodetect)&quot;,
79
- &quot;nodejs_package_manager_path&quot;: &quot;npm&quot;,
80
- &quot;vue.rearranger.settings.migration&quot;: &quot;true&quot;
81
- }
82
- }</component>
83
- <component name="RunManager">
84
- <configuration name="scratch_3 | #4" type="HttpClient.HttpRequestRunConfigurationType" factoryName="HTTP Request" temporary="true" nameIsGenerated="true" path="$APPLICATION_CONFIG_DIR$/scratches/scratch_3.http" index="4" requestIdentifier="#4" runType="Run single request">
85
- <method v="2" />
86
- </configuration>
87
- <recent_temporary>
88
- <list>
89
- <item itemvalue="HTTP Request.scratch_3 | #4" />
90
- <item itemvalue="HTTP Request.scratch_3 | #4" />
91
- <item itemvalue="HTTP Request.scratch_3 | #4" />
92
- </list>
93
- </recent_temporary>
94
- </component>
95
- <component name="SpellCheckerSettings" RuntimeDictionaries="0" Folders="0" CustomDictionaries="0" DefaultDictionary="application-level" UseSingleDictionary="true" transferred="true" />
96
- <component name="TaskManager">
97
- <task active="true" id="Default" summary="Default task">
98
- <changelist id="8a643d80-9fae-495e-993b-06419d273af9" name="Changes" comment="" />
99
- <created>1646916274917</created>
100
- <option name="number" value="Default" />
101
- <option name="presentableId" value="Default" />
102
- <updated>1646916274917</updated>
103
- <workItem from="1646916277219" duration="33000" />
104
- <workItem from="1646962879376" duration="40000" />
105
- <workItem from="1647362510112" duration="767000" />
106
- <workItem from="1647416159248" duration="570000" />
107
- <workItem from="1648645082923" duration="1932000" />
108
- <workItem from="1648655030594" duration="2637000" />
109
- <workItem from="1650873154774" duration="1577000" />
110
- <workItem from="1650893065296" duration="118000" />
111
- <workItem from="1651048883195" duration="2562000" />
112
- <workItem from="1744816467382" duration="1874000" />
113
- <workItem from="1745497128984" duration="10000" />
114
- <workItem from="1748261233442" duration="4788000" />
115
- <workItem from="1748327320631" duration="2000" />
116
- <workItem from="1762858593590" duration="6503000" />
117
- <workItem from="1762875591656" duration="42000" />
118
- <workItem from="1762961231892" duration="1487000" />
119
- <workItem from="1763571773084" duration="756000" />
120
- <workItem from="1763625025783" duration="21000" />
121
- <workItem from="1764076095168" duration="5055000" />
122
- <workItem from="1764155465996" duration="41000" />
123
- <workItem from="1765817881705" duration="1219000" />
124
- <workItem from="1765893642576" duration="710000" />
125
- </task>
126
- <task id="LOCAL-00001" summary="fix: switch production version">
127
- <created>1648645320970</created>
128
- <option name="number" value="00001" />
129
- <option name="presentableId" value="LOCAL-00001" />
130
- <option name="project" value="LOCAL" />
131
- <updated>1648645320970</updated>
132
- </task>
133
- <task id="LOCAL-00002" summary="feat: deploy offer notifications">
134
- <created>1650873418333</created>
135
- <option name="number" value="00002" />
136
- <option name="presentableId" value="LOCAL-00002" />
137
- <option name="project" value="LOCAL" />
138
- <updated>1650873418333</updated>
139
- </task>
140
- <task id="LOCAL-00003" summary="feat: deploy SPIL migration">
141
- <created>1651049161275</created>
142
- <option name="number" value="00003" />
143
- <option name="presentableId" value="LOCAL-00003" />
144
- <option name="project" value="LOCAL" />
145
- <updated>1651049161275</updated>
146
- </task>
147
- <task id="LOCAL-00004" summary="feat: migrate qa -&gt; develop">
148
- <created>1651050508420</created>
149
- <option name="number" value="00004" />
150
- <option name="presentableId" value="LOCAL-00004" />
151
- <option name="project" value="LOCAL" />
152
- <updated>1651050508420</updated>
153
- </task>
154
- <task id="LOCAL-00005" summary="feat: add CXF-CANVAS plugin to QA">
155
- <created>1744817145770</created>
156
- <option name="number" value="00005" />
157
- <option name="presentableId" value="LOCAL-00005" />
158
- <option name="project" value="LOCAL" />
159
- <updated>1744817145770</updated>
160
- </task>
161
- <task id="LOCAL-00006" summary="feat: add CXF-CANVAS plugin to QA">
162
- <created>1748271851029</created>
163
- <option name="number" value="00006" />
164
- <option name="presentableId" value="LOCAL-00006" />
165
- <option name="project" value="LOCAL" />
166
- <updated>1748271851029</updated>
167
- </task>
168
- <task id="LOCAL-00007" summary="feat: add CXF-CANVAS plugin to PROD">
169
- <created>1762861660439</created>
170
- <option name="number" value="00007" />
171
- <option name="presentableId" value="LOCAL-00007" />
172
- <option name="project" value="LOCAL" />
173
- <updated>1762861660439</updated>
174
- </task>
175
- <task id="LOCAL-00008" summary="chore: increase minor version">
176
- <created>1762864660327</created>
177
- <option name="number" value="00008" />
178
- <option name="presentableId" value="LOCAL-00008" />
179
- <option name="project" value="LOCAL" />
180
- <updated>1762864660327</updated>
181
- </task>
182
- <task id="LOCAL-00009" summary="chore: increase minor version">
183
- <created>1762961323158</created>
184
- <option name="number" value="00009" />
185
- <option name="presentableId" value="LOCAL-00009" />
186
- <option name="project" value="LOCAL" />
187
- <updated>1762961323158</updated>
188
- </task>
189
- <task id="LOCAL-00010" summary="chore: increase minor version">
190
- <created>1762961941652</created>
191
- <option name="number" value="00010" />
192
- <option name="presentableId" value="LOCAL-00010" />
193
- <option name="project" value="LOCAL" />
194
- <updated>1762961941652</updated>
195
- </task>
196
- <task id="LOCAL-00011" summary="chore: increase minor version">
197
- <created>1763023276368</created>
198
- <option name="number" value="00011" />
199
- <option name="presentableId" value="LOCAL-00011" />
200
- <option name="project" value="LOCAL" />
201
- <updated>1763023276368</updated>
202
- </task>
203
- <task id="LOCAL-00012" summary="fix: disable cxf-canvas plugin as redundant">
204
- <created>1763572070530</created>
205
- <option name="number" value="00012" />
206
- <option name="presentableId" value="LOCAL-00012" />
207
- <option name="project" value="LOCAL" />
208
- <updated>1763572070530</updated>
209
- </task>
210
- <task id="LOCAL-00013" summary="chore: increase version to 0.105.2">
211
- <created>1764076900670</created>
212
- <option name="number" value="00013" />
213
- <option name="presentableId" value="LOCAL-00013" />
214
- <option name="project" value="LOCAL" />
215
- <updated>1764076900670</updated>
216
- </task>
217
- <task id="LOCAL-00014" summary="chore: increase version to 0.105.3">
218
- <created>1764078019290</created>
219
- <option name="number" value="00014" />
220
- <option name="presentableId" value="LOCAL-00014" />
221
- <option name="project" value="LOCAL" />
222
- <updated>1764078019290</updated>
223
- </task>
224
- <task id="LOCAL-00015" summary="fix: change version of plugins for BF">
225
- <created>1764079882682</created>
226
- <option name="number" value="00015" />
227
- <option name="presentableId" value="LOCAL-00015" />
228
- <option name="project" value="LOCAL" />
229
- <updated>1764079882682</updated>
230
- </task>
231
- <task id="LOCAL-00016" summary="fix: change version of plugins for BF">
232
- <created>1765819658718</created>
233
- <option name="number" value="00016" />
234
- <option name="presentableId" value="LOCAL-00016" />
235
- <option name="project" value="LOCAL" />
236
- <updated>1765819658719</updated>
237
- </task>
238
- <option name="localTasksCounter" value="17" />
239
- <servers />
240
- </component>
241
- <component name="TypeScriptGeneratedFilesManager">
242
- <option name="version" value="3" />
243
- </component>
244
- <component name="Vcs.Log.History.Properties">
245
- <option name="COLUMN_ID_ORDER">
246
- <list>
247
- <option value="Default.Root" />
248
- <option value="Default.Author" />
249
- <option value="Default.Date" />
250
- <option value="Default.Subject" />
251
- </list>
252
- </option>
253
- </component>
254
- <component name="Vcs.Log.Tabs.Properties">
255
- <option name="TAB_STATES">
256
- <map>
257
- <entry key="3206c948-88c0-425f-9833-6072c48dc1eb">
258
- <value>
259
- <State>
260
- <option name="SHOW_ONLY_AFFECTED_CHANGES" value="true" />
261
- <option name="FILTERS">
262
- <map>
263
- <entry key="branch">
264
- <value>
265
- <list>
266
- <option value="HEAD" />
267
- </list>
268
- </value>
269
- </entry>
270
- <entry key="structure">
271
- <value>
272
- <list>
273
- <option value="dir:/Users/roman/work/ggs/cxf-plugins/prod" />
274
- </list>
275
- </value>
276
- </entry>
277
- </map>
278
- </option>
279
- </State>
280
- </value>
281
- </entry>
282
- <entry key="4eb43455-3e1c-408f-8ebb-4789e461286a">
283
- <value>
284
- <State>
285
- <option name="SHOW_ONLY_AFFECTED_CHANGES" value="true" />
286
- <option name="FILTERS">
287
- <map>
288
- <entry key="branch">
289
- <value>
290
- <list>
291
- <option value="HEAD" />
292
- </list>
293
- </value>
294
- </entry>
295
- <entry key="structure">
296
- <value>
297
- <list>
298
- <option value="dir:/Users/roman/work/ggs/frontend/cxf/cxf-plugins/prod" />
299
- </list>
300
- </value>
301
- </entry>
302
- </map>
303
- </option>
304
- </State>
305
- </value>
306
- </entry>
307
- <entry key="MAIN">
308
- <value>
309
- <State />
310
- </value>
311
- </entry>
312
- <entry key="e9385bd3-0d80-4482-854d-1efe4257a448">
313
- <value>
314
- <State>
315
- <option name="SHOW_ONLY_AFFECTED_CHANGES" value="true" />
316
- <option name="FILTERS">
317
- <map>
318
- <entry key="branch">
319
- <value>
320
- <list>
321
- <option value="HEAD" />
322
- </list>
323
- </value>
324
- </entry>
325
- <entry key="structure">
326
- <value>
327
- <list>
328
- <option value="dir:/Users/roman/work/ggs/fe/cxf/cxf-plugins/prod" />
329
- </list>
330
- </value>
331
- </entry>
332
- </map>
333
- </option>
334
- </State>
335
- </value>
336
- </entry>
337
- </map>
338
- </option>
339
- <option name="OPEN_GENERIC_TABS">
340
- <map>
341
- <entry key="3206c948-88c0-425f-9833-6072c48dc1eb" value="TOOL_WINDOW" />
342
- <entry key="4eb43455-3e1c-408f-8ebb-4789e461286a" value="TOOL_WINDOW" />
343
- <entry key="e9385bd3-0d80-4482-854d-1efe4257a448" value="TOOL_WINDOW" />
344
- </map>
345
- </option>
346
- </component>
347
- <component name="VcsManagerConfiguration">
348
- <MESSAGE value="fix: switch production version" />
349
- <MESSAGE value="feat: deploy offer notifications" />
350
- <MESSAGE value="feat: deploy SPIL migration" />
351
- <MESSAGE value="feat: migrate qa -&gt; develop" />
352
- <MESSAGE value="feat: add CXF-CANVAS plugin to QA" />
353
- <MESSAGE value="feat: add CXF-CANVAS plugin to PROD" />
354
- <MESSAGE value="chore: increase minor version" />
355
- <MESSAGE value="fix: disable cxf-canvas plugin as redundant" />
356
- <MESSAGE value="chore: increase version to 0.105.2" />
357
- <MESSAGE value="chore: increase version to 0.105.3" />
358
- <MESSAGE value="fix: change version of plugins for BF" />
359
- <option name="LAST_COMMIT_MESSAGE" value="fix: change version of plugins for BF" />
360
- </component>
361
- </project>
@@ -1,4 +0,0 @@
1
- [
2
- "<script src='https://hotpkg.com/@goodgamestudios/cxf-dialog@qa/dist/cxfDialog.js'></script>",
3
- "http://localhost:4002/announcements.js"
4
- ]
@@ -1,4 +0,0 @@
1
- [
2
- "<script src='https://hotpkg.com/@goodgamestudios/cxf-dialog@qa/dist/cxfDialog.js'></script>",
3
- "http://localhost:4002/announcements.js"
4
- ]
@@ -1,4 +0,0 @@
1
- [
2
- "<script src='https://hotpkg.com/@goodgamestudios/cxf-dialog@dev/dist/cxfDialogAir.js'></script>",
3
- "<script src='http://localhost:4002/announcements.js'></script>"
4
- ]
package/src/index.js DELETED
@@ -1,56 +0,0 @@
1
- const axios = require('axios')
2
- const chalk = require('chalk')
3
-
4
-
5
- const fs = require('fs')
6
- const pAll = require('p-all')
7
-
8
- const DEV_ENV = 'dev'
9
- const DEVELOPMENT_ENV = 'development'
10
- const QA_ENV = 'qa'
11
- const PROD_ENV = 'prod'
12
-
13
- const ENV_LIST = [DEVELOPMENT_ENV, DEV_ENV, QA_ENV, PROD_ENV]
14
-
15
- const ENV_COLOR_LOG = {}
16
- ENV_COLOR_LOG[DEVELOPMENT_ENV] = chalk.yellowBright.bgGrey
17
- ENV_COLOR_LOG[DEV_ENV] = chalk.yellowBright.bgGrey
18
- ENV_COLOR_LOG[QA_ENV] = chalk.green.bgYellowBright
19
- ENV_COLOR_LOG[PROD_ENV] = chalk.yellowBright.bgBlue
20
-
21
- ;(async () => {
22
- let tasks = []
23
-
24
- ENV_LIST.forEach(env => {
25
- const path = `./${env}`
26
- const files = fs.readdirSync(path);
27
-
28
- files.forEach(file => {
29
- const json = JSON.parse(fs.readFileSync(`${path}/${file}`, 'utf8'));
30
- const gameName = file.replace('.json', '')
31
-
32
- tasks = tasks.concat(json.filter(plugin => plugin.includes('<script src='))
33
- .map(script =>
34
- () => {
35
- const url = script.match(/http.*(?=["'])/)[0]
36
- return axios.get(url).then(data => {
37
- const {status} = data
38
- const url = data.config.url
39
- console.log(` ${chalk.yellowBright.bgGreen(' [ VALID ] ')} - ${ENV_COLOR_LOG[env](` ${env} `)} - ${chalk.blue(gameName)}: ${url}`)
40
- }).catch(err => {
41
- if ([PROD_ENV, QA_ENV].includes(env)) {
42
- console.log(`${chalk.yellowBright.bgRedBright(' [WARNING] invalid ')} - ${ENV_COLOR_LOG[env](` ${env} `)} - ${chalk.blue(gameName)}: ${url}`)
43
- throw new Error(`The ${env} build contains the invalid plugin links for ${gameName}`)
44
- }
45
- console.log(`${chalk.red.bgYellowBright(' [WARNING] invalid ')} - ${ENV_COLOR_LOG[env](` ${env} `)} - ${chalk.blue(gameName)}: ${url}`)
46
- })
47
- }
48
- ))
49
- })
50
- })
51
-
52
- await pAll(tasks, {stopOnError: false}).catch(err => {
53
- console.log(chalk.yellowBright.bgRedBright(` [Error] - Message: ${err.message} `))
54
- })
55
- })()
56
-