Skip to content

Commit

Permalink
Rewrite and added AAT API (#154)
Browse files Browse the repository at this point in the history
  • Loading branch information
oliverfoster authored Mar 17, 2022
1 parent 5b986ff commit e5b8a4f
Show file tree
Hide file tree
Showing 117 changed files with 5,006 additions and 10,559 deletions.
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules
14 changes: 14 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"env": {
"browser": false,
"node": true,
"commonjs": false,
"es2020": true
},
"extends": [
"standard"
],
"parserOptions": {
"ecmaVersion": 2020
}
}
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,6 @@ src
bower.json
adapt.json
.idea
.idea/workspace.xml
.idea/workspace.xml
my-adapt-course
test-plugin
300 changes: 150 additions & 150 deletions README.md

Large diffs are not rendered by default.

36 changes: 36 additions & 0 deletions TODO.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# TODO

1. Isolate bower as best possible
2. Refactor
* ~~commands/build~~
* ~~commands/help~~
* ~~commands/uninstall~~
* ~~commands/update~~
* ~~commands/create/component~~
* ~~commands/create/question~~
* ~~commands/register~~
* ~~commands/rename~~
* ~~commands/search~~
* ~~commands/unregister~~
* ~~commands/install~~
* ~~commands/create~~
* ~~commands/create/course~~
* ~~commands/devinstall~~
* ~~commands/ls~~
* ~~commands/version~~
3. Final bits
* ~~Duplicates plugin names in install, update, uninstall~~
* ~~Tests~~
* ~~Bower config / multi registry search~~
* ~~npm modules~~
4. Ensure api is working
* ~~merge all Targets into Plugin~~
* ~~rewrite update task to mirror install task code~~
* ~~add path install to bower and clone install~~
* ~~add schemas support~~
* ~~add Plugin.fromPath()~~
* create api functions
* non-interactive / interactivity
* json output is good
* good error output
5. ~~Get tests working against new code~~
3 changes: 0 additions & 3 deletions bin/adapt

This file was deleted.

3 changes: 3 additions & 0 deletions bin/adapt.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/usr/bin/env node
import cli from '../lib/cli.js'
cli.withOptions().execute()
18 changes: 0 additions & 18 deletions gruntfile.js

This file was deleted.

3 changes: 2 additions & 1 deletion json/help-create.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
],
"commands": {
"course": "Create new adapt course",
"component": "Create new component using template adapt-component"
"component": "Create new component using template adapt-component",
"question": "Create new question component using template adapt-questionComponent"
}
}
9 changes: 9 additions & 0 deletions json/help-create/question.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"command": "create question",
"description": "create new question component",
"usage": [
"create question",
"create question <component-name>",
"create question <component-name> <branch-name>"
]
}
19 changes: 0 additions & 19 deletions lib/AdaptConsoleApplication.js

This file was deleted.

19 changes: 0 additions & 19 deletions lib/CommandParser.js

This file was deleted.

16 changes: 0 additions & 16 deletions lib/CommandTranslator.js

This file was deleted.

10 changes: 0 additions & 10 deletions lib/ConsoleRenderer.js

This file was deleted.

68 changes: 0 additions & 68 deletions lib/Constants.js

This file was deleted.

40 changes: 0 additions & 40 deletions lib/JsonLoader.js

This file was deleted.

21 changes: 0 additions & 21 deletions lib/JsonWriter.js

This file was deleted.

41 changes: 0 additions & 41 deletions lib/PackageMeta.js

This file was deleted.

Loading

0 comments on commit e5b8a4f

Please sign in to comment.