contentful

v10.0.0-beta-v10.28
Client for Contentful's Content Delivery API

lint

eslint "lib/**" "test/**"

test

npm run test:unit && npm run test:integration && npm run lint && npm run test:types

build

npm run clean && npm run build:dev && npm run build:prod

clean

rimraf dist

prepush

npm run test:prepush

pretest

rimraf coverage

prettier

prettier --write '**/*.{jsx,js,ts,tsx}'

build:dev

NODE_ENV=development webpack

postbuild

npm run check:browser && npm run check:node && npm run test:demo-projects

precommit

npm run lint && npm run prettier:check

test:size

bundlesize

test:unit

jest ./test/unit

build:prod

NODE_ENV=production webpack

check:node

es-check es2017 ./dist/contentful.node.js

docs:build

typedoc --options typedoc.json

docs:watch

npm run docs:build -- --watch

test:types

tsd

build:types

tsc --declaration --emitDeclarationOnly

postpublish

npm run docs:publish && npm run clean

docs:publish

npm run docs:build && ./node_modules/contentful-sdk-jsdoc/bin/publish-docs.sh contentful.js contentful

test:prepush

npm run build && npm run test:unit && npm run test:size

check:browser

es-check es2017 --module ./dist/contentful.browser.js

prepublishOnly

export PUBLISH_RUN=true && npm run build && unset PUBLISH_RUN

prettier:check

prettier --check '**/*.{jsx,js,ts,tsx}'

test:demo-node

rimraf ./test/output-integration/node/node-modules && npm --prefix ./test/output-integration/node install && jest ./test/output-integration/node

test:unit:watch

jest ./test/unit --watch

semantic-release

semantic-release

test:integration

jest ./test/integration

test:demo-browser

rimraf ./test/output-integration/browser/node-modules && npm --prefix ./test/output-integration/browser install && npm --prefix ./test/output-integration/browser run test

test:demo-projects

npm run test:demo-node && npm run test:demo-browser

Metadata

  • MIT
  • >=12
  • Contentful
  • released 3/20/2023

Downloads