contentful

v4.2.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

build

npm run clean && npm run build:ci

clean

rimraf dist && rimraf coverage

prepush

npm run test:only

pretest

npm run lint

test:ci

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

build:ci

npm run vendor:version && npm run build:standalone

docs:dev

npm run build && npm run docs:build

precommit

npm run lint

test:only

BABEL_ENV=test babel-node ./test/runner

docs:build

esdoc -c esdoc.json

docs:watch

watchy -w lib npm run docs:dev

prepublish

in-publish && npm run build:ci || not-in-publish

test:cover

BABEL_ENV=test babel-node ./node_modules/istanbul/lib/cli.js cover test/runner

test:debug

BABEL_ENV=test babel-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

devdep:install

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

vendor:version

echo "module.exports = '`cat package.json|json version`'" > version.js

browser-coverage

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

build:standalone

BABEL_ENV=webpack webpack && BABEL_ENV=webpack NODE_ENV=production webpack -p

devdep:uninstall

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

semantic-release

semantic-release pre && npm publish && semantic-release post

test:integration

BABEL_ENV=test babel-node ./test/integration/tests.js

test:simulate-ci

trevor

test:browser-local

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

test:browser-remote

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

build:standalone:log

BABEL_ENV=webpack npm run build && BABEL_ENV=webpack NODE_ENV=production webpack -p --json --profile > webpack-build-log.json

test:integration-debug

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

Metadata

  • MIT
  • >=4.7.2
  • Contentful
  • released 4/21/2017

Downloads