aboutsummaryrefslogtreecommitdiffstats
path: root/library/cropperjs/package.json
diff options
context:
space:
mode:
Diffstat (limited to 'library/cropperjs/package.json')
-rw-r--r--library/cropperjs/package.json154
1 files changed, 108 insertions, 46 deletions
diff --git a/library/cropperjs/package.json b/library/cropperjs/package.json
index f94100981..81647a36b 100644
--- a/library/cropperjs/package.json
+++ b/library/cropperjs/package.json
@@ -1,76 +1,138 @@
{
"name": "cropperjs",
"description": "JavaScript image cropper.",
- "version": "1.2.2",
+ "version": "1.5.6",
"main": "dist/cropper.common.js",
"module": "dist/cropper.esm.js",
"browser": "dist/cropper.js",
+ "types": "types/index.d.ts",
"style": "dist/cropper.css",
- "repository": "fengyuanchen/cropperjs",
- "homepage": "https://fengyuanchen.github.io/cropperjs",
- "license": "MIT",
- "author": {
- "name": "Chen Fengyuan",
- "url": "http://chenfengyuan.com"
- },
"files": [
"src",
- "dist"
+ "dist",
+ "types"
],
+ "scripts": {
+ "build": "npm run build:css && npm run build:js",
+ "build:css": "postcss src/index.css -o dist/cropper.css --no-map",
+ "build:js": "rollup -c",
+ "clear": "del-cli dist",
+ "codecov": "cat coverage/lcov.info | codecov",
+ "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": "npm run lint:js && npm run lint:css",
+ "lint:css": "stylelint {src,docs,examples}/**/*.{css,scss,html} --fix",
+ "lint:js": "eslint src test *.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": "cross-env NODE_ENV=test karma start test/karma.conf.js",
+ "watch:css": "postcss src/index.css -o docs/css/cropper.css -m -w",
+ "watch:js": "rollup -c -m -w"
+ },
+ "repository": {
+ "type": "git",
+ "url": "git+https://github.com/fengyuanchen/cropperjs.git"
+ },
"keywords": [
"image",
"crop",
- "cropping",
"move",
"zoom",
"rotate",
"scale",
"cropper",
- "cropperjs",
"cropper.js",
+ "cropping",
+ "processing",
"html",
"css",
"javascript",
"front-end",
- "web",
- "development"
+ "web"
],
- "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"
+ "author": {
+ "name": "Chen Fengyuan",
+ "url": "https://chenfengyuan.com"
+ },
+ "license": "MIT",
+ "bugs": {
+ "url": "https://github.com/fengyuanchen/cropperjs/issues"
},
+ "homepage": "https://fengyuanchen.github.io/cropperjs",
"devDependencies": {
- "babel-core": "^6.26.0",
- "babel-plugin-external-helpers": "^6.22.0",
- "babel-preset-env": "^1.6.1",
- "cpy-cli": "^1.0.1",
- "cssnano": "^3.10.0",
- "del-cli": "^1.1.0",
- "eslint": "^4.14.0",
- "eslint-config-airbnb-base": "^12.1.0",
- "eslint-plugin-import": "^2.8.0",
- "node-qunit-phantomjs": "^2.0.0",
- "npm-run-all": "^4.1.2",
- "postcss-cli": "^4.1.1",
- "postcss-cssnext": "^3.0.2",
+ "@babel/core": "^7.6.2",
+ "@babel/preset-env": "^7.6.2",
+ "@commitlint/cli": "^8.2.0",
+ "@commitlint/config-conventional": "^8.2.0",
+ "babel-plugin-istanbul": "^5.2.0",
+ "chai": "^4.2.0",
+ "change-case": "^3.1.0",
+ "codecov": "^3.6.1",
+ "cpy-cli": "^2.0.0",
+ "create-banner": "^1.0.0",
+ "cross-env": "^6.0.3",
+ "cssnano": "^4.1.10",
+ "del-cli": "^3.0.0",
+ "eslint": "^6.5.1",
+ "eslint-config-airbnb-base": "^14.0.0",
+ "eslint-plugin-import": "^2.18.2",
+ "husky": "^3.0.8",
+ "karma": "^4.3.0",
+ "karma-chai": "^0.1.0",
+ "karma-chrome-launcher": "^3.1.0",
+ "karma-coverage-istanbul-reporter": "^2.1.0",
+ "karma-mocha": "^1.3.0",
+ "karma-mocha-reporter": "^2.2.5",
+ "karma-rollup-preprocessor": "^7.0.2",
+ "lint-staged": "^8.2.1",
+ "mocha": "^6.2.1",
+ "npm-run-all": "^4.1.5",
+ "postcss-cli": "^6.1.3",
"postcss-header": "^1.0.0",
- "postcss-url": "^7.3.0",
- "rollup": "^0.53.3",
- "rollup-plugin-babel": "^3.0.3",
+ "postcss-import": "^12.0.1",
+ "postcss-preset-env": "^6.7.0",
+ "postcss-url": "^8.0.0",
+ "puppeteer": "^1.20.0",
+ "rollup": "^1.23.0",
+ "rollup-plugin-babel": "^4.3.3",
"rollup-watch": "^4.3.1",
- "stylefmt": "^6.0.0",
- "uglify-js": "^3.3.4"
+ "stylelint": "^11.0.0",
+ "stylelint-config-standard": "^19.0.0",
+ "stylelint-order": "^3.1.1",
+ "uglify-js": "^3.6.0"
+ },
+ "browserslist": [
+ "last 2 versions",
+ "> 1%",
+ "not ie <= 8"
+ ],
+ "commitlint": {
+ "extends": [
+ "@commitlint/config-conventional"
+ ]
+ },
+ "husky": {
+ "hooks": {
+ "pre-commit": "lint-staged",
+ "commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
+ }
+ },
+ "lint-staged": {
+ "linters": {
+ "*.js": [
+ "eslint --fix",
+ "git add"
+ ],
+ "*.{css,scss,html}": [
+ "stylelint --fix",
+ "git add"
+ ]
+ },
+ "ignore": [
+ "{dist,docs}/**/*.js",
+ "*.min.*"
+ ]
}
}