Skip to content
This repository has been archived by the owner on Jul 30, 2018. It is now read-only.

Commit

Permalink
Initial Application State Stores Implementation (#137)
Browse files Browse the repository at this point in the history
* reset the repostory structure

* more reconfiguration

* Add basic application store

* store unit tests

* unit tests

* default operations

* README

* Process concept

* More work on processes and tests

* update readme on changes to process

* update dojo dependencies to ~0.1.0

* README updates

* README updates

* lower case process.ts

* update code examples

* add byId function in examples

* Optional invalidate argument on store.apply

* Add operations, apply and get to ProcessResult

* Add undo manager to provide application wide undos

* Uppercase Store.ts

* import using the correct case

* Unit tests for undo manager

* clean up

* More README

* explain the flow control when executing processes

* Default segements that do not exist assuming that numeric segments are an array otherwise empty object

* Support creating decorators from a callback and a createProcess factory that has preapplied callbacks

* Add global undo manager that provides an undo function and decorator that can be used across process

* Updated README

* Upgrade to intern4

* package-lock.json

* case sensitivity again
  • Loading branch information
agubler authored Nov 7, 2017
1 parent b736fcd commit 63a6961
Show file tree
Hide file tree
Showing 62 changed files with 8,859 additions and 10,421 deletions.
5 changes: 2 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,9 @@ install:
- travis_retry npm install
script:
- grunt
- grunt intern:node --combined
- grunt intern:browserstack --combined
- grunt remapIstanbul:ci
- grunt intern:browserstack --test-reporter
- grunt uploadCoverage
- grunt dist
- grunt doc
notifications:
slack:
Expand Down
18 changes: 2 additions & 16 deletions Gruntfile.js
Original file line number Diff line number Diff line change
@@ -1,23 +1,9 @@
module.exports = function (grunt) {
const gruntConfig = {
require('grunt-dojo2').initConfig(grunt, {
typedoc: {
options: {
ignoreCompilerErrors: true // Remove this once compile errors are resolved
}
},

watch: {
dev: {
files: '**/*.ts',
tasks: ['dev'],
options: {
spawn: false
}
}
}
};
grunt.initConfig(gruntConfig);
require('grunt-dojo2').initConfig(grunt, gruntConfig);

grunt.loadNpmTasks('grunt-contrib-watch');
});
};
656 changes: 283 additions & 373 deletions README.md

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion index.js

This file was deleted.

64 changes: 64 additions & 0 deletions intern.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
{
"capabilities": {
"project": "Dojo 2",
"name": "@dojo/stores"
},
"environments": [
{ "browserName": "node" }
],
"suites": [
"./_build/tests/unit/all.js"
],
"functionalSuites": [
"./_build/tests/functional/all.js"
],
"loader": {
"script": "dojo2",
"options": {
"packages": [
{ "name": "src", "location": "_build/src" },
{ "name": "tests", "location": "_build/tests" },
{ "name": "@dojo", "location": "node_modules/@dojo" },
{ "name": "sinon", "location": "node_modules/sinon/pkg", "main": "sinon" }
]
}
},
"coverage": [
"./_build/src/**/*.js"
],
"configs": {
"local": {
"tunnel": "selenium",
"environments+": [
{ "browserName": "chrome" }
]
},
"browserstack": {
"tunnel": "browserstack",
"capabilities+": {
"browserstack.debug": false
},
"environments+": [
{ "browserName": "edge" },
{ "browserName": "chrome", "platform": "WINDOWS" },
{ "browserName": "firefox", "os": "WINDOWS", "os_version": "10" },
{ "browserName": "safari", "version": "9.1", "platform": "MAC" },
{ "browserName": "iPhone", "version": "9.1" }
]
},
"saucelabs": {
"tunnel": "saucelabs",
"capabilities+": {
"fixSessionCapabilities": false
},

"defaultTimeout": 10000,
"environments+": [
{ "browserName": "internet explorer", "version": [ "11.0" ], "platform": "Windows 7" },
{ "browserName": "firefox", "version": "43", "platform": "Windows 10" },
{ "browserName": "chrome", "platform": "Windows 10" }
],
"maxConcurrency": 4
}
}
}
Loading

0 comments on commit 63a6961

Please sign in to comment.