Skip to content

Commit e5b8a4f

Browse files
authored
Rewrite and added AAT API (#154)
1 parent 5b986ff commit e5b8a4f

117 files changed

Lines changed: 5006 additions & 10559 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.eslintignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
node_modules

.eslintrc.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +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+
}

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,6 @@ src
44
bower.json
55
adapt.json
66
.idea
7-
.idea/workspace.xml
7+
.idea/workspace.xml
8+
my-adapt-course
9+
test-plugin

README.md

Lines changed: 150 additions & 150 deletions
Large diffs are not rendered by default.

TODO.md

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# TODO
2+
3+
1. Isolate bower as best possible
4+
2. Refactor
5+
* ~~commands/build~~
6+
* ~~commands/help~~
7+
* ~~commands/uninstall~~
8+
* ~~commands/update~~
9+
* ~~commands/create/component~~
10+
* ~~commands/create/question~~
11+
* ~~commands/register~~
12+
* ~~commands/rename~~
13+
* ~~commands/search~~
14+
* ~~commands/unregister~~
15+
* ~~commands/install~~
16+
* ~~commands/create~~
17+
* ~~commands/create/course~~
18+
* ~~commands/devinstall~~
19+
* ~~commands/ls~~
20+
* ~~commands/version~~
21+
3. Final bits
22+
* ~~Duplicates plugin names in install, update, uninstall~~
23+
* ~~Tests~~
24+
* ~~Bower config / multi registry search~~
25+
* ~~npm modules~~
26+
4. Ensure api is working
27+
* ~~merge all Targets into Plugin~~
28+
* ~~rewrite update task to mirror install task code~~
29+
* ~~add path install to bower and clone install~~
30+
* ~~add schemas support~~
31+
* ~~add Plugin.fromPath()~~
32+
* create api functions
33+
* non-interactive / interactivity
34+
* json output is good
35+
* good error output
36+
5. ~~Get tests working against new code~~

bin/adapt

Lines changed: 0 additions & 3 deletions
This file was deleted.

bin/adapt.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/usr/bin/env node
2+
import cli from '../lib/cli.js'
3+
cli.withOptions().execute()

gruntfile.js

Lines changed: 0 additions & 18 deletions
This file was deleted.

json/help-create.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
],
77
"commands": {
88
"course": "Create new adapt course",
9-
"component": "Create new component using template adapt-component"
9+
"component": "Create new component using template adapt-component",
10+
"question": "Create new question component using template adapt-questionComponent"
1011
}
1112
}

json/help-create/question.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"command": "create question",
3+
"description": "create new question component",
4+
"usage": [
5+
"create question",
6+
"create question <component-name>",
7+
"create question <component-name> <branch-name>"
8+
]
9+
}

0 commit comments

Comments
 (0)