Skip to content
Core modules for the Contentful JS SDKs
JavaScript
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
lib
test
.babelrc
.eslintrc.js
.gitignore
.istanbul.yml
.travis.yml
LICENSE
README.md
browserlist
package.json
rollup.config.js

README.md

contentful-sdk-core

Build Status codecov David David

MIT License NPM Version npm downloads js-standard-style semantic-release Commitizen friendly

This package contains some core modules and utilities used by both the contentful.js and contentful-management.js SDKs.

About

Contentful provides a content infrastructure for digital teams to power content in websites, apps, and devices. Unlike a CMS, Contentful was built to integrate with the modern software stack. It offers a central hub for structured content, powerful management and delivery APIs, and a customizable web app that enable developers and content creators to ship digital products faster.

Pre-requisites

  • Make sure you use at least Node 4.7

Installation

npm install --saveDev contentful-sdk-core

Use case

This package contains some core modules and utilities used by both the contentful.js and contentful-management.js SDKs.

Support

We support all current browsers in their last 3 versions including IE 11. The minimal node version is 4.

ES2015 modules version

For bundlers like webpack2 and rollup we support the module & jsnext:main entry in the package.json

Development

Create the default and the es-modules build:

npm run build

Run Tests:

Run only the unit tests:

npm run test:unit

Run unit tests including coverage report:

npm run test:cover

Run unit tests with coverage report and display the result in your browser:

npm run browser-coverage

Emulate a CI test run:

npm run test:ci-emulate

Enable debug mode for tests:

npm run test:debug
You can’t perform that action at this time.