Skip to content

Commit

Permalink
Refactor build process.
Browse files Browse the repository at this point in the history
  • Loading branch information
Niklas Rämö committed Apr 21, 2019
1 parent 292bef3 commit 7161d18
Show file tree
Hide file tree
Showing 10 changed files with 85 additions and 418 deletions.
2 changes: 1 addition & 1 deletion .prettierrc.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"printWidth": 100,
"singleQuote": true
}
}
36 changes: 21 additions & 15 deletions dist/muuri.js
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
/**
* Muuri v0.8.0
* https://github.com/haltu/muuri
* Copyright (c) 2015-present, Haltu Oy
* Released under the MIT license
* https://github.com/haltu/muuri/blob/master/LICENSE.md
* @license MIT
*
* Muuri Packer
* Copyright (c) 2016-present, Niklas Rämö <[email protected]>
* @license MIT
*
* Muuri Ticker / Muuri Emitter / Muuri Queue
* Copyright (c) 2018-present, Niklas Rämö <[email protected]>
* @license MIT
*/
* Muuri v0.8.0
* https://github.com/haltu/muuri
* Copyright (c) 2015-present, Haltu Oy
* Released under the MIT license
* https://github.com/haltu/muuri/blob/master/LICENSE.md
* @license MIT
*
* Muuri Packer
* Copyright (c) 2016-present, Niklas Rämö <[email protected]>
* @license MIT
*
* Muuri Ticker / Muuri Emitter / Muuri Queue
* Copyright (c) 2018-present, Niklas Rämö <[email protected]>
* @license MIT
*/

(function (global, factory) {
if (typeof exports === 'object' && typeof module !== 'undefined') {
Expand Down Expand Up @@ -6170,6 +6170,12 @@
return target;
}

// TODO:
// - Use imports/exports in node
// - Try to get rid of Queue (replace with Emitter if possible)
// - Try to finish up custom dragging (and check if Hammer is causing the drag
// slowdown on 200+ elements)

return Grid;

}));
30 changes: 15 additions & 15 deletions dist/muuri.min.js

Large diffs are not rendered by default.

12 changes: 1 addition & 11 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,7 @@ const exec = require('child_process').exec;

const pkg = require('./package.json');
const karmaDefaults = require('./karma.defaults.js');

const umdHeader = `(function (global, factory) {
if (typeof exports === 'object' && typeof module !== 'undefined') {
var Hammer;
try { Hammer = require('hammerjs') } catch (e) {}
module.exports = factory(Hammer);
} else {
global.Muuri = factory(global.Hammer);
}
}(this, function (Hammer) {
'use strict';`;
const umdHeader = require('./rollup.umd.js');

if (fs.existsSync('./.env')) dotenv.load();

Expand Down
Loading

0 comments on commit 7161d18

Please sign in to comment.