state management and application framework for vuejs
npm install vuecommanderSee VueCommander.com for documentation and examples.
VueCommander is a Vuejs application framework utilizing the classic (GoF) command and observer design patterns, as well as dependency injection (which comes free with JavaScript) for easy and opinionated management of large applications. It provides a clear separation of concerns. VueCommander lets you parameterize methods with different requests, delay or queue a request execution, and support undoable operations.
Undoing is historically implemented using either the command or memento design patterns. The command pattern has the benefit of being lighter weight (from a storage standpoint) because you can choose what you store and how to undo it.
See the examples directory for a list of examples.
Clone the repo and run
```
yarn build:examples
Compile the source
``
yarn build
Run the tests
``
yarn test
Context: A Context describes commands you would like to map to what events.
Commands: A class with an execute method that cannot receive any parameters. It is a self contained unit of execution. You can use the command class to do all your business logic. You can inject any models you want to change into this command. Those models should be object literals which will act as singletons.
Models`: Are object literals which act as singletons.