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/.bowerrc CHANGED
@@ -1,3 +1,3 @@
1
- {
2
- "registry": "http://adapt-bower-repository.herokuapp.com/"
1
+ {
2
+ "registry": "http://adapt-bower-repository.herokuapp.com/"
3
3
  }
package/.eslintignore CHANGED
@@ -1 +1 @@
1
- node_modules
1
+ node_modules
package/.eslintrc.json CHANGED
@@ -1,14 +1,14 @@
1
- {
2
- "env": {
3
- "browser": false,
4
- "node": true,
5
- "commonjs": false,
6
- "es2020": true
7
- },
8
- "extends": [
9
- "standard"
10
- ],
11
- "parserOptions": {
12
- "ecmaVersion": 2020
13
- }
14
- }
1
+ {
2
+ "env": {
3
+ "browser": false,
4
+ "node": true,
5
+ "commonjs": false,
6
+ "es2020": true
7
+ },
8
+ "extends": [
9
+ "standard"
10
+ ],
11
+ "parserOptions": {
12
+ "ecmaVersion": 2020
13
+ }
14
+ }
@@ -0,0 +1,8 @@
1
+ We heartily welcome contributions to the Adapt project source code and community.
2
+ Here is a list of resources you may find useful:
3
+
4
+ * [Contributing to the Adapt project documentation](https://github.com/adaptlearning/adapt_framework/wiki/Contributing-to-the-Adapt-Project)
5
+ * [The Adapt framework wiki](https://github.com/adaptlearning/adapt_framework/wiki)
6
+ * [Gitter chat room](https://gitter.im/adaptlearning/adapt_framework)
7
+ * [General GitHub documentation](http://help.github.com/)
8
+ * [GitHub pull request documentation](http://help.github.com/send-pull-requests/)
@@ -0,0 +1,17 @@
1
+ ### Subject of the issue/enhancement/features
2
+ Describe your issue here.
3
+
4
+ ### Your environment
5
+ * version of the cli
6
+ * operating system(s)
7
+
8
+ ### Steps to reproduce
9
+ Tell us how to reproduce this issue.
10
+
11
+ ### Expected behaviour
12
+ Tell us what should happen
13
+
14
+ ### Actual behaviour
15
+ Tell us what happens instead
16
+
17
+ ### Screenshots (if you can)
@@ -0,0 +1,25 @@
1
+ [//]: # (Please title your PR according to eslint commit conventions)
2
+ [//]: # (See https://github.com/conventional-changelog/conventional-changelog/tree/master/packages/conventional-changelog-eslint#eslint-convention for details)
3
+
4
+ [//]: # (Link the PR to the original issue)
5
+
6
+ [//]: # (Delete Fix, Update, New and/or Breaking sections as appropriate)
7
+ ### Fix
8
+ * A sentence describing each fix
9
+
10
+ ### Update
11
+ * A sentence describing each udpate
12
+
13
+ ### New
14
+ * A sentence describing each new feature
15
+
16
+ ### Breaking
17
+ * A sentence describing each breaking change
18
+
19
+ [//]: # (List appropriate steps for testing if needed)
20
+ ### Testing
21
+ 1. Steps for testing
22
+
23
+ [//]: # (Mention any other dependencies)
24
+
25
+
@@ -0,0 +1,19 @@
1
+ name: Add to main project
2
+
3
+ on:
4
+ issues:
5
+ types:
6
+ - opened
7
+ pull_request:
8
+ types:
9
+ - opened
10
+
11
+ jobs:
12
+ add-to-project:
13
+ name: Add to main project
14
+ runs-on: ubuntu-latest
15
+ steps:
16
+ - uses: actions/add-to-project@v0.1.0
17
+ with:
18
+ project-url: https://github.com/orgs/adaptlearning/projects/2
19
+ github-token: ${{ secrets.ADDTOPROJECT_TOKEN }}
@@ -0,0 +1,25 @@
1
+ name: Release
2
+ on:
3
+ push:
4
+ branches:
5
+ - master
6
+ jobs:
7
+ release:
8
+ name: Release
9
+ runs-on: ubuntu-latest
10
+ steps:
11
+ - name: Checkout
12
+ uses: actions/checkout@v2
13
+ with:
14
+ fetch-depth: 0
15
+ - name: Setup Node.js
16
+ uses: actions/setup-node@v2
17
+ with:
18
+ node-version: 'lts/*'
19
+ - name: Install dependencies
20
+ run: npm ci
21
+ - name: Release
22
+ env:
23
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
24
+ NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
25
+ run: npx semantic-release
package/.travis.yml CHANGED
@@ -1,46 +1,46 @@
1
- ---
2
- language: node_js
3
- node_js:
4
- - "lts/*"
5
-
6
- sudo: false
7
-
8
- env:
9
- - CXX=g++-4.8
10
-
11
- addons:
12
- apt:
13
- sources:
14
- - ubuntu-toolchain-r-test
15
- packages:
16
- - g++-4.8
17
-
18
- branches:
19
- only:
20
- - master
21
- - develop
22
-
23
- git:
24
- depth: 10
25
-
26
- cache:
27
- directories:
28
- - node_modules
29
-
30
- before_script:
31
- - npm install -g grunt-cli
32
-
33
- install:
34
- - npm config set spin false
35
- - npm install
36
-
37
- matrix:
38
- fast_finish: true
39
-
40
- notifications:
41
- webhooks:
42
- urls:
43
- - https://webhooks.gitter.im/e/2b42e20cf5f5550c1dc0
44
- on_success: change # options: [always|never|change] default: always
45
- on_failure: always # options: [always|never|change] default: always
46
- on_start: never # options: [always|never|change] default: always
1
+ ---
2
+ language: node_js
3
+ node_js:
4
+ - "lts/*"
5
+
6
+ sudo: false
7
+
8
+ env:
9
+ - CXX=g++-4.8
10
+
11
+ addons:
12
+ apt:
13
+ sources:
14
+ - ubuntu-toolchain-r-test
15
+ packages:
16
+ - g++-4.8
17
+
18
+ branches:
19
+ only:
20
+ - master
21
+ - develop
22
+
23
+ git:
24
+ depth: 10
25
+
26
+ cache:
27
+ directories:
28
+ - node_modules
29
+
30
+ before_script:
31
+ - npm install -g grunt-cli
32
+
33
+ install:
34
+ - npm config set spin false
35
+ - npm install
36
+
37
+ matrix:
38
+ fast_finish: true
39
+
40
+ notifications:
41
+ webhooks:
42
+ urls:
43
+ - https://webhooks.gitter.im/e/2b42e20cf5f5550c1dc0
44
+ on_success: change # options: [always|never|change] default: always
45
+ on_failure: always # options: [always|never|change] default: always
46
+ on_start: never # options: [always|never|change] default: always