contentful

v11.1.4
Client for Contentful's Content Delivery API

clean

rimraf dist

build

npm run clean && npm run build:esm && npm run build:bundles && rm -rf dist/esm-raw

build:esm

tsc

build:bundles

NODE_ENV=production rollup -c

postbuild

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

check

npm run check:cjs && npm run check:esm && npm run check:browser && npm run check:browser-min

check:browser

es-check es2018 ./dist/contentful.browser.js

check:browser-min

es-check es2018 ./dist/contentful.browser.min.js

check:cjs

es-check es2017 './dist/contentful.cjs'

check:esm

es-check es2017 --module './dist/esm/*.js'

docs:build

typedoc --options typedoc.json

docs:watch

npm run docs:build -- --watch

docs:publish

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

lint

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

prettier

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

prettier:check

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

pretest

rimraf coverage

test

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

test:unit

vitest --run ./test/unit

test:unit:watch

vitest ./test/unit

test:integration

vitest --run ./test/integration

test:integration:watch

vitest ./test/integration

test:size

bundlesize

test:demo-projects

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

test:demo-node

rimraf ./test/output-integration/node/node-modules && npm --prefix ./test/output-integration/node ci && vitest --run ./test/output-integration/node

test:demo-browser

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

test:types

tsd

test:prepush

npm run build && npm run test:unit && npm run test:types

prepublishOnly

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

postpublish

npm run docs:publish && npm run clean

semantic-release

semantic-release

prepare

husky

precommit

npm run lint && npm run prettier:check

prepush

npm run test:prepush
npm i contentful

Metadata

  • MIT
  • >=18
  • Contentful
  • released 10/15/2024

Downloads