Skip to content

Commit

Permalink
update union-type name
Browse files Browse the repository at this point in the history
  • Loading branch information
raine committed Jun 25, 2015
1 parent d021ba7 commit 11ab96f
Show file tree
Hide file tree
Showing 14 changed files with 29 additions and 29 deletions.
4 changes: 2 additions & 2 deletions README.md
Expand Up @@ -14,7 +14,7 @@ Work in progress.
* State should be easily inspectable for debugging and serialization. Also,
time travel.
* Minimalism and simplicity are center pieces in every used library.
* Actions should be expressed as [union types](https://github.com/paldepind/union-type-js).
* Actions should be expressed as [union types](https://github.com/paldepind/union-type).
* Everything should be modular. Ideally this GitHub repository should contain
as little code as possible.

Expand All @@ -27,7 +27,7 @@ only pure functions.
# What it is

[Ramda](http://ramdajs.com/) +
[union-type-js](https://github.com/paldepind/union-type-js) +
[union-type](https://github.com/paldepind/union-type) +
[Flyd](https://github.com/paldepind/flyd) +
[Snabbdom](https://github.com/paldepind/snabbdom) + a lot of inspiration from
[Elm](http://elm-lang.org/) = a functional JavaScript frontend framework for
Expand Down
4 changes: 2 additions & 2 deletions examples/counters/1/build.js
Expand Up @@ -3,7 +3,7 @@
'use strict';

var R = require('ramda');
var Type = require('union-type-js');
var Type = require('union-type');
var flyd = require('flyd');
var stream = flyd.stream;
var patch = require('snabbdom').init([require('snabbdom/modules/class'), require('snabbdom/modules/props'), require('snabbdom/modules/eventlisteners')]);
Expand Down Expand Up @@ -46,7 +46,7 @@ window.addEventListener('DOMContentLoaded', function () {
flyd.scan(patch, container, vnode$);
});

},{"flyd":2,"ramda":3,"snabbdom":15,"snabbdom/h":10,"snabbdom/modules/class":12,"snabbdom/modules/eventlisteners":13,"snabbdom/modules/props":14,"union-type-js":17}],2:[function(require,module,exports){
},{"flyd":2,"ramda":3,"snabbdom":15,"snabbdom/h":10,"snabbdom/modules/class":12,"snabbdom/modules/eventlisteners":13,"snabbdom/modules/props":14,"union-type":17}],2:[function(require,module,exports){
(function (root, factory) {
if (typeof define === 'function' && define.amd) {
define([], factory); // AMD. Register as an anonymous module.
Expand Down
8 changes: 4 additions & 4 deletions examples/counters/2/build.js
Expand Up @@ -3,7 +3,7 @@
'use strict';

var R = require('ramda');
var Type = require('union-type-js');
var Type = require('union-type');
var h = require('snabbdom/h');

// Model
Expand Down Expand Up @@ -36,15 +36,15 @@ var countStyle = { fontSize: '20px',

module.exports = { init: init, Action: Action, update: update, view: view };

},{"ramda":6,"snabbdom/h":13,"union-type-js":20}],2:[function(require,module,exports){
},{"ramda":6,"snabbdom/h":13,"union-type":20}],2:[function(require,module,exports){
/* jshint esnext: true */
'use strict';

var R = require('ramda');
var flyd = require('flyd');
var stream = flyd.stream;
var forwardTo = require('flyd-forwardto');
var Type = require('union-type-js');
var Type = require('union-type');
var patch = require('snabbdom').init([require('snabbdom/modules/class'), require('snabbdom/modules/props'), require('snabbdom/modules/eventlisteners')]);
var h = require('snabbdom/h');

Expand Down Expand Up @@ -94,7 +94,7 @@ window.addEventListener('DOMContentLoaded', function () {
flyd.scan(patch, container, vnode$);
});

},{"./counter.js":1,"flyd":5,"flyd-forwardto":3,"ramda":6,"snabbdom":18,"snabbdom/h":13,"snabbdom/modules/class":15,"snabbdom/modules/eventlisteners":16,"snabbdom/modules/props":17,"union-type-js":20}],3:[function(require,module,exports){
},{"./counter.js":1,"flyd":5,"flyd-forwardto":3,"ramda":6,"snabbdom":18,"snabbdom/h":13,"snabbdom/modules/class":15,"snabbdom/modules/eventlisteners":16,"snabbdom/modules/props":17,"union-type":20}],3:[function(require,module,exports){
var flyd = require('flyd');

module.exports = flyd.curryN(2, function(targ, fn) {
Expand Down
8 changes: 4 additions & 4 deletions examples/counters/3/build.js
Expand Up @@ -3,7 +3,7 @@
'use strict';

var R = require('ramda');
var Type = require('union-type-js');
var Type = require('union-type');
var h = require('snabbdom/h');

// Model
Expand Down Expand Up @@ -36,7 +36,7 @@ var countStyle = { fontSize: '20px',

module.exports = { init: init, Action: Action, update: update, view: view };

},{"ramda":6,"snabbdom/h":13,"union-type-js":20}],2:[function(require,module,exports){
},{"ramda":6,"snabbdom/h":13,"union-type":20}],2:[function(require,module,exports){
/* jshint esnext: true */
'use strict';

Expand All @@ -46,7 +46,7 @@ var R = require('ramda');
var flyd = require('flyd');
var stream = flyd.stream;
var forwardTo = require('flyd-forwardto');
var Type = require('union-type-js');
var Type = require('union-type');
var patch = require('snabbdom').init([require('snabbdom/modules/class'), require('snabbdom/modules/props'), require('snabbdom/modules/eventlisteners')]);
var h = require('snabbdom/h');

Expand Down Expand Up @@ -117,7 +117,7 @@ window.addEventListener('DOMContentLoaded', function () {
flyd.scan(patch, container, vnode$);
});

},{"./counter.js":1,"flyd":5,"flyd-forwardto":3,"ramda":6,"snabbdom":18,"snabbdom/h":13,"snabbdom/modules/class":15,"snabbdom/modules/eventlisteners":16,"snabbdom/modules/props":17,"union-type-js":20}],3:[function(require,module,exports){
},{"./counter.js":1,"flyd":5,"flyd-forwardto":3,"ramda":6,"snabbdom":18,"snabbdom/h":13,"snabbdom/modules/class":15,"snabbdom/modules/eventlisteners":16,"snabbdom/modules/props":17,"union-type":20}],3:[function(require,module,exports){
var flyd = require('flyd');

module.exports = flyd.curryN(2, function(targ, fn) {
Expand Down
2 changes: 1 addition & 1 deletion examples/modal/js/app.js
Expand Up @@ -3,7 +3,7 @@ const R = require('ramda');
const flyd = require('flyd');
const stream = flyd.stream;
const forwardTo = require('flyd-forwardto');
const Type = require('union-type-js');
const Type = require('union-type');
const patch = require('snabbdom/snabbdom.js').init([
require('snabbdom/modules/class'),
require('snabbdom/modules/style'),
Expand Down
2 changes: 1 addition & 1 deletion examples/modal/package.json
Expand Up @@ -16,7 +16,7 @@
"ramda": "^0.14.0",
"snabbdom": "^0.2.0",
"flyd": "^0.1.4",
"union-type-js": "^0.1.0"
"union-type": "^0.1.0"
},
"jshintConfig": {
"esnext": true,
Expand Down
4 changes: 2 additions & 2 deletions examples/nesting/js/build.js
Expand Up @@ -17016,7 +17016,7 @@ window.addEventListener('DOMContentLoaded', function () {
'use strict';

var R = require('ramda');
var Type = require('union-type-js');
var Type = require('union-type');
var h = require('snabbdom/h');
var forwardTo = require('flyd-forwardto');

Expand Down Expand Up @@ -17059,7 +17059,7 @@ module.exports = function (Component) {
return { init: init, Action: Action, update: update, view: view };
};

},{"flyd-forwardto":41,"ramda":43,"snabbdom/h":50,"treis":1,"union-type-js":59}],39:[function(require,module,exports){
},{"flyd-forwardto":41,"ramda":43,"snabbdom/h":50,"treis":1,"union-type":59}],39:[function(require,module,exports){
/* jshint esnext: true */
'use strict';

Expand Down
2 changes: 1 addition & 1 deletion examples/nesting/js/list.js
@@ -1,6 +1,6 @@
/* jshint esnext: true */
const R = require('ramda')
const Type = require('union-type-js')
const Type = require('union-type')
const h = require('snabbdom/h')
const forwardTo = require('flyd-forwardto')

Expand Down
14 changes: 7 additions & 7 deletions examples/todo/js/app.js
Expand Up @@ -9050,7 +9050,7 @@ var R = require('ramda');
var flyd = require('flyd');
var stream = flyd.stream;
var forwardTo = require('flyd-forwardto');
var Type = require('union-type-js');
var Type = require('union-type');
var Router = require('../../../router');
var patch = require('snabbdom').init([require('snabbdom/modules/class'), require('snabbdom/modules/style'), require('snabbdom/modules/props'), require('snabbdom/modules/eventlisteners')]);
var treis = require('treis');
Expand Down Expand Up @@ -9175,12 +9175,12 @@ window.addEventListener('DOMContentLoaded', function () {
flyd.scan(patch, container, vnode$);
});

},{"../../../helpers/ifenter":45,"../../../helpers/targetvalue":46,"../../../router":57,"./task":26,"flyd":28,"flyd-forwardto":27,"ramda":29,"snabbdom":42,"snabbdom/h":36,"snabbdom/modules/class":38,"snabbdom/modules/eventlisteners":39,"snabbdom/modules/props":40,"snabbdom/modules/style":41,"treis":1,"union-type-js":44}],26:[function(require,module,exports){
},{"../../../helpers/ifenter":45,"../../../helpers/targetvalue":46,"../../../router":57,"./task":26,"flyd":28,"flyd-forwardto":27,"ramda":29,"snabbdom":42,"snabbdom/h":36,"snabbdom/modules/class":38,"snabbdom/modules/eventlisteners":39,"snabbdom/modules/props":40,"snabbdom/modules/style":41,"treis":1,"union-type":44}],26:[function(require,module,exports){
/* jshint esnext: true */
'use strict';

var R = require('ramda');
var Type = require('union-type-js');
var Type = require('union-type');
var h = require('snabbdom/h');

var targetValue = require('../../../helpers/targetvalue');
Expand Down Expand Up @@ -9246,7 +9246,7 @@ var view = R.curry(function (context, model) {

module.exports = { init: init, Action: Action, update: update, view: view };

},{"../../../helpers/ifenter":45,"../../../helpers/targetvalue":46,"ramda":29,"snabbdom/h":36,"union-type-js":44}],27:[function(require,module,exports){
},{"../../../helpers/ifenter":45,"../../../helpers/targetvalue":46,"ramda":29,"snabbdom/h":36,"union-type":44}],27:[function(require,module,exports){
var flyd = require('flyd');

module.exports = flyd.curryN(2, function(targ, fn) {
Expand Down Expand Up @@ -17963,12 +17963,12 @@ module.exports = {init: init, navigate: navigate, destroy: destroy};

},{}],56:[function(require,module,exports){
module.exports=require(44)
},{"/home/simon/projects/noname-functional-frontend-framework/examples/todo/node_modules/union-type-js/union-type.js":44,"ramda/src/curryN":51}],57:[function(require,module,exports){
},{"/home/simon/projects/noname-functional-frontend-framework/examples/todo/node_modules/union-type/union-type.js":44,"ramda/src/curryN":51}],57:[function(require,module,exports){
'use strict';

var flyd = require('flyd');
var ryter = require('ryter');
var Type = require('union-type-js');
var Type = require('union-type');

function any() {
return true;
Expand Down Expand Up @@ -18017,7 +18017,7 @@ module.exports = {
destroy: ryter.destroy,
Change: Change };

},{"flyd":47,"ryter":55,"union-type-js":56}],58:[function(require,module,exports){
},{"flyd":47,"ryter":55,"union-type":56}],58:[function(require,module,exports){
// shim for using process in browser

var process = module.exports = {};
Expand Down
2 changes: 1 addition & 1 deletion examples/todo/js/task-list.js
Expand Up @@ -3,7 +3,7 @@ const R = require('ramda');
const flyd = require('flyd');
const stream = flyd.stream;
const forwardTo = require('flyd-forwardto');
const Type = require('union-type-js');
const Type = require('union-type');
const Router = require('../../../router');
const patch = require('snabbdom').init([
require('snabbdom/modules/class'),
Expand Down
2 changes: 1 addition & 1 deletion examples/todo/js/task.js
@@ -1,6 +1,6 @@
/* jshint esnext: true */
const R = require('ramda');
const Type = require('union-type-js');
const Type = require('union-type');
const h = require('snabbdom/h');

const targetValue = require('../../../helpers/targetvalue');
Expand Down
2 changes: 1 addition & 1 deletion examples/todo/package.json
Expand Up @@ -16,7 +16,7 @@
"ramda": "^0.14.0",
"snabbdom": "^0.1.0",
"flyd": "^0.1.4",
"union-type-js": "^0.1.0"
"union-type": "^0.1.0"
},
"jshintConfig": {
"esnext": true,
Expand Down
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -23,6 +23,6 @@
"flyd": "^0.1.6",
"ramda": "^0.14.0",
"ryter": "0.0.1",
"union-type-js": "^0.1.4"
"union-type": "^0.1.4"
}
}
2 changes: 1 addition & 1 deletion router.js
@@ -1,6 +1,6 @@
var flyd = require('flyd');
var ryter = require('ryter');
var Type = require('union-type-js');
var Type = require('union-type');

function any() { return true; }

Expand Down

0 comments on commit 11ab96f

Please sign in to comment.