adapt-cli 2.1.11 → 3.0.0
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 -0
- package/.eslintrc.json +14 -0
- package/.travis.yml +46 -46
- package/README.md +266 -266
- package/bin/adapt.js +3 -0
- package/json/help-create/component.json +9 -9
- package/json/help-create/course.json +9 -9
- package/json/help-create/question.json +9 -0
- package/json/help-create.json +12 -11
- 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 +260 -0
- package/lib/cli.js +69 -52
- package/lib/commands/authenticate.js +18 -0
- package/lib/commands/create/component.js +64 -81
- package/lib/commands/create/course.js +26 -87
- package/lib/commands/create/question.js +18 -0
- package/lib/commands/create.js +85 -104
- package/lib/commands/devinstall.js +35 -97
- package/lib/commands/help.js +31 -52
- package/lib/commands/install.js +16 -856
- package/lib/commands/ls.js +9 -24
- package/lib/commands/register.js +11 -201
- package/lib/commands/rename.js +14 -138
- package/lib/commands/search.js +11 -29
- package/lib/commands/uninstall.js +9 -136
- package/lib/commands/unregister.js +12 -105
- package/lib/commands/update.js +12 -889
- package/lib/commands/version.js +13 -15
- package/lib/integration/AdaptFramework/build.js +39 -0
- package/lib/integration/AdaptFramework/clone.js +27 -0
- package/lib/integration/AdaptFramework/deleteSrcCore.js +9 -0
- package/lib/integration/AdaptFramework/deleteSrcCourse.js +9 -0
- package/lib/integration/AdaptFramework/download.js +21 -0
- package/lib/integration/AdaptFramework/erase.js +34 -0
- package/lib/integration/AdaptFramework/getLatestVersion.js +79 -0
- package/lib/integration/AdaptFramework/npmInstall.js +21 -0
- package/lib/integration/AdaptFramework.js +19 -0
- package/lib/integration/Plugin.js +403 -0
- package/lib/integration/PluginManagement/autenticate.js +56 -0
- package/lib/integration/PluginManagement/install.js +222 -0
- package/lib/integration/PluginManagement/print.js +52 -0
- package/lib/integration/PluginManagement/register.js +130 -0
- package/lib/integration/PluginManagement/rename.js +101 -0
- package/lib/integration/PluginManagement/schemas.js +8 -0
- package/lib/integration/PluginManagement/search.js +46 -0
- package/lib/integration/PluginManagement/uninstall.js +141 -0
- package/lib/integration/PluginManagement/unregister.js +101 -0
- package/lib/integration/PluginManagement/update.js +224 -0
- package/lib/integration/PluginManagement.js +21 -0
- package/lib/integration/Project.js +146 -0
- package/lib/integration/Target.js +296 -0
- package/lib/integration/getBowerRegistryConfig.js +34 -0
- package/lib/logger.js +28 -0
- package/lib/util/JSONReadValidate.js +34 -0
- package/lib/util/constants.js +38 -0
- package/lib/util/createPromptTask.js +7 -0
- package/lib/util/download.js +45 -0
- package/lib/util/errors.js +58 -0
- package/lib/util/extract.js +24 -0
- package/lib/util/getDirNameFromImportMeta.js +6 -0
- package/lib/util/promises.js +36 -0
- package/package.json +40 -49
- package/TESTING.md +0 -25
- package/bin/adapt +0 -3
- package/gruntfile.js +0 -18
- package/lib/AdaptConsoleApplication.js +0 -19
- package/lib/CommandParser.js +0 -19
- package/lib/CommandTranslator.js +0 -15
- package/lib/ConsoleRenderer.js +0 -10
- package/lib/Constants.js +0 -69
- package/lib/JsonLoader.js +0 -40
- package/lib/JsonWriter.js +0 -21
- package/lib/PackageMeta.js +0 -41
- package/lib/Plugin.js +0 -53
- package/lib/PluginTypeResolver.js +0 -47
- package/lib/Project.js +0 -89
- package/lib/RendererHelpers.js +0 -51
- package/lib/RepositoryDownloader.js +0 -64
- package/lib/Slug.js +0 -5
- package/lib/VersionChecker.js +0 -7
- package/lib/commands/create/index.js +0 -6
- package/lib/commands/index.js +0 -16
- package/lib/commands/install/InstallLog.js +0 -32
- package/lib/commands/install/InstallTarget.js +0 -259
- package/lib/commands/install/extend.js +0 -31
- package/lib/download.js +0 -101
- package/lib/errors.js +0 -58
- package/lib/promise/authenticate.js +0 -64
- package/lib/promise/build.js +0 -20
- package/lib/promise/cloneInstall.js +0 -35
- package/lib/promise/confirmBuild.js +0 -7
- package/lib/promise/exec.js +0 -39
- package/lib/promise/getRepository.js +0 -26
- package/lib/promise/highest.js +0 -109
- package/lib/promise/install.js +0 -31
- package/lib/promise/installAdaptDependencies.js +0 -30
- package/lib/promise/installNodeDependencies.js +0 -28
- package/lib/promise/removeTemporaryDownload.js +0 -8
- package/lib/promise/replaceTextContent.js +0 -10
- package/lib/promise/uninstallPackage.js +0 -15
- package/lib/promise/update.js +0 -33
- package/lib/promise/util.js +0 -16
- package/test/fixtures/adapt-with-plugins.json +0 -6
- package/test/specs/command_translation_concerns.js +0 -13
- package/test/specs/create_command_concerns.js +0 -22
- package/test/specs/create_concerns.js +0 -30
- package/test/specs/install_concerns.js +0 -31
- package/test/specs/installing_compatible_plugins_concerns.js +0 -126
- package/test/specs/installing_incompatible_plugins_concerns.js +0 -103
- package/test/specs/ls_concerns.js +0 -28
- package/test/specs/plugin_name_concerns.js +0 -82
- package/test/specs/project_concerns.js +0 -128
- package/test/specs/registration_concerns.js +0 -31
- package/test/specs/repository_downloader_concerns.js +0 -55
- package/test/specs/search_concerns.js +0 -30
- package/test/specs/type_resolution_concerns.js +0 -71
- package/test/specs/uninstall_command_concerns.js +0 -64
- package/test/specs/uninstall_concerns.js +0 -31
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
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
node_modules
|
package/.eslintrc.json
ADDED
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
|