@identity.com/credential-commons

v0.2.24
Verifiable Credential and Attestation Library
credentials anchor attestation

lint

eslint ./src/**.js ./__test__/**.js --max-warnings=0

test

cross-env NODE_ENV=false jest

test:watch

jest --watch

check-schemas

cross-env NODE_ENV=false jest --no-coverage __integrations__/schemas/

generate-schemas

cross-env NODE_ENV=test node scripts/generateSchemas.js

publish-schemas

node scripts/publishSchemas.js && aws s3 cp ./dist/schemas/public/ $S3_BUCKET_SCHEMA_URL --recursive --acl public-read

generate-civic-config

cross-env NODE_ENV=test node scripts/configuration.js

build:cjs

BABEL_ENV=cjs babel src -d dist/cjs

build:es

babel src -d dist/es --no-babelrc

build:browser:before

BABEL_ENV=browser babel src -d dist/prebrowser

build:browser:after

minify dist/prebrowser -d dist/browser

build:browser:clean

rimraf dist/prebrowser

build:browser

npm run build:browser:before && npm run build:browser:after && npm run build:browser:clean

build

npm run build:browser && npm run build:cjs && npm run build:es

postversion

git add --all && git commit -m"build and version $npm_package_version" -m"[skip ci]" && git push

pretag

git fetch --tags

tag

git tag v$npm_package_version && git push origin --tags

precommit

npm run lint
npm i @identity.com/[email protected]

Metadata

  • MIT
  • Whatever
  • Identity.com Community
  • released 11/1/2018

Downloads