adapt-cli 3.0.2 → 3.0.6

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 (78) hide show
  1. package/.bowerrc +2 -2
  2. package/.eslintignore +1 -1
  3. package/.eslintrc.json +14 -14
  4. package/.github/CONTRIBUTING.md +8 -0
  5. package/.github/ISSUE_TEMPLATE.md +17 -0
  6. package/.github/pull_request_template.md +25 -0
  7. package/.github/workflows/addtomainproject.yml +19 -0
  8. package/.github/workflows/releases.yml +25 -0
  9. package/.travis.yml +46 -46
  10. package/README.md +266 -266
  11. package/bin/adapt.js +3 -3
  12. package/json/help-create/component.json +9 -9
  13. package/json/help-create/course.json +9 -9
  14. package/json/help-create/question.json +9 -9
  15. package/json/help-create.json +12 -12
  16. package/json/help-devinstall.json +9 -9
  17. package/json/help-install.json +10 -10
  18. package/json/help-ls.json +7 -7
  19. package/json/help-register.json +7 -7
  20. package/json/help-rename.json +7 -7
  21. package/json/help-search.json +8 -8
  22. package/json/help-uninstall.json +7 -7
  23. package/json/help-unregister.json +8 -8
  24. package/json/help-update.json +12 -12
  25. package/json/help-version.json +7 -7
  26. package/json/help.json +19 -19
  27. package/lib/api.js +260 -260
  28. package/lib/cli.js +69 -69
  29. package/lib/commands/authenticate.js +18 -18
  30. package/lib/commands/create/component.js +64 -64
  31. package/lib/commands/create/course.js +26 -26
  32. package/lib/commands/create/question.js +18 -18
  33. package/lib/commands/create.js +94 -85
  34. package/lib/commands/devinstall.js +35 -35
  35. package/lib/commands/help.js +31 -31
  36. package/lib/commands/install.js +16 -16
  37. package/lib/commands/ls.js +9 -9
  38. package/lib/commands/register.js +11 -11
  39. package/lib/commands/rename.js +14 -14
  40. package/lib/commands/search.js +11 -11
  41. package/lib/commands/uninstall.js +9 -9
  42. package/lib/commands/unregister.js +12 -12
  43. package/lib/commands/update.js +12 -12
  44. package/lib/commands/version.js +13 -13
  45. package/lib/integration/AdaptFramework/build.js +42 -42
  46. package/lib/integration/AdaptFramework/clone.js +27 -27
  47. package/lib/integration/AdaptFramework/deleteSrcCore.js +9 -9
  48. package/lib/integration/AdaptFramework/deleteSrcCourse.js +9 -9
  49. package/lib/integration/AdaptFramework/download.js +21 -21
  50. package/lib/integration/AdaptFramework/erase.js +34 -34
  51. package/lib/integration/AdaptFramework/getLatestVersion.js +79 -79
  52. package/lib/integration/AdaptFramework/npmInstall.js +21 -21
  53. package/lib/integration/AdaptFramework.js +19 -19
  54. package/lib/integration/Plugin.js +404 -404
  55. package/lib/integration/PluginManagement/autenticate.js +56 -56
  56. package/lib/integration/PluginManagement/install.js +224 -224
  57. package/lib/integration/PluginManagement/print.js +52 -52
  58. package/lib/integration/PluginManagement/register.js +130 -130
  59. package/lib/integration/PluginManagement/rename.js +101 -101
  60. package/lib/integration/PluginManagement/schemas.js +8 -8
  61. package/lib/integration/PluginManagement/search.js +46 -46
  62. package/lib/integration/PluginManagement/uninstall.js +141 -141
  63. package/lib/integration/PluginManagement/unregister.js +101 -101
  64. package/lib/integration/PluginManagement/update.js +224 -224
  65. package/lib/integration/PluginManagement.js +21 -21
  66. package/lib/integration/Project.js +146 -146
  67. package/lib/integration/Target.js +299 -299
  68. package/lib/integration/getBowerRegistryConfig.js +34 -34
  69. package/lib/logger.js +28 -28
  70. package/lib/util/JSONReadValidate.js +34 -34
  71. package/lib/util/constants.js +38 -38
  72. package/lib/util/createPromptTask.js +7 -7
  73. package/lib/util/download.js +45 -45
  74. package/lib/util/errors.js +58 -58
  75. package/lib/util/extract.js +24 -24
  76. package/lib/util/getDirNameFromImportMeta.js +6 -6
  77. package/lib/util/promises.js +36 -36
  78. package/package.json +74 -40
