@rockcarver/frodo-cli 0.11.1-0 → 0.11.1-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 (90) hide show
  1. package/CHANGELOG.md +5 -1
  2. package/package.json +12 -10
  3. package/src/app.js +3 -3
  4. package/.eslintrc +0 -29
  5. package/.github/ISSUE_TEMPLATE/bug_report.md +0 -30
  6. package/.github/ISSUE_TEMPLATE/feature_request.md +0 -20
  7. package/.github/README.md +0 -213
  8. package/.github/workflows/pipeline.yml +0 -495
  9. package/.prettierrc +0 -6
  10. package/CODE_OF_CONDUCT.md +0 -128
  11. package/docs/BINARIES.md +0 -22
  12. package/docs/CONTRIBUTE.md +0 -96
  13. package/docs/PIPELINE.md +0 -169
  14. package/docs/images/macos_warn1.png +0 -0
  15. package/docs/images/macos_warn2.png +0 -0
  16. package/docs/images/macos_warn3.png +0 -0
  17. package/docs/images/npm_versioning_guidelines.png +0 -0
  18. package/docs/images/release_pipeline.png +0 -0
  19. package/gulpfile.js +0 -49
  20. package/jsconfig.json +0 -6
  21. package/resources/sampleEntitiesFile.json +0 -8
  22. package/resources/sampleEnvFile.env +0 -2
  23. package/src/cli/journey/journey-delete.e2e.test_.js +0 -380
  24. package/src/cli/journey/journey-list.e2e.test_.js +0 -142
  25. package/src/cli/theme/theme-delete.e2e.test_.js +0 -178
  26. package/src/cli/theme/theme-list.e2e.test_.js +0 -119
  27. package/test/client_cli/en/conn-add.test.js +0 -37
  28. package/test/client_cli/en/conn-delete.test.js +0 -37
  29. package/test/client_cli/en/conn-list.test.js +0 -37
  30. package/test/client_cli/en/conn.test.js +0 -65
  31. package/test/client_cli/en/email-template-import.test.js +0 -156
  32. package/test/client_cli/en/email-template.test.js +0 -79
  33. package/test/client_cli/en/email-templates-export.test.js +0 -208
  34. package/test/client_cli/en/email-templates-list.test.js +0 -139
  35. package/test/client_cli/en/idm-count.test.js +0 -131
  36. package/test/client_cli/en/idm-export.test.js +0 -149
  37. package/test/client_cli/en/idm-import.test_.js +0 -101
  38. package/test/client_cli/en/idm-list.test.js +0 -109
  39. package/test/client_cli/en/idm.test.js +0 -82
  40. package/test/client_cli/en/info.test.js +0 -136
  41. package/test/client_cli/en/journey-describe.test.js +0 -194
  42. package/test/client_cli/en/journey-export.test.js +0 -231
  43. package/test/client_cli/en/journey-import.test.js +0 -212
  44. package/test/client_cli/en/journey-list.test.js +0 -173
  45. package/test/client_cli/en/journey-prune.test.js +0 -159
  46. package/test/client_cli/en/journey.test.js +0 -111
  47. package/test/client_cli/en/logs-list.test.js +0 -81
  48. package/test/client_cli/en/logs-tail.test.js +0 -130
  49. package/test/client_cli/en/logs.test.js +0 -65
  50. package/test/client_cli/en/root.test.js +0 -93
  51. package/test/client_cli/en/script-export.test.js +0 -230
  52. package/test/client_cli/en/script-import.test.js +0 -176
  53. package/test/client_cli/en/script-list.test.js +0 -159
  54. package/test/client_cli/en/script.test.js +0 -79
  55. package/test/client_cli/utils/utils.js +0 -63
  56. package/test/e2e/journey/baseline/ForgottenUsername.journey.json +0 -216
  57. package/test/e2e/journey/baseline/Login.journey.json +0 -205
  58. package/test/e2e/journey/baseline/PasswordGrant.journey.json +0 -139
  59. package/test/e2e/journey/baseline/ProgressiveProfile.journey.json +0 -198
  60. package/test/e2e/journey/baseline/Registration.journey.json +0 -249
  61. package/test/e2e/journey/baseline/ResetPassword.journey.json +0 -268
  62. package/test/e2e/journey/baseline/UpdatePassword.journey.json +0 -323
  63. package/test/e2e/journey/baseline/allAlphaJourneys.journeys.json +0 -1520
  64. package/test/e2e/journey/delete/ForgottenUsername.journey.json +0 -216
  65. package/test/e2e/journey/delete/Login.journey.json +0 -205
  66. package/test/e2e/journey/delete/PasswordGrant.journey.json +0 -139
  67. package/test/e2e/journey/delete/ProgressiveProfile.journey.json +0 -198
  68. package/test/e2e/journey/delete/Registration.journey.json +0 -249
  69. package/test/e2e/journey/delete/ResetPassword.journey.json +0 -268
  70. package/test/e2e/journey/delete/UpdatePassword.journey.json +0 -323
  71. package/test/e2e/journey/delete/deleteMe.journey.json +0 -230
  72. package/test/e2e/journey/list/Disabled.journey.json +0 -43
  73. package/test/e2e/journey/list/ForgottenUsername.journey.json +0 -216
  74. package/test/e2e/journey/list/Login.journey.json +0 -205
  75. package/test/e2e/journey/list/PasswordGrant.journey.json +0 -139
  76. package/test/e2e/journey/list/ProgressiveProfile.journey.json +0 -198
  77. package/test/e2e/journey/list/Registration.journey.json +0 -249
  78. package/test/e2e/journey/list/ResetPassword.journey.json +0 -268
  79. package/test/e2e/journey/list/UpdatePassword.journey.json +0 -323
  80. package/test/e2e/theme/baseline/Contrast.theme.json +0 -95
  81. package/test/e2e/theme/baseline/Highlander.theme.json +0 -95
  82. package/test/e2e/theme/baseline/Robroy.theme.json +0 -95
  83. package/test/e2e/theme/baseline/Starter-Theme.theme.json +0 -94
  84. package/test/e2e/theme/baseline/Zardoz.theme.json +0 -95
  85. package/test/e2e/theme/import/Contrast.theme.json +0 -95
  86. package/test/e2e/theme/import/Highlander.theme.json +0 -95
  87. package/test/e2e/theme/import/Robroy.theme.json +0 -95
  88. package/test/e2e/theme/import/Starter-Theme.theme.json +0 -94
  89. package/test/e2e/theme/import/Zardoz.default.theme.json +0 -95
  90. package/test/fs_tmp/.gitkeep +0 -2
