Skip to content

Commit

Permalink
Update brunch dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
José Valim committed Feb 6, 2016
1 parent bda0c85 commit d046399
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 37 deletions.
5 changes: 1 addition & 4 deletions installer/templates/static/brunch/brunch-config.js
Expand Up @@ -62,9 +62,6 @@ exports.config = {
},

npm: {
enabled: true,
// Whitelist the npm deps to be pulled in as front-end assets.
// All other deps in package.json will be excluded from the bundle.
whitelist: ["phoenix"<%= if html do %>, "phoenix_html"<% end %>]
enabled: true
}
};
10 changes: 5 additions & 5 deletions installer/templates/static/brunch/package.json
Expand Up @@ -3,11 +3,11 @@
},
"dependencies": {
"babel-brunch": "~6.0.0",
"brunch": "~2.1.3",
"clean-css-brunch": "~1.8.0",
"css-brunch": "~1.7.0",
"javascript-brunch": "~1.8.0",
"uglify-js-brunch": "~1.7.0",
"brunch": "~2.2.3",
"clean-css-brunch": "~2.0.0",
"css-brunch": "~2.0.0",
"javascript-brunch": "~2.0.0",
"uglify-js-brunch": "~2.0.1",
"phoenix": "file:<%= brunch_deps_prefix %><%= phoenix_path %>"<%= if html do %>,
"phoenix_html": "file:<%= brunch_deps_prefix %>deps/phoenix_html"<% end %>
}
Expand Down
10 changes: 5 additions & 5 deletions package.json
@@ -1,14 +1,14 @@
{
"name": "phoenix",
"version": "1.1.3",
"version": "1.2.0-dev",
"main": "./priv/static/phoenix.js",
"repository": {
},
"devDependencies": {
"brunch": "^2.1.1",
"mocha": "^2.4.4",
"babel-brunch": "^6.0.0",
"uglify-js-brunch": ">= 1.0 < 1.8"
"brunch": "~2.2.3",
"mocha": "~2.4.4",
"babel-brunch": "~6.0.0",
"uglify-js-brunch": "~2.0.1"
},
"files": ["LICENSE.md", "package.json", "priv/static/phoenix.js"],
"scripts": {
Expand Down
47 changes: 24 additions & 23 deletions priv/static/phoenix.js
@@ -1,16 +1,16 @@
(function(exports){
"use strict";

var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; };

var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
var _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; })();

Object.defineProperty(exports, "__esModule", {
value: true
});

function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } else { return Array.from(arr); } }

function _typeof(obj) { return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj; }

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

// Phoenix Channels JavaScript client
Expand Down Expand Up @@ -100,6 +100,7 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
// closed on the server, or 2). The client explicitly closed, by calling
// `channel.leave()`
//
//
// ## Presence
//
// The `Presence` object provides features for syncing presence information
Expand All @@ -108,8 +109,8 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
// ### Syncing initial state from the server
//
// `Presence.syncState` is used to sync the list of presences on the server
// with the clients state. An optional `onJoin` and `onLeave` callback can
// be provided to react changes in the client's local presences across
// with the client's state. An optional `onJoin` and `onLeave` callback can
// be provided to react to changes in the client's local presences across
// disconnects and reconnects with the server.
//
// `Presence.syncDiff` is used to sync a diff of presence join and leave
Expand All @@ -122,8 +123,8 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
// `Presence.list` is used to return a list of presence information
// based on the local state of metadata. By default, all presence
// metadata is returned, but a `listBy` function can be supplied to
// allow the client to select which metadata for each presence to use.
// For example, you may have a user online form different devices with a
// allow the client to select which metadata to use for a given presence.
// For example, you may have a user online from different devices with a
// a metadata status of "online", but they have set themselves to "away"
// on another device. In this case, they app may choose to use the "away"
// status for what appears on the UI. The example below defines a `listBy`
Expand All @@ -134,7 +135,7 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
// let state = {}
// Presence.syncState(state, stateFromServer)
// let listBy = (id, {metas: [first, ...rest]}) => {
// first.count = rest.length + 1
// first.count = rest.length + 1 // count of this user's presences
// first.id = id
// return first
// }
Expand Down Expand Up @@ -192,7 +193,7 @@ var TRANSPORTS = {
websocket: "websocket"
};

var Push = function () {
var Push = (function () {

// Initializes the Push
//
Expand Down Expand Up @@ -316,9 +317,9 @@ var Push = function () {
}]);

return Push;
}();
})();

var Channel = exports.Channel = function () {
var Channel = exports.Channel = (function () {
function Channel(topic, params, socket) {
var _this2 = this;

Expand Down Expand Up @@ -520,9 +521,9 @@ var Channel = exports.Channel = function () {
}]);

return Channel;
}();
})();

var Socket = exports.Socket = function () {
var Socket = exports.Socket = (function () {

// Initializes the Socket
//
Expand Down Expand Up @@ -835,9 +836,9 @@ var Socket = exports.Socket = function () {
}]);

return Socket;
}();
})();

var LongPoll = exports.LongPoll = function () {
var LongPoll = exports.LongPoll = (function () {
function LongPoll(endPoint) {
_classCallCheck(this, LongPoll);

Expand Down Expand Up @@ -942,9 +943,9 @@ var LongPoll = exports.LongPoll = function () {
}]);

return LongPoll;
}();
})();

var Ajax = exports.Ajax = function () {
var Ajax = exports.Ajax = (function () {
function Ajax() {
_classCallCheck(this, Ajax);
}
Expand Down Expand Up @@ -1040,7 +1041,7 @@ var Ajax = exports.Ajax = function () {
}]);

return Ajax;
}();
})();

Ajax.states = { complete: 4 };

Expand Down Expand Up @@ -1092,10 +1093,10 @@ var Presence = exports.Presence = {
var leaves = _ref2.leaves;

if (!onJoin) {
onJoin = function onJoin() {};
onJoin = function () {};
}
if (!onLeave) {
onLeave = function onLeave() {};
onLeave = function () {};
}

this.map(joins, function (key, newPresence) {
Expand Down Expand Up @@ -1127,7 +1128,7 @@ var Presence = exports.Presence = {
},
list: function list(presences, chooser) {
if (!chooser) {
chooser = function chooser(key, pres) {
chooser = function (key, pres) {
return pres;
};
}
Expand Down Expand Up @@ -1163,7 +1164,7 @@ var Presence = exports.Presence = {
// reconnectTimer.scheduleTimeout() // fires after 1000
//

var Timer = function () {
var Timer = (function () {
function Timer(callback, timerCalc) {
_classCallCheck(this, Timer);

Expand Down Expand Up @@ -1197,7 +1198,7 @@ var Timer = function () {
}]);

return Timer;
}();
})();


})(typeof(exports) === "undefined" ? window.Phoenix = window.Phoenix || {} : exports);

0 comments on commit d046399

Please sign in to comment.