package/package.json CHANGED
@@ -1,40 +1,74 @@
1
- {
2
- "name": "adapt-cli",
3
- "version": "3.0.2",
4
- "description": "Command line tools for Adapt",
5
- "main": "./lib/api.js",
6
- "type": "module",
7
- "dependencies": {
8
- "async": "^3.2.3",
9
- "bower": "^1.8.13",
10
- "bower-endpoint-parser": "^0.2.2",
11
- "chalk": "^2.4.1",
12
- "decompress": "^4.2.1",
13
- "download": "^7.1.0",
14
- "find-up": "^6.2.0",
15
- "fs-extra": "^10.0.0",
16
- "globs": "^0.1.4",
17
- "inquirer": "^7.3.3",
18
- "json-lint": "^0.1.0",
19
- "lodash-es": "^4.17.21",
20
- "parse-github-url": "^1.0.2",
21
- "request": "^2.88.0",
22
- "semver": "^7.3.5",
23
- "speakingurl": "^14.0.1",
24
- "url-join": "^4.0.0",
25
- "uuid": "^3.3.2"
26
- },
27
- "repository": "http://github.com/adaptlearning/adapt-cli",
28
- "license": "GPL-3.0",
29
- "preferGlobal": true,
30
- "bin": {
31
- "adapt": "./bin/adapt.js"
32
- },
33
- "devDependencies": {
34
- "eslint": "^7.31.0",
35
- "eslint-config-standard": "^16.0.3",
36
- "eslint-plugin-import": "^2.23.4",
37
- "eslint-plugin-node": "^11.1.0",
38
- "eslint-plugin-promise": "^5.1.0"
39
- }
40
- }
1
+ {
2
+ "name": "adapt-cli",
3
+ "version": "3.0.6",
4
+ "description": "Command line tools for Adapt",
5
+ "main": "./lib/api.js",
6
+ "type": "module",
7
+ "dependencies": {
8
+ "async": "^3.2.3",
9
+ "bower": "^1.8.13",
10
+ "bower-endpoint-parser": "^0.2.2",
11
+ "chalk": "^2.4.1",
12
+ "decompress": "^4.2.1",
13
+ "download": "^7.1.0",
14
+ "find-up": "^6.2.0",
15
+ "fs-extra": "^10.0.0",
16
+ "globs": "^0.1.4",
17
+ "inquirer": "^7.3.3",
18
+ "json-lint": "^0.1.0",
19
+ "lodash-es": "^4.17.21",
20
+ "parse-github-url": "^1.0.2",
21
+ "request": "^2.88.0",
22
+ "semver": "^7.3.5",
23
+ "speakingurl": "^14.0.1",
24
+ "url-join": "^4.0.0",
25
+ "uuid": "^3.3.2"
26
+ },
27
+ "license": "GPL-3.0",
28
+ "preferGlobal": true,
29
+ "bin": {
30
+ "adapt": "./bin/adapt.js"
31
+ },
32
+ "devDependencies": {
33
+ "eslint": "^7.31.0",
34
+ "eslint-config-standard": "^16.0.3",
35
+ "eslint-plugin-import": "^2.23.4",
36
+ "eslint-plugin-node": "^11.1.0",
37
+ "eslint-plugin-promise": "^5.1.0",
38
+ "@semantic-release/commit-analyzer": "^9.0.2",
39
+ "@semantic-release/git": "^10.0.1",
40
+ "@semantic-release/github": "^8.0.5",
41
+ "@semantic-release/npm": "^9.0.1",
42
+ "@semantic-release/release-notes-generator": "^10.0.3",
43
+ "conventional-changelog-eslint": "^3.0.9",
44
+ "semantic-release": "^19.0.3"
45
+ },
46
+ "release": {
47
+ "plugins": [
48
+ [
49
+ "@semantic-release/commit-analyzer",
50
+ {
51
+ "preset": "eslint"
52
+ }
53
+ ],
54
+ [
55
+ "@semantic-release/release-notes-generator",
56
+ {
57
+ "preset": "eslint"
58
+ }
59
+ ],
60
+ "@semantic-release/npm",
61
+ "@semantic-release/github",
62
+ [
63
+ "@semantic-release/git",
64
+ {
65
+ "assets": [
66
+ "package.json",
67
+ "bower.json"
68
+ ],
69
+ "message": "Chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"
70
+ }
71
+ ]
72
+ ]
73
+ }
74
+ }