UNPKG

7.89 kBJSONView Raw
1{
2 "name": "contentful-management",
3 "version": "7.51.0",
4 "description": "Client for Contentful's Content Management API",
5 "homepage": "https://www.contentful.com/developers/documentation/content-management-api/",
6 "main": "./dist/contentful-management.node.js",
7 "types": "./dist/typings/contentful-management.d.ts",
8 "module": "./dist/es-modules/contentful-management.js",
9 "engines": {
10 "node": ">=6"
11 },
12 "repository": {
13 "type": "git",
14 "url": "https://github.com/contentful/contentful-management.js.git"
15 },
16 "author": "Contentful <opensource@contentful.com>",
17 "license": "MIT",
18 "tonicExampleFilename": "tonic-example.js",
19 "scripts": {
20 "clean": "rimraf dist",
21 "build": "npm run clean && npm run build:modules && npm run build:standalone && npm run build:types",
22 "build:modules": "BABEL_ENV=modules babel --extensions \".ts\" --extensions \".js\" lib -d dist/es-modules/",
23 "build:standalone": "webpack && NODE_ENV=production webpack",
24 "build:standalone:log": "NODE_ENV=production WEBPACK_MODE=log webpack --json --profile --progress > webpack-build-log.json && webpack-bundle-analyzer webpack-build-log.json",
25 "build:types": "rimraf dist/typings && tsc --declaration --noEmit false --emitDeclarationOnly true --allowJs false",
26 "build:docs": "typedoc",
27 "docs:dev": "npm run build && npm run build:docs",
28 "docs:watch": "nodemon --exec npm run docs:dev -w lib typings",
29 "docs:publish": "npm run build:docs && ./node_modules/contentful-sdk-jsdoc/bin/publish-docs.sh contentful-management.js contentful-management",
30 "check-types": "tsc",
31 "lint": "eslint lib test --ext '.ts,.tsx,.js,.jsx'",
32 "pretest": "rimraf coverage && npm run lint",
33 "test": "npm run test:cover-unit && npm run test:cover-integration && npm run test:size",
34 "test:cover-unit": "./node_modules/.bin/nyc --reporter=lcov --reporter=text --reporter=clover --report-dir=coverage/unit npm run test:unit",
35 "test:cover-integration": "./node_modules/.bin/nyc --reporter=lcov --reporter=text --reporter=clover --report-dir=coverage/integration npm run test:integration",
36 "test:unit": "BABEL_ENV=test babel-node --extensions .ts --extensions .js ./node_modules/.bin/mocha './test/unit/**/*-test.[tj]s' --config mocharc.js --require @babel/register --reporter mocha-junit-reporter --reporter-options mochaFile=reports/unit-results.xml",
37 "test:unit-watch": "BABEL_ENV=test babel-node --extensions .ts --extensions .js ./node_modules/.bin/mocha './test/unit/**/*-test.[tj]s' --config mocharc.js --watch --require @babel/register",
38 "test:integration": "BABEL_ENV=test babel-node --extensions .ts --extensions .js ./node_modules/.bin/mocha './test/integration/*.[tj]s' --config mocharc.js --require @babel/register --reporter mocha-junit-reporter --reporter-options mochaFile=reports/integration-results.xml",
39 "test:integration-watch": "BABEL_ENV=test babel-node --extensions .ts --extensions .js ./node_modules/.bin/mocha './test/integration/*.[tj]s' --config mocharc.js --watch --require @babel/register",
40 "test:browser": "BABEL_ENV=test karma start karma.conf.local.js --log-level info",
41 "test:size": "bundlesize",
42 "test:prepush": "npm run build && npm run test:unit && npm run test:size",
43 "prettier": "prettier --write '**/*.{jsx,js,ts,tsx}'",
44 "prettier:check": "prettier --check '**/*.{jsx,js,ts,tsx}'",
45 "presemantic-release": "npm run build",
46 "semantic-release": "semantic-release",
47 "precommit": "npm run lint",
48 "postpublish": "if [ \"$(git rev-parse --abbrev-ref HEAD)\" = master ] ; then npm run docs:publish && npm run clean ; else exit 0 ; fi",
49 "prepush": "npm run test:prepush",
50 "prepare": "npm run build"
51 },
52 "files": [
53 "dist",
54 "types.d.ts",
55 "tonic-example.js"
56 ],
57 "dependencies": {
58 "@types/json-patch": "0.0.30",
59 "axios": "^0.21.4",
60 "contentful-sdk-core": "^6.10.4",
61 "fast-copy": "^2.1.0",
62 "lodash.isplainobject": "^4.0.6",
63 "type-fest": "^2.5.3"
64 },
65 "devDependencies": {
66 "@babel/cli": "^7.12.7",
67 "@babel/core": "^7.14.0",
68 "@babel/node": "^7.13.13",
69 "@babel/plugin-proposal-class-properties": "^7.12.1",
70 "@babel/plugin-proposal-export-namespace-from": "^7.12.1",
71 "@babel/plugin-proposal-nullish-coalescing-operator": "^7.12.1",
72 "@babel/plugin-proposal-object-rest-spread": "^7.12.1",
73 "@babel/plugin-proposal-optional-chaining": "^7.13.12",
74 "@babel/preset-env": "^7.14.1",
75 "@babel/preset-typescript": "^7.12.7",
76 "@contentful/integration-test-utils": "^1.3.1",
77 "@semantic-release/changelog": "^6.0.0",
78 "@types/chai": "^4.2.17",
79 "@types/chai-as-promised": "^7.1.4",
80 "@types/lodash": "^4.14.168",
81 "@types/lodash.isplainobject": "^4.0.6",
82 "@types/node": "^17.0.10",
83 "@types/sinon": "10.0.8",
84 "@typescript-eslint/eslint-plugin": "4.33.0",
85 "@typescript-eslint/parser": "4.33.0",
86 "babel-eslint": "^10.1.0",
87 "babel-loader": "^8.2.1",
88 "babel-minify-webpack-plugin": "^0.3.1",
89 "babel-plugin-inline-replace-variables": "^1.3.1",
90 "babel-plugin-lodash": "^3.3.4",
91 "babel-plugin-rewire-ts": "1.4.0",
92 "better-docs": "^2.3.2",
93 "bundlesize": "^0.18.1",
94 "chai": "^4.2.0",
95 "chai-as-promised": "7.1.1",
96 "contentful-sdk-jsdoc": "^2.2.0",
97 "core-js": "^2.6.12",
98 "cz-conventional-changelog": "^3.3.0",
99 "eslint": "^6.8.0",
100 "eslint-config-prettier": "^6.15.0",
101 "eslint-plugin-import": "^2.22.1",
102 "eslint-plugin-no-only-tests": "^2.6.0",
103 "eslint-plugin-node": "^11.1.0",
104 "eslint-plugin-promise": "^6.0.0",
105 "express": "^4.17.1",
106 "husky": "^4.3.8",
107 "in-publish": "^2.0.1",
108 "istanbul": "^1.0.0-alpha.2",
109 "json": "^11.0.0",
110 "karma": "^6.3.4",
111 "karma-chrome-launcher": "^3.1.0",
112 "karma-env-preprocessor": "^0.1.1",
113 "karma-firefox-launcher": "^2.1.1",
114 "karma-mocha": "^2.0.1",
115 "karma-sourcemap-loader": "^0.3.7",
116 "karma-webpack": "^4.0.2",
117 "lint-staged": "^12.1.2",
118 "lodash": "^4.17.20",
119 "lodash-webpack-plugin": "^0.11.5",
120 "mocha": "^9.1.1",
121 "mocha-junit-reporter": "^2.0.2",
122 "nodemon": "^2.0.7",
123 "nyc": "^15.1.0",
124 "prettier": "^2.0.5",
125 "require-all": "^3.0.0",
126 "rimraf": "^3.0.2",
127 "semantic-release": "^19.0.2",
128 "sinon": "^12.0.1",
129 "typedoc": "0.22.8",
130 "typescript": "^4.1.2",
131 "webpack": "^4.46.0",
132 "webpack-bundle-analyzer": "^4.4.1",
133 "webpack-cli": "^4.8.0"
134 },
135 "config": {
136 "commitizen": {
137 "path": "./node_modules/cz-conventional-changelog"
138 }
139 },
140 "lint-staged": {
141 "*.{js,jsx,ts,tsx}": [
142 "prettier --write",
143 "eslint"
144 ],
145 "*.md": [
146 "prettier --write"
147 ]
148 },
149 "husky": {
150 "hooks": {
151 "pre-commit": "lint-staged"
152 }
153 },
154 "release": {
155 "branches": [
156 "master",
157 "next",
158 "next-major"
159 ],
160 "plugins": [
161 [
162 "@semantic-release/commit-analyzer",
163 {
164 "releaseRules": [
165 {
166 "type": "build",
167 "scope": "deps",
168 "release": "patch"
169 }
170 ]
171 }
172 ],
173 "@semantic-release/release-notes-generator",
174 "@semantic-release/changelog",
175 "@semantic-release/npm",
176 "@semantic-release/github"
177 ]
178 },
179 "bundlesize": [
180 {
181 "path": "./dist/contentful-management.browser.js",
182 "maxSize": "75Kb"
183 },
184 {
185 "path": "./dist/contentful-management.browser.min.js",
186 "maxSize": "30Kb"
187 },
188 {
189 "path": "./dist/contentful-management.legacy.js",
190 "maxSize": "91Kb"
191 },
192 {
193 "path": "./dist/contentful-management.legacy.min.js",
194 "maxSize": "40Kb"
195 },
196 {
197 "path": "./dist/contentful-management.node.js",
198 "maxSize": "85Kb"
199 },
200 {
201 "path": "./dist/contentful-management.node.min.js",
202 "maxSize": "35Kb"
203 }
204 ]
205}