1
0
Fork 0
This commit is contained in:
Alexander Yakovlev 2017-12-07 14:40:35 +07:00
parent 080ab1dacb
commit 99b951adda
9 changed files with 2226 additions and 9 deletions

1
.gitignore vendored
View File

@ -1,4 +1,5 @@
/dist
/vendor
/public
/composer.lock
/node_modules

View File

@ -1,7 +1,6 @@
<html>
<meta charset="utf-8" />
<link rel="stylesheet" href="bootstrap.min.css" />
<link rel="stylesheet" href="main.css" />
<link rel="stylesheet" href="app.css" />
<body>
<div class="container">
<div class="row content">
@ -32,7 +31,7 @@
</div>
<script src='https://code.jquery.com/jquery-3.2.1.min.js'></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/fabric.js/1.7.20/fabric.min.js"></script>
<script src='structures.js'></script>
<script defer src='main.js'></script>
<script src='vendor.js'></script>
<script defer src='app.js'></script>
</body>
</html>

View File

@ -1,3 +1,5 @@
var ShelfPack = require('@mapbox/shelf-pack');
/**
* Drag and drop. Dropping an image adds it to the #masonrydraglibrary.
*/
@ -132,11 +134,6 @@ function pack (bin, canvas) {
const cwidth = canvas.width;
const cheight = canvas.height;
let i, len, j, len2;
/*
let btree = new BTree(function(a, b) {
return b.width*b.height - a.width*a.height; // sort by size
});
*/
let size = 0;
for (i = 0, len = bin.length; i < len; i++) {

13
brunch-config.js Normal file
View File

@ -0,0 +1,13 @@
// See http://brunch.io for documentation.
exports.files = {
javascripts: {
joinTo: {
'vendor.js': /^(?!app)/, // Files that are not in `app` dir.
'app.js': /^app/
}
},
stylesheets: {joinTo: 'app.css'}
};
exports.plugins = {
};

11
package.json Normal file
View File

@ -0,0 +1,11 @@
{
"dependencies": {
"@mapbox/shelf-pack": "^3.1.0"
},
"devDependencies": {
"auto-reload-brunch": "^2",
"brunch": "^2",
"clean-css-brunch": "^2",
"uglify-js-brunch": "^2"
}
}

View File

2196
yarn.lock Normal file

File diff suppressed because it is too large Load Diff