contentful

v7.12.1
Client for Contentful's Content Delivery API

lint

eslint lib test

test

npm run test:cover && npm run test:integration && npm run test:browser-local && npm run test:size

build

npm run clean && npm run build:modules && npm run build:standalone

clean

rimraf dist

prepush

npm run test:prepush

pretest

rimraf coverage && npm run lint

test:ci

npm run build && ./node_modules/contentful-sdk-core/bin/test-ci.sh

docs:dev

npm run build && npm run docs:build

test:e2e

node test/e2e/index.js

precommit

npm run lint

test:size

bundlesize

test:unit

BABEL_ENV=test node ./test/runner | tap-spec

docs:build

jsdoc -c jsdoc.json

docs:watch

nodemon --exec npm run docs:dev -w lib

test:cover

BABEL_ENV=test node ./node_modules/istanbul/lib/cli.js cover ./test/runner | tap-spec

test:debug

BABEL_ENV=test node debug ./test/runner

postpublish

npm run docs:publish && npm run clean

devdep:build

pushd ../contentful-sdk-core && npm run build && popd

devdep:clean

pushd ../contentful-sdk-core && npm run clean && popd

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

build:modules

BABEL_ENV=modules babel lib -d dist/es-modules/

devdep:install

npm run devdep:build && rm -rf node_modules/contentful-sdk-core && npm install ../contentful-sdk-core && npm run devdep:clean

browser-coverage

npm run test:cover && opener coverage/lcov-report/index.html

build:standalone

NODE_ENV=development webpack && NODE_ENV=production webpack

devdep:uninstall

npm run devdep:clean && rimraf node_modules/contentful-sdk-core

semantic-release

semantic-release

test:integration

BABEL_ENV=test babel-node ./test/integration/runner.js | tap-spec

test:simulate-ci

trevor

test:browser-local

BABEL_ENV=test karma start karma.conf.local.js

presemantic-release

npm run build

test:browser-remote

BABEL_ENV=test karma start karma.conf.saucelabs.js

build:standalone:log

NODE_ENV=production WEBPACK_MODE=log webpack --json --profile --progress > webpack-build-log.json && webpack-bundle-analyzer webpack-build-log.json

test:integration-debug

BABEL_ENV=test babel-node debug ./test/integration/runner.js

Metadata

  • MIT
  • >=6
  • Contentful
  • released 1/9/2020

Downloads