adapt_framework
adapt_framework copied to clipboard
v6 proposal
An outline of the changes to be included in the next major release of Adapt Framework.
1. npm modules to replace bower modules
This will introduce plugin dependencies and move away from deprecated bower infrastructure.
Prototype: issue/2526
How
- Drop
src/core, move code toadapt-contrib-core - Add
package.jsonto each plugin - Drop
src/coursein favour ofbuild/course - Add
src/package.jsonandsrc/index.js- Creates a
src/node_modules/folder separate fromnode_modules/meaning that the executable code (grunt etc) is separate from the front-end code (adapt)
- Creates a
Outstanding works
- Zip uploads to the AAT
- Will not currently work with
node_modulesasnpmmodules must be installed - Need to develop a solution: local linked plugins / overrides folder / other
- Will not currently work with
- Should move from
libraries/to installed npm dependencies (jquery, backbone, underscore etc) - Cannot allow npm scripts in the
src/node_modulesfolder as will allow plugins to execute custom code on the AAT when installed or uninstalled - adapt-cli needs modifying to accommodate
npminstead ofbower - Develop compile-by-plugin-type behaviour to mimic current practise.
less,templates,required,fontsandlibrariesfolders should be processed in plugin type order. In the existing prototype they are processed alphabetically. - Compiler should ignore non-adapt
node_modules/ - Look at and document private npm registries and namespaces
2. navigation item management
To provide a formal API for adding items to the navigation bar and provide a method of configuring their order.
PR: #2864
Outstanding works
- Develop json configuration standard
- Migrate existing extensions to use new API
v6 might also be a good opportunity to sort out the whole _isA11yCompletionDescriptionEnabled vs _disableAccessibilityState thing - see adaptlearning/adapt-contrib-core#186 and adaptlearning/adapt-contrib-core#190
and maybe adaptlearning/adapt_framework#1743 too?