@@ -1,495 +0,0 @@
1
- name: 'Frodo CLI Release Pipeline'
2
-
3
- on:
4
- push:
5
- branches:
6
- - 'main'
7
-
8
- jobs:
9
- smoke-tests:
10
- name: 'Smoke Tests'
11
- # You must use a Linux environment when using service containers or container jobs
12
- runs-on: ubuntu-latest
13
- strategy:
14
- matrix:
15
- node-version: [18, 16, 14]
16
- # See supported Node.js release schedule at https://nodejs.org/en/about/releases/
17
-
18
- # Service containers to run with `smoke-tests`
19
- services:
20
- # Label used to access the service container
21
- squid:
22
- # Docker Hub image
23
- image: ubuntu/squid
24
- #
25
- ports:
26
- # Maps tcp port 3128 on the host to the same port in the service container
27
- - 3128:3128
28
-
29
- steps:
30
- - name: Checkout repository
31
- uses: actions/checkout@v2
32
- with:
33
- ref: ${{ github.ref }}
34
-
35
- - name: Use Node.js ${{ matrix.node-version }}
36
- uses: actions/setup-node@v2
37
- with:
38
- # See supported Node.js release schedule at https://nodejs.org/en/about/releases/
39
- node-version: ${{ matrix.node-version }}
40
- cache: 'npm'
41
-
42
- - name: Install dependencies and install frodo globally
43
- run: |
44
- npm ci
45
- npm i -g
46
-
47
- #
48
- # Run tests.
49
- #
50
- - name: Lint & Fix
51
- run: |
52
- npm run lint -- --fix
53
-
54
- - name: CLI Help Test
55
- run: |
56
- npm test
57
-
58
- - name: Version Test
59
- run: |
60
- frodo -v
61
-
62
- - name: Direct Tests
63
- env:
64
- FIDC_TENANT_URL: ${{ secrets.FIDC_TENANT_URL }}
65
- FIDC_TENANT_ADMIN_USERNAME: ${{ secrets.FIDC_TENANT_ADMIN_USERNAME }}
66
- FIDC_TENANT_ADMIN_PASSWORD: ${{ secrets.FIDC_TENANT_ADMIN_PASSWORD }}
67
- run: |
68
- frodo conn add "$FIDC_TENANT_URL" "$FIDC_TENANT_ADMIN_USERNAME" "$FIDC_TENANT_ADMIN_PASSWORD"
69
- frodo info "$FIDC_TENANT_URL"
70
-
71
- - name: Proxy Tests
72
- env:
73
- HTTPS_PROXY: "http://127.0.0.1:3128"
74
- FIDC_TENANT_URL: ${{ secrets.FIDC_TENANT_URL }}
75
- FIDC_TENANT_ADMIN_USERNAME: ${{ secrets.FIDC_TENANT_ADMIN_USERNAME }}
76
- FIDC_TENANT_ADMIN_PASSWORD: ${{ secrets.FIDC_TENANT_ADMIN_PASSWORD }}
77
- run: |
78
- frodo conn add "$FIDC_TENANT_URL" "$FIDC_TENANT_ADMIN_USERNAME" "$FIDC_TENANT_ADMIN_PASSWORD"
79
- frodo info "$FIDC_TENANT_URL"
80
-
81
- update-changelog:
82
- needs: smoke-tests
83
- name: 'Update Changelog'
84
- runs-on: ubuntu-latest
85
-
86
- steps:
87
- - name: 'Checkout source code'
88
- uses: 'actions/checkout@v2'
89
- with:
90
- ref: ${{ github.ref }}
91
-
92
- - name: 'cat package.json'
93
- run: cat ./package.json
94
-
95
- - name: 'Prepare Version Bump'
96
- id: prepare-version-bump
97
- uses: 'phips28/gh-action-bump-version@master'
98
- with:
99
- major-wording: 'MAJOR RELEASE'
100
- minor-wording: 'MINOR RELEASE'
101
- patch-wording: 'PATCH RELEASE'
102
- rc-wording: ''
103
- tag-prefix: 'v'
104
- default: prerelease
105
- preid: ''
106
- bump-policy: 'ignore'
107
- skip-commit: 'true'
108
- skip-tag: 'true'
109
- skip-push: 'true'
110
- env:
111
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
112
-
113
- - name: Update Changelog
114
- uses: thomaseizinger/keep-a-changelog-new-release@1.3.0
115
- with:
116
- tag: ${{ steps.prepare-version-bump.outputs.newTag }}
117
-
118
- - name: 'Output Changelog'
119
- run: cat CHANGELOG.md
120
-
121
- - name: Commit updated changelog
122
- id: commit-changelog
123
- run: |
124
- git add CHANGELOG.md
125
- git commit --message "Updated changelog for release ${{ steps.prepare-version-bump.outputs.newTag }}"
126
- git push
127
-
128
- - name: 'Output Version'
129
- env:
130
- NEW_VERSION: ${{ steps.prepare-version-bump.outputs.newTag }}
131
- run: echo "new tag $NEW_VERSION"
132
-
133
- bump-version:
134
- needs: update-changelog
135
- name: 'Bump Version'
136
- runs-on: ubuntu-latest
137
-
138
- steps:
139
- - name: 'Checkout Source Code'
140
- uses: 'actions/checkout@v2'
141
- with:
142
- ref: ${{ github.ref }}
143
-
144
- - name: 'cat package.json'
145
- run: cat ./package.json
146
-
147
- - name: 'Automated Version Bump'
148
- id: version-bump
149
- uses: 'phips28/gh-action-bump-version@master'
150
- with:
151
- major-wording: 'MAJOR RELEASE'
152
- minor-wording: 'MINOR RELEASE'
153
- patch-wording: 'PATCH RELEASE'
154
- rc-wording: ''
155
- tag-prefix: 'v'
156
- default: prerelease
157
- preid: ''
158
- bump-policy: 'ignore'
159
- env:
160
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
161
-
162
- - name: 'cat package.json'
163
- run: cat ./package.json
164
-
165
- - name: 'Output Tag'
166
- env:
167
- NEW_TAG: ${{ steps.version-bump.outputs.newTag }}
168
- run: echo "new tag $NEW_TAG"
169
-
170
- - name: 'Version From Tag'
171
- id: version-from-tag
172
- run: echo "::set-output name=version::$(echo '${{ steps.version-bump.outputs.newTag }}' | sed 's/v//')"
173
-
174
- - name: 'Output Version'
175
- id: output-version
176
- run: echo "Version = ${{ steps.version-from-tag.outputs.version }}"
177
-
178
- outputs:
179
- newTag: ${{ steps.version-bump.outputs.newTag }}
180
- newVersion: ${{ steps.version-from-tag.outputs.version }}
181
- preRelease: ${{ contains(steps.version-bump.outputs.newTag, '-') }}
182
-
183
- release-notes:
184
- needs: bump-version
185
- name: 'Release Notes'
186
- runs-on: ubuntu-latest
187
-
188
- steps:
189
- - name: 'Checkout Source Code'
190
- uses: 'actions/checkout@v2'
191
- with:
192
- ref: ${{ github.ref }}
193
-
194
- - name: 'Release Header'
195
- id: release-header
196
- run: echo "::set-output name=header::$(echo `grep '## \\[${{ needs.bump-version.outputs.newVersion }}] -' CHANGELOG.md | sed 's/## //' | sed 's/\\[//' | sed 's/]//'`)"
197
-
198
- - name: 'Output Release Header'
199
- id: output-release-header
200
- run: echo "Release Header = ${{ steps.release-header.outputs.header }}"
201
-
202
- - name: 'Extract Release Notes'
203
- id: extract-release-notes
204
- uses: 'dahlia/submark@main'
205
- with:
206
- input-file: "CHANGELOG.md"
207
- heading-level: 2
208
- heading-title-text: "${{ steps.release-header.outputs.header }}"
209
- ignore-case: true
210
- omit-heading: true
211
-
212
- # The output-file refers to the path of the temporary file which contains
213
- # the only extracted part:
214
- - name: 'Output Extracted Release Notes File'
215
- run: cat ${{ steps.extract-release-notes.outputs.output-file }}
216
-
217
- # The output-text contains the text of the extracted part.
218
- - name: 'Output Extracted Release Notes'
219
- run: echo "${{ steps.extract-release-notes.outputs.output-text }}"
220
-
221
- outputs:
222
- notes: ${{ steps.extract-release-notes.outputs.output-text }}
223
-
224
- release:
225
- needs: [bump-version, release-notes]
226
- name: 'Release'
227
- runs-on: ubuntu-latest
228
-
229
- steps:
230
- - name: 'Checkout Source Code'
231
- uses: 'actions/checkout@v2'
232
- with:
233
- ref: ${{ github.ref }}
234
-
235
- - name: 'Github SHA'
236
- id: github-sha
237
- run: echo ${{ github.sha }} > Release.txt
238
-
239
- - name: 'Test Github SHA'
240
- id: test-github-sha
241
- run: cat Release.txt
242
-
243
- - name: Release
244
- uses: softprops/action-gh-release@v1
245
- with:
246
- name: ${{ needs.bump-version.outputs.newVersion }}
247
- tag_name: ${{ needs.bump-version.outputs.newTag }}
248
- body: ${{ needs.release-notes.outputs.notes }}
249
- prerelease: ${{ needs.bump-version.outputs.preRelease }}
250
- generate_release_notes: ${{ contains(needs.bump-version.outputs.newTag, '-') }}
251
- files: |
252
- CHANGELOG.md
253
- LICENSE
254
- Release.txt
255
- token: ${{ secrets.GITHUB_TOKEN }}
256
-
257
- outputs:
258
- newTag: ${{ needs.bump-version.outputs.newTag }}
259
- newVersion: ${{ needs.bump-version.outputs.newVersion }}
260
-
261
- npm-release:
262
- needs: [bump-version, release]
263
- runs-on: ubuntu-latest
264
- steps:
265
- - uses: actions/checkout@v3
266
- with:
267
- ref: ${{ github.ref }}
268
- - uses: actions/setup-node@v3
269
- with:
270
- node-version: 14
271
- - name: Pre-Release
272
- if: ${{ fromJSON(needs.bump-version.outputs.preRelease) }}
273
- uses: JS-DevTools/npm-publish@v1
274
- with:
275
- tag: "next"
276
- token: ${{ secrets.NPM_ACCESS_TOKEN }}
277
- - name: Release
278
- if: ${{ ! fromJSON(needs.bump-version.outputs.preRelease) }}
279
- uses: JS-DevTools/npm-publish@v1
280
- with:
281
- token: ${{ secrets.NPM_ACCESS_TOKEN }}
282
- - name: Remove Pre-Release Tag
283
- if: ${{ ! fromJSON(needs.bump-version.outputs.preRelease) }}
284
- run: |
285
- export INPUT_TOKEN=${{ secrets.NPM_ACCESS_TOKEN }}
286
- npm whoami
287
- npm dist-tag rm @rockcarver/frodo-cli next
288
-
289
- macos-binary-release:
290
- needs: [bump-version, release]
291
- runs-on: macos-latest
292
- strategy:
293
- matrix:
294
- node-version: [18]
295
- # See supported Node.js release schedule at https://nodejs.org/en/about/releases/
296
- timeout-minutes: 15
297
- steps:
298
- - name: 'Checkout Project'
299
- uses: actions/checkout@v2
300
- with:
301
- ref: ${{ needs.release.outputs.newTag }}
302
-
303
- - name: 'cat package.json'
304
- run: cat ./package.json
305
-
306
- - name: Install the Apple certificate
307
- env:
308
- DEVELOPMENT_CERTIFICATE_DATA: ${{ secrets.DEVELOPMENT_CERTIFICATE_DATA }}
309
- DEVELOPMENT_CERTIFICATE_PASSPHRASE: ${{ secrets.DEVELOPMENT_CERTIFICATE_PASSPHRASE }}
310
- INTERMEDIATE_CERTIFICATE_DATA: ${{ secrets.INTERMEDIATE_CERTIFICATE_DATA }}
311
- KEYCHAIN_PASSWORD: ${{ secrets.KEYCHAIN_PASSWORD }}
312
- run: |
313
- # create variables
314
- CERTIFICATE_PATH=$RUNNER_TEMP/build_certificate.p12
315
- INTERMEDIATE_CERTIFICATE_PATH=$RUNNER_TEMP/intermediate_certificate.p12
316
- KEYCHAIN_PATH=$RUNNER_TEMP/app-signing.keychain-db
317
-
318
- # import certificates from secrets
319
- echo -n "$DEVELOPMENT_CERTIFICATE_DATA" | base64 --decode --output $CERTIFICATE_PATH
320
- echo -n "$INTERMEDIATE_CERTIFICATE_DATA" | base64 --decode --output $INTERMEDIATE_CERTIFICATE_PATH
321
-
322
- # create temporary keychain
323
- security create-keychain -p "$KEYCHAIN_PASSWORD" $KEYCHAIN_PATH
324
- security set-keychain-settings -lut 21600 $KEYCHAIN_PATH
325
- security unlock-keychain -p "$KEYCHAIN_PASSWORD" $KEYCHAIN_PATH
326
-
327
- # import certificate to keychain
328
- security import $CERTIFICATE_PATH -P "$DEVELOPMENT_CERTIFICATE_PASSPHRASE" -A -t cert -f pkcs12 -k $KEYCHAIN_PATH
329
- #security import $INTERMEDIATE_CERTIFICATE_PATH -P "$DEVELOPMENT_CERTIFICATE_PASSPHRASE" -A -t cert -f pkcs12 -k $KEYCHAIN_PATH
330
- security list-keychain -d user -s $KEYCHAIN_PATH
331
-
332
- - name: Install pkg
333
- run: npm install -g pkg
334
-
335
- - name: Install gulp
336
- run: npm install -g gulp
337
-
338
- - name: Use Node.js ${{ matrix.node-version }}
339
- uses: actions/setup-node@v2
340
- with:
341
- node-version: ${{ matrix.node-version }}
342
- cache: 'npm'
343
-
344
- - name: Install root dependencies
345
- run: npm ci
346
-
347
- - name: Transpile to CommonJS
348
- run: gulp
349
-
350
- - name: Install binary distribution dependencies
351
- working-directory: ./dist
352
- run: npm ci
353
-
354
- - name: Build distribution binary
355
- working-directory: ./dist
356
- run: pkg -C Gzip -t node18-macos-x64 -o bin/macos/frodo .
357
- #
358
- # Fail early on failing tests.
359
- #
360
-
361
- - name: 'Test'
362
- run: 'dist/bin/macos/frodo -v'
363
-
364
- #
365
- # Re-sign the application with the "Developer ID" certificate.
366
- #
367
- - name: Sign distribution binary
368
- working-directory: ./dist/bin/macos
369
- run: "codesign -f -s 'Rock Carver' --timestamp --deep frodo"
370
- # run: "codesign -f -s 'Developer ID Application: Volker Scheuber (AV6L99G8W9)' --timestamp --deep frodo"
371
-
372
- #
373
- # Zip up the app and add it to the GitHub Release as a
374
- # downloadable asset.
375
- #
376
-
377
- - name: Package for Distribution
378
- run: ditto -V -c -k --keepParent "dist/bin/macos/frodo" "dist/frodo-macos-${{ needs.release.outputs.newVersion }}.zip"
379
-
380
- - name: Release
381
- uses: softprops/action-gh-release@v1
382
- with:
383
- name: ${{ needs.release.outputs.newVersion }}
384
- tag_name: ${{ needs.release.outputs.newTag }}
385
- files: dist/frodo-macos-${{ needs.release.outputs.newVersion }}.zip
386
-
387
- linux-binary-release:
388
- needs: [bump-version, release]
389
- runs-on: ubuntu-latest
390
- strategy:
391
- matrix:
392
- node-version: [18]
393
- # See supported Node.js release schedule at https://nodejs.org/en/about/releases/
394
- steps:
395
- - name: Checkout repository
396
- uses: actions/checkout@v2
397
- with:
398
- ref: ${{ needs.release.outputs.newTag }}
399
-
400
- - name: 'cat package.json'
401
- run: cat ./package.json
402
-
403
- - name: Install pkg
404
- run: npm install -g pkg
405
-
406
- - name: Use Node.js ${{ matrix.node-version }}
407
- uses: actions/setup-node@v2
408
- with:
409
- node-version: ${{ matrix.node-version }}
410
- cache: 'npm'
411
-
412
- - name: Install root dependencies
413
- run: npm ci
414
-
415
- - name: Transpile to CommonJS
416
- run: gulp
417
-
418
- - name: Install binary distribution dependencies
419
- working-directory: ./dist
420
- run: npm ci
421
-
422
- - name: Build distribution binary
423
- working-directory: ./dist
424
- run: pkg -C Gzip -t node18-linux-x64 -o bin/linux/frodo .
425
-
426
- #
427
- # Fail early on failing tests.
428
- #
429
- - name: 'Test'
430
- run: 'dist/bin/linux/frodo -v'
431
-
432
- - name: Archive distribution binary
433
- run: zip -r -Z bzip2 dist/frodo-linux-${{ needs.release.outputs.newVersion }}.zip . -i dist/bin/linux/frodo
434
-
435
- - name: Release distribution binaries
436
- uses: softprops/action-gh-release@v1
437
- with:
438
- name: ${{ needs.release.outputs.newVersion }}
439
- tag_name: ${{ needs.release.outputs.newTag }}
440
- files: dist/frodo-linux-${{ needs.release.outputs.newVersion }}.zip
441
-
442
- windows-binary-release:
443
- needs: [bump-version, release]
444
- runs-on: windows-latest
445
- strategy:
446
- matrix:
447
- node-version: [18]
448
- # See supported Node.js release schedule at https://nodejs.org/en/about/releases/
449
- steps:
450
- - name: Checkout repository
451
- uses: actions/checkout@v2
452
- with:
453
- ref: ${{ needs.release.outputs.newTag }}
454
-
455
- - name: 'type package.json'
456
- run: type package.json
457
-
458
- - name: Install pkg
459
- run: npm install -g pkg
460
-
461
- - name: Use Node.js ${{ matrix.node-version }}
462
- uses: actions/setup-node@v2
463
- with:
464
- node-version: ${{ matrix.node-version }}
465
- cache: 'npm'
466
-
467
- - name: Install root dependencies
468
- run: npm ci
469
-
470
- - name: Transpile to CommonJS
471
- run: gulp
472
-
473
- - name: Install binary distribution dependencies
474
- working-directory: ./dist
475
- run: npm ci
476
-
477
- - name: Build distribution binary
478
- working-directory: ./dist
479
- run: pkg -C Gzip -t node18-win-x64 -o bin/win/frodo .
480
-
481
- #
482
- # Fail early on failing tests.
483
- #
484
- - name: 'Test'
485
- run: 'dist/bin/win/frodo.exe -v'
486
-
487
- - name: Archive distribution binary
488
- run: 7z a -tzip dist/frodo-win-${{ needs.release.outputs.newVersion }}.zip dist/bin/win/frodo.exe
489
-
490
- - name: Release distribution binaries
491
- uses: softprops/action-gh-release@v1
492
- with:
493
- name: ${{ needs.release.outputs.newVersion }}
494
- tag_name: ${{ needs.release.outputs.newTag }}
495
- files: dist/frodo-win-${{ needs.release.outputs.newVersion }}.zip
package/.prettierrc DELETED
@@ -1,6 +0,0 @@
1
- {
2
- "trailingComma": "es5",
3
- "tabWidth": 2,
4
- "semi": true,
5
- "singleQuote": true
6
- }
@@ -1,128 +0,0 @@
1
- # Contributor Covenant Code of Conduct
2
-
3
- ## Our Pledge
4
-
5
- We as members, contributors, and leaders pledge to make participation in our
6
- community a harassment-free experience for everyone, regardless of age, body
7
- size, visible or invisible disability, ethnicity, sex characteristics, gender
8
- identity and expression, level of experience, education, socio-economic status,
9
- nationality, personal appearance, race, religion, or sexual identity
10
- and orientation.
11
-
12
- We pledge to act and interact in ways that contribute to an open, welcoming,
13
- diverse, inclusive, and healthy community.
14
-
15
- ## Our Standards
16
-
17
- Examples of behavior that contributes to a positive environment for our
18
- community include:
19
-
20
- * Demonstrating empathy and kindness toward other people
21
- * Being respectful of differing opinions, viewpoints, and experiences
22
- * Giving and gracefully accepting constructive feedback
23
- * Accepting responsibility and apologizing to those affected by our mistakes,
24
- and learning from the experience
25
- * Focusing on what is best not just for us as individuals, but for the
26
- overall community
27
-
28
- Examples of unacceptable behavior include:
29
-
30
- * The use of sexualized language or imagery, and sexual attention or
31
- advances of any kind
32
- * Trolling, insulting or derogatory comments, and personal or political attacks
33
- * Public or private harassment
34
- * Publishing others' private information, such as a physical or email
35
- address, without their explicit permission
36
- * Other conduct which could reasonably be considered inappropriate in a
37
- professional setting
38
-
39
- ## Enforcement Responsibilities
40
-
41
- Community leaders are responsible for clarifying and enforcing our standards of
42
- acceptable behavior and will take appropriate and fair corrective action in
43
- response to any behavior that they deem inappropriate, threatening, offensive,
44
- or harmful.
45
-
46
- Community leaders have the right and responsibility to remove, edit, or reject
47
- comments, commits, code, wiki edits, issues, and other contributions that are
48
- not aligned to this Code of Conduct, and will communicate reasons for moderation
49
- decisions when appropriate.
50
-
51
- ## Scope
52
-
53
- This Code of Conduct applies within all community spaces, and also applies when
54
- an individual is officially representing the community in public spaces.
55
- Examples of representing our community include using an official e-mail address,
56
- posting via an official social media account, or acting as an appointed
57
- representative at an online or offline event.
58
-
59
- ## Enforcement
60
-
61
- Instances of abusive, harassing, or otherwise unacceptable behavior may be
62
- reported to the community leaders responsible for enforcement at
63
- schaturvedi@gmail.com.
64
- All complaints will be reviewed and investigated promptly and fairly.
65
-
66
- All community leaders are obligated to respect the privacy and security of the
67
- reporter of any incident.
68
-
69
- ## Enforcement Guidelines
70
-
71
- Community leaders will follow these Community Impact Guidelines in determining
72
- the consequences for any action they deem in violation of this Code of Conduct:
73
-
74
- ### 1. Correction
75
-
76
- **Community Impact**: Use of inappropriate language or other behavior deemed
77
- unprofessional or unwelcome in the community.
78
-
79
- **Consequence**: A private, written warning from community leaders, providing
80
- clarity around the nature of the violation and an explanation of why the
81
- behavior was inappropriate. A public apology may be requested.
82
-
83
- ### 2. Warning
84
-
85
- **Community Impact**: A violation through a single incident or series
86
- of actions.
87
-
88
- **Consequence**: A warning with consequences for continued behavior. No
89
- interaction with the people involved, including unsolicited interaction with
90
- those enforcing the Code of Conduct, for a specified period of time. This
91
- includes avoiding interactions in community spaces as well as external channels
92
- like social media. Violating these terms may lead to a temporary or
93
- permanent ban.
94
-
95
- ### 3. Temporary Ban
96
-
97
- **Community Impact**: A serious violation of community standards, including
98
- sustained inappropriate behavior.
99
-
100
- **Consequence**: A temporary ban from any sort of interaction or public
101
- communication with the community for a specified period of time. No public or
102
- private interaction with the people involved, including unsolicited interaction
103
- with those enforcing the Code of Conduct, is allowed during this period.
104
- Violating these terms may lead to a permanent ban.
105
-
106
- ### 4. Permanent Ban
107
-
108
- **Community Impact**: Demonstrating a pattern of violation of community
109
- standards, including sustained inappropriate behavior, harassment of an
110
- individual, or aggression toward or disparagement of classes of individuals.
111
-
112
- **Consequence**: A permanent ban from any sort of public interaction within
113
- the community.
114
-
115
- ## Attribution
116
-
117
- This Code of Conduct is adapted from the [Contributor Covenant][homepage],
118
- version 2.0, available at
119
- https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.
120
-
121
- Community Impact Guidelines were inspired by [Mozilla's code of conduct
122
- enforcement ladder](https://github.com/mozilla/diversity).
123
-
124
- [homepage]: https://www.contributor-covenant.org
125
-
126
- For answers to common questions about this code of conduct, see the FAQ at
127
- https://www.contributor-covenant.org/faq. Translations are available at
128
- https://www.contributor-covenant.org/translations.
package/docs/BINARIES.md DELETED
@@ -1,22 +0,0 @@
1
- # `frodo` binary distribution
2
- Prebuilt binaries for major OSes (MacOs, Windows and linux) are available on the [releases page](https://github.com/rockcarver/frodo/releases). These binaries can be run without and prerequisites or dependencies and are the **easiest and fastest** way to start using `frodo`. But, these binaries are not signed and hence are untrusted by MacOS and Windows. As a result, these OSes may not let you run frodo the very first time just after downloading and unzipping it. Follow these simple steps to get frodo binaries working on MacOS and Windows.
3
-
4
- ## MacOS
5
- - When frodo is run from a terminal for the first time, you may see a popup like below
6
-
7
- ![warning](images/macos_warn1.png)
8
-
9
- - You can either click "Show in Finder" or open Finder yourself and navigate to where the `frodo` binary is.
10
- - **Right click** on `frodo` and then click **Open**
11
-
12
- ![open](images/macos_warn2.png)
13
-
14
- - Another popup, like below, will show
15
-
16
- ![open2](images/macos_warn3.png)
17
-
18
- - Click **Open** in this popup. A terminal window will open and then exit (it will be quick).
19
- - Now you will be able to run `frodo` in the terminal
20
-
21
- ## Windows
22
- To be added...