gilbarbara/cloudinary

View on GitHub
package.json

Summary

Maintainability
Test Coverage
{
  "name": "@gilbarbara/cloudinary",
  "version": "0.3.0",
  "description": "A tiny alternative to cloudinary-npm for client side media transformations",
  "author": "Gil Barbara <gilbarbara@gmail.com>",
  "repository": {
    "type": "git",
    "url": "git+https://github.com/gilbarbara/cloudinary.git"
  },
  "bugs": {
    "url": "https://github.com/gilbarbara/cloudinary/issues"
  },
  "homepage": "https://github.com/gilbarbara/cloudinary#readme",
  "keywords": [
    "cloudinary"
  ],
  "main": "lib/index.js",
  "module": "es/index.js",
  "jsnext:main": "es/index.js",
  "files": [
    "lib",
    "es"
  ],
  "license": "MIT",
  "dependencies": {},
  "devDependencies": {
    "@babel/cli": "^7.8.4",
    "@babel/core": "^7.8.4",
    "@babel/plugin-external-helpers": "^7.8.3",
    "@babel/plugin-proposal-class-properties": "^7.8.3",
    "@babel/plugin-proposal-decorators": "^7.8.3",
    "@babel/plugin-proposal-do-expressions": "^7.8.3",
    "@babel/plugin-proposal-export-default-from": "^7.8.3",
    "@babel/plugin-proposal-export-namespace-from": "^7.8.3",
    "@babel/plugin-proposal-function-bind": "^7.8.3",
    "@babel/plugin-proposal-function-sent": "^7.8.3",
    "@babel/plugin-proposal-json-strings": "^7.8.3",
    "@babel/plugin-proposal-logical-assignment-operators": "^7.8.3",
    "@babel/plugin-proposal-nullish-coalescing-operator": "^7.8.3",
    "@babel/plugin-proposal-numeric-separator": "^7.8.3",
    "@babel/plugin-proposal-optional-chaining": "^7.8.3",
    "@babel/plugin-proposal-pipeline-operator": "^7.8.3",
    "@babel/plugin-proposal-throw-expressions": "^7.8.3",
    "@babel/plugin-syntax-dynamic-import": "^7.8.3",
    "@babel/plugin-syntax-import-meta": "^7.8.3",
    "@babel/plugin-transform-flow-strip-types": "^7.8.3",
    "@babel/plugin-transform-object-assign": "^7.8.3",
    "@babel/preset-env": "^7.8.4",
    "@babel/preset-flow": "^7.8.3",
    "@size-limit/preset-small-lib": "^4.0.2",
    "babel-core": "^7.0.0-bridge.0",
    "babel-eslint": "^10.0.3",
    "babel-jest": "^25.1.0",
    "cross-env": "^7.0.0",
    "del-cli": "^3.0.0",
    "eslint": "^6.8.0",
    "eslint-config-airbnb-base": "^14.0.0",
    "eslint-config-prettier": "^6.10.0",
    "eslint-plugin-babel": "^5.3.0",
    "eslint-plugin-flowtype": "^4.6.0",
    "eslint-plugin-import": "^2.20.1",
    "eslint-plugin-prettier": "^3.1.2",
    "flow-bin": "^0.118.0",
    "husky": "^4.2.3",
    "is-ci-cli": "^2.0.0",
    "jest": "^25.1.0",
    "jest-extended": "^0.11.5",
    "jest-watch-typeahead": "^0.4.2",
    "lint-staged": "^10.0.7",
    "pre-commit": "^1.2.2",
    "prettier": "^1.19.1",
    "prettysize": "^2.0.0",
    "repo-tools": "^0.2.0",
    "size-limit": "^4.0.2"
  },
  "scripts": {
    "build": "npm run clean && npm run build:commonjs && npm run build:esm",
    "build:commonjs": "cross-env BABEL_ENV=commonjs babel src --out-dir lib",
    "build:esm": "babel src --out-dir esm",
    "clean": "del lib/* && del esm/*",
    "watch": "npm run build:es -- --watch",
    "lint": "eslint src test",
    "test": "is-ci \"test:coverage\" \"test:watch\"",
    "test:coverage": "jest --coverage --bail",
    "test:watch": "jest --watch --verbose",
    "size": "npm run build && size-limit",
    "format": "prettier \"**/*.{js,jsx}\" --write",
    "validate": "npm run lint && npm run test:coverage && npm run size",
    "prepublishOnly": "npm run validate"
  },
  "lint-staged": {
    "*.js?(x)": [
      "eslint --fix",
      "git add",
      "jest --findRelatedTests"
    ],
    "*.(js|jsx|json|yml|yaml|css|less|scss|ts|tsx|md|graphql|mdx)": [
      "prettier --write",
      "git add"
    ]
  },
  "prettier": {
    "printWidth": 100,
    "singleQuote": true,
    "trailingComma": "all",
    "jsxBracketSameLine": false
  },
  "size-limit": [
    {
      "path": "esm/*.js",
      "limit": "5kb"
    },
    {
      "path": "lib/*.js",
      "limit": "5kb"
    }
  ],
  "husky": {
    "hooks": {
      "pre-commit": "repo-tools check-remote && lint-staged && flow",
      "post-merge": "repo-tools install-packages"
    }
  }
}