contentful-migration

v1.0.2
Migration tooling for contentful
contentful content model content type migration migrations migrate

lint

eslint 'examples/**/*.js' 'test/**/*.js' 'src/**/*.js' && tslint --project tsconfig-dev.json --config tslint.json

test

NOCK_RECORD=0 npm run build && npm run test-unit && npm run test-integration && npm run test-e2e && npm run lint && npm run test-typescript-declaration

build

npm run clean && tsc -p tsconfig.json

clean

rimraf built

cover

nyc --no-clean -s npm run test-unit && nyc --no-clean -s npm run test-integration && nyc --no-clean -s npm run test-e2e && nyc report

prepare

npm run build

coverage

npm run build && npm run cover && nyc report --reporter=text-lcov > coverage.lcov

test-e2e

NODE_ENV=test mocha 'test/end-to-end/**/*.spec.js'

build-dev

npm run clean && tsc -p tsconfig-dev.json

cover-e2e

nyc npm run test-e2e

test-unit

NODE_ENV=test mocha --require test/setup-unit.js --recursive 'test/unit/**/**/*.spec.{js,ts}'

cover-unit

nyc npm run test-unit

test-watch

npm run test-unit -- --watch

coverage-report

npm run coverage && codecov && rm -rf ./nyc_output && rm coverage.lcov

semantic-release

semantic-release

test-integration

NODE_ENV=test mocha --require test/integration/setup.js 'test/integration/**/*.spec.js'

cover-integration

nyc npm run test-integration

travis-deploy-once

travis-deploy-once

test-typescript-declaration

tsc --strict --noEmit index.d.ts

Metadata

  • MIT
  • >=8.0.0
  • Contentful GmbH
  • released 9/27/2019

Downloads