adapt-cli 3.0.0 → 3.0.7
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/.bowerrc +2 -2
- package/.eslintignore +1 -1
- package/.eslintrc.json +14 -14
- package/.github/CONTRIBUTING.md +8 -0
- package/.github/ISSUE_TEMPLATE.md +17 -0
- package/.github/pull_request_template.md +25 -0
- package/.github/workflows/addtomainproject.yml +19 -0
- package/.github/workflows/releases.yml +25 -0
- package/.travis.yml +46 -46
- package/README.md +266 -266
- package/bin/adapt.js +3 -3
- package/json/help-create/component.json +9 -9
- package/json/help-create/course.json +9 -9
- package/json/help-create/question.json +9 -9
- package/json/help-create.json +12 -12
- package/json/help-devinstall.json +9 -9
- package/json/help-install.json +10 -10
- package/json/help-ls.json +7 -7
- package/json/help-register.json +7 -7
- package/json/help-rename.json +7 -7
- package/json/help-search.json +8 -8
- package/json/help-uninstall.json +7 -7
- package/json/help-unregister.json +8 -8
- package/json/help-update.json +12 -12
- package/json/help-version.json +7 -7
- package/json/help.json +19 -19
- package/lib/api.js +273 -260
- package/lib/cli.js +70 -69
- package/lib/commands/authenticate.js +18 -18
- package/lib/commands/create/component.js +64 -64
- package/lib/commands/create/course.js +26 -26
- package/lib/commands/create/question.js +18 -18
- package/lib/commands/create.js +94 -85
- package/lib/commands/devinstall.js +35 -35
- package/lib/commands/help.js +31 -31
- package/lib/commands/install.js +16 -16
- package/lib/commands/ls.js +35 -9
- package/lib/commands/register.js +11 -11
- package/lib/commands/rename.js +14 -14
- package/lib/commands/search.js +11 -11
- package/lib/commands/uninstall.js +9 -9
- package/lib/commands/unregister.js +12 -12
- package/lib/commands/update.js +12 -12
- package/lib/commands/version.js +13 -13
- package/lib/econnreset.js +8 -0
- package/lib/integration/AdaptFramework/build.js +42 -39
- package/lib/integration/AdaptFramework/clone.js +27 -27
- package/lib/integration/AdaptFramework/deleteSrcCore.js +9 -9
- package/lib/integration/AdaptFramework/deleteSrcCourse.js +9 -9
- package/lib/integration/AdaptFramework/download.js +21 -21
- package/lib/integration/AdaptFramework/erase.js +34 -34
- package/lib/integration/AdaptFramework/getLatestVersion.js +74 -79
- package/lib/integration/AdaptFramework/npmInstall.js +21 -21
- package/lib/integration/AdaptFramework.js +19 -19
- package/lib/integration/Plugin.js +404 -403
- package/lib/integration/PluginManagement/autenticate.js +47 -56
- package/lib/integration/PluginManagement/install.js +224 -222
- package/lib/integration/PluginManagement/print.js +52 -52
- package/lib/integration/PluginManagement/register.js +130 -130
- package/lib/integration/PluginManagement/rename.js +95 -101
- package/lib/integration/PluginManagement/schemas.js +8 -8
- package/lib/integration/PluginManagement/search.js +37 -46
- package/lib/integration/PluginManagement/uninstall.js +141 -141
- package/lib/integration/PluginManagement/unregister.js +91 -101
- package/lib/integration/PluginManagement/update.js +224 -224
- package/lib/integration/PluginManagement.js +21 -21
- package/lib/integration/Project.js +146 -146
- package/lib/integration/Target.js +299 -296
- package/lib/integration/getBowerRegistryConfig.js +34 -34
- package/lib/logger.js +28 -28
- package/lib/util/JSONReadValidate.js +34 -34
- package/lib/util/constants.js +38 -38
- package/lib/util/createPromptTask.js +7 -7
- package/lib/util/download.js +45 -45
- package/lib/util/errors.js +58 -58
- package/lib/util/extract.js +24 -24
- package/lib/util/getDirNameFromImportMeta.js +6 -6
- package/lib/util/promises.js +36 -36
- 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
|