From 4efa2109ee0892e926f5d1f43ef4134692c6b3ec Mon Sep 17 00:00:00 2001 From: rabuzarus Date: Thu, 29 Mar 2018 18:39:26 +0200 Subject: [PATCH] cropperjs: use npm-asset for composer --- composer.json | 13 +---- composer.lock | 107 ++++++++++++++++++++++++++++++++---- view/templates/crophead.tpl | 4 +- 3 files changed, 98 insertions(+), 26 deletions(-) diff --git a/composer.json b/composer.json index 9cef6f379..52b4f2c86 100644 --- a/composer.json +++ b/composer.json @@ -35,23 +35,12 @@ "npm-asset/jquery-datetimepicker": "^2.4.0", "npm-asset/jgrowl": "^1.4", "npm-asset/fullcalendar": "^3.0.1", - "fengyuanchen/cropperjs": "1.2.2" + "npm-asset/cropperjs": "1.2.2" }, "repositories": [ { "type": "vcs", "url": "https://github.com/pear/Text_Highlighter" - }, - { - "type": "package", - "package": { - "name": "fengyuanchen/cropperjs", - "version": "1.2.2", - "dist": { - "url": "https://github.com/fengyuanchen/cropperjs/archive/v1.2.2.zip", - "type": "zip" - } - } } ], "autoload": { diff --git a/composer.lock b/composer.lock index 5d15aef12..4aeae3a72 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file", "This file is @generated automatically" ], - "content-hash": "c665c4d63bd0317db0c1992ad7c6c7a1", + "content-hash": "12b8df66213734281765cb6e2c5a786e", "packages": [ { "name": "asika/simple-console", @@ -225,17 +225,6 @@ ], "time": "2015-08-05T01:03:42+00:00" }, - { - "name": "fengyuanchen/cropperjs", - "version": "1.2.2", - "dist": { - "type": "zip", - "url": "https://github.com/fengyuanchen/cropperjs/archive/v1.2.2.zip", - "reference": null, - "shasum": null - }, - "type": "library" - }, { "name": "fxp/composer-asset-plugin", "version": "v1.4.2", @@ -671,6 +660,100 @@ ], "time": "2018-02-26T19:39:55+00:00" }, + { + "name": "npm-asset/cropperjs", + "version": "1.2.2", + "dist": { + "type": "tar", + "url": "https://registry.npmjs.org/cropperjs/-/cropperjs-1.2.2.tgz", + "reference": null, + "shasum": "30dc7a7ce872155b23a33bd10ad4c76c0d613f55" + }, + "require-dev": { + "npm-asset/babel-core": ">=6.26.0,<7.0.0", + "npm-asset/babel-plugin-external-helpers": ">=6.22.0,<7.0.0", + "npm-asset/babel-preset-env": ">=1.6.1,<2.0.0", + "npm-asset/cpy-cli": ">=1.0.1,<2.0.0", + "npm-asset/cssnano": ">=3.10.0,<4.0.0", + "npm-asset/del-cli": ">=1.1.0,<2.0.0", + "npm-asset/eslint": ">=4.14.0,<5.0.0", + "npm-asset/eslint-config-airbnb-base": ">=12.1.0,<13.0.0", + "npm-asset/eslint-plugin-import": ">=2.8.0,<3.0.0", + "npm-asset/node-qunit-phantomjs": ">=2.0.0,<3.0.0", + "npm-asset/npm-run-all": ">=4.1.2,<5.0.0", + "npm-asset/postcss-cli": ">=4.1.1,<5.0.0", + "npm-asset/postcss-cssnext": ">=3.0.2,<4.0.0", + "npm-asset/postcss-header": ">=1.0.0,<2.0.0", + "npm-asset/postcss-url": ">=7.3.0,<8.0.0", + "npm-asset/rollup": ">=0.53.3,<0.54.0", + "npm-asset/rollup-plugin-babel": ">=3.0.3,<4.0.0", + "npm-asset/rollup-watch": ">=4.3.1,<5.0.0", + "npm-asset/stylefmt": ">=6.0.0,<7.0.0", + "npm-asset/uglify-js": ">=3.3.4,<4.0.0" + }, + "type": "npm-asset-library", + "extra": { + "npm-asset-bugs": { + "url": "https://github.com/fengyuanchen/cropperjs/issues" + }, + "npm-asset-files": [ + "src", + "dist" + ], + "npm-asset-main": "dist/cropper.common.js", + "npm-asset-directories": [], + "npm-asset-repository": { + "type": "git", + "url": "git+https://github.com/fengyuanchen/cropperjs.git" + }, + "npm-asset-scripts": { + "build": "npm run build:css && npm run build:js", + "build:css": "postcss src/css/cropper.css -o dist/cropper.css --no-map", + "build:js": "rollup -c", + "clear": "del-cli dist", + "compress": "npm run compress:css && npm run compress:js", + "compress:css": "postcss dist/cropper.css -u cssnano -o dist/cropper.min.css --no-map", + "compress:js": "uglifyjs dist/cropper.js -o dist/cropper.min.js -c -m --comments /^!/", + "copy": "cpy dist/cropper.css docs/css", + "lint": "eslint src/js --fix", + "release": "npm run clear && npm run lint && npm run build && npm run compress && npm run copy && npm test", + "start": "npm-run-all --parallel watch:*", + "test": "node-qunit-phantomjs test/index.html --timeout 10", + "watch:css": "postcss src/css/cropper.css -o docs/css/cropper.css -m -w", + "watch:js": "rollup -c -m -w" + } + }, + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Chen Fengyuan", + "url": "http://chenfengyuan.com" + } + ], + "description": "JavaScript image cropper.", + "homepage": "https://fengyuanchen.github.io/cropperjs", + "keywords": [ + "crop", + "cropper", + "cropper.js", + "cropperjs", + "cropping", + "css", + "development", + "front-end", + "html", + "image", + "javascript", + "move", + "rotate", + "scale", + "web", + "zoom" + ], + "time": "2018-01-03T13:39:39+00:00" + }, { "name": "npm-asset/fullcalendar", "version": "3.9.0", diff --git a/view/templates/crophead.tpl b/view/templates/crophead.tpl index d6fc84567..3fd15796e 100644 --- a/view/templates/crophead.tpl +++ b/view/templates/crophead.tpl @@ -1,2 +1,2 @@ - - + +