UNPKG

7.15 kBJSONView Raw
1{
2 "name": "contentful-management",
3 "version": "6.1.2",
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 && npm run test:integration && npm run test:browser-local && npm run test:size",
34 "test:ci": "./node_modules/contentful-sdk-core/bin/test-ci.sh",
35 "test:cover": "BABEL_ENV=test babel-node --extensions \".ts\" --extensions \".js\" ./node_modules/istanbul/lib/cli.js cover ./test/runner.js | tap-spec",
36 "test:unit": "BABEL_ENV=test babel-node --extensions \".ts\" --extensions \".js\" ./test/runner.js | tap-spec",
37 "test:debug": "BABEL_ENV=test babel-node debug --extensions \".ts\" --extensions \".js\" ./test/runner.js",
38 "test:integration": "BABEL_ENV=test babel-node --extensions \".ts\" --extensions \".js\" ./test/integration/integration-tests.js",
39 "test:browser-local": "BABEL_ENV=test karma start karma.conf.local.js",
40 "test:browser-remote": "BABEL_ENV=test karma start karma.conf.saucelabs.js",
41 "test:e2e": "node test/e2e/index.js",
42 "test:simulate-ci": "trevor",
43 "test:size": "bundlesize",
44 "test:prepush": "npm run build && npm run test:unit && npm run test:size",
45 "browser-coverage": "npm run test:cover && opener coverage/lcov-report/index.html",
46 "prettier": "prettier --write '**/*.{jsx,js,ts,tsx}'",
47 "prettier:check": "prettier --check '**/*.{jsx,js,ts,tsx}'",
48 "presemantic-release": "npm run build",
49 "semantic-release": "semantic-release",
50 "precommit": "npm run lint",
51 "postpublish": "if [ \"$(git rev-parse --abbrev-ref HEAD)\" = master ] ; then npm run docs:publish && npm run clean ; else exit 0 ; fi",
52 "prepush": "npm run test:prepush",
53 "prepare": "npm run build"
54 },
55 "files": [
56 "dist",
57 "tonic-example.js"
58 ],
59 "dependencies": {
60 "axios": "^0.19.0",
61 "contentful-sdk-core": "^6.4.0",
62 "lodash": "^4.17.20",
63 "type-fest": "0.16.0"
64 },
65 "devDependencies": {
66 "@babel/cli": "^7.10.0",
67 "@babel/core": "^7.10.0",
68 "@babel/node": "^7.8.7",
69 "@babel/plugin-proposal-class-properties": "^7.8.3",
70 "@babel/plugin-proposal-nullish-coalescing-operator": "^7.8.3",
71 "@babel/plugin-proposal-object-rest-spread": "^7.10.0",
72 "@babel/plugin-proposal-optional-chaining": "^7.10.0",
73 "@babel/preset-env": "^7.10.0",
74 "@babel/preset-typescript": "^7.9.0",
75 "@semantic-release/changelog": "^5.0.1",
76 "@types/lodash": "^4.14.152",
77 "@typescript-eslint/eslint-plugin": "2.34.0",
78 "@typescript-eslint/parser": "2.34.0",
79 "babel-eslint": "^10.1.0",
80 "babel-loader": "^8.1.0",
81 "babel-minify-webpack-plugin": "^0.3.1",
82 "babel-plugin-inline-replace-variables": "^1.3.1",
83 "babel-plugin-lodash": "^3.3.4",
84 "babel-plugin-rewire-ts": "1.3.3",
85 "better-docs": "^2.0.1",
86 "blue-tape": "^1.0.0",
87 "bundlesize": "^0.18.0",
88 "codecov": "^3.1.0",
89 "contentful-sdk-jsdoc": "^2.2.0",
90 "core-js": "^2.5.7",
91 "cz-conventional-changelog": "^3.2.0",
92 "delay": "^4.3.0",
93 "eslint": "^6.8.0",
94 "eslint-config-prettier": "^6.11.0",
95 "eslint-plugin-import": "^2.20.2",
96 "eslint-plugin-node": "^11.1.0",
97 "eslint-plugin-promise": "^4.2.1",
98 "express": "^4.16.4",
99 "husky": "^4.2.3",
100 "in-publish": "^2.0.0",
101 "istanbul": "^1.0.0-alpha.2",
102 "json": "^9.0.3",
103 "karma": "^5.0.1",
104 "karma-babel-preprocessor": "^8.0.1",
105 "karma-chrome-launcher": "^3.1.0",
106 "karma-firefox-launcher": "^1.0.1",
107 "karma-sauce-launcher": "^4.1.2",
108 "karma-tap": "^4.1.4",
109 "karma-webpack": "^4.0.2",
110 "lint-staged": "^10.2.6",
111 "lodash-webpack-plugin": "^0.11.5",
112 "nodemon": "^2.0.4",
113 "prettier": "^2.0.5",
114 "require-all": "^3.0.0",
115 "rimraf": "^3.0.2",
116 "selenium-webdriver": "^3.5.0",
117 "semantic-release": "^17.0.4",
118 "sinon": "^9.0.1",
119 "tap-spec": "^5.0.0",
120 "trevor": "^2.2.0",
121 "typedoc": "^0.18.0",
122 "typescript": "^3.9.3",
123 "webpack": "^4.23.1",
124 "webpack-bundle-analyzer": "^3.3.2",
125 "webpack-cli": "^3.1.2"
126 },
127 "config": {
128 "commitizen": {
129 "path": "./node_modules/cz-conventional-changelog"
130 }
131 },
132 "lint-staged": {
133 "*.{js,jsx,ts,tsx}": [
134 "prettier --write",
135 "eslint"
136 ],
137 "*.md": [
138 "prettier --write"
139 ]
140 },
141 "husky": {
142 "hooks": {
143 "pre-commit": "lint-staged"
144 }
145 },
146 "release": {
147 "branches": [
148 "master",
149 "next",
150 "next-major",
151 {
152 "name": "experimental",
153 "channel": "experimental",
154 "prerelease": true
155 }
156 ],
157 "plugins": [
158 [
159 "@semantic-release/commit-analyzer",
160 {
161 "releaseRules": [
162 {
163 "type": "build",
164 "scope": "deps",
165 "release": "patch"
166 }
167 ]
168 }
169 ],
170 "@semantic-release/release-notes-generator",
171 "@semantic-release/changelog",
172 "@semantic-release/npm",
173 "@semantic-release/github"
174 ]
175 },
176 "bundlesize": [
177 {
178 "path": "./dist/contentful-management.browser.js",
179 "maxSize": "71Kb"
180 },
181 {
182 "path": "./dist/contentful-management.browser.min.js",
183 "maxSize": "20Kb"
184 },
185 {
186 "path": "./dist/contentful-management.legacy.js",
187 "maxSize": "85Kb"
188 },
189 {
190 "path": "./dist/contentful-management.legacy.min.js",
191 "maxSize": "26Kb"
192 },
193 {
194 "path": "./dist/contentful-management.node.js",
195 "maxSize": "80Kb"
196 },
197 {
198 "path": "./dist/contentful-management.node.min.js",
199 "maxSize": "25Kb"
200 }
201 ]
202}