Skip to content

Commit

Permalink
Build the new dist
Browse files Browse the repository at this point in the history
  • Loading branch information
Swizz committed May 10, 2017
1 parent 0b69dba commit 5400d34
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
10 changes: 8 additions & 2 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,19 @@ var assign = function () {
return _extend.apply(void 0, [ false ].concat( objs ));
};

var entries = function (obj) { return Object.keys(obj).map(
function (key) { return [key, obj[key]]; }
); };



var flatten = function (arr) { return arr.reduce(
function (acc, curr) { return !array(curr) ? acc.concat( [curr]) :
acc.concat( flatten(curr)); },
[]
); };

var mapObject = function (obj, fn) { return Object.entries(obj).map(
var mapObject = function (obj, fn) { return entries(obj).map(
function (ref) {
var key = ref[0];
var val = ref[1];
Expand Down Expand Up @@ -105,7 +111,7 @@ var omit = function (key, obj) { return mapObject(obj,
}
); };

// const fnName = (...params) => guard ? default : ...
// Const fnName = (...params) => guard ? default : ...

var createTextElement = function (text$$1) { return !text(text$$1) ? undefined : {
text: text$$1,
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@
"transpile": "./node_modules/.bin/buble -i src/ -o dist/ --no modules --objectAssign fn.assign",
"modules": "./node_modules/.bin/rollup -i dist/index.js -o dist/index.js -f cjs",
"clean": "./node_modules/.bin/rimraf 'dist/!(index.js)'",
"build": "npm run transpile && npm run modules && npm run clean"
"build": "npm run transpile && npm run modules && npm run clean",
"make": "npm run lint && npm run test:prebuild && npm run build && npm run test:postbuild"
},
"ava": {
"files": [
Expand Down

0 comments on commit 5400d34

Please sign in to comment.