README
PayPal Credit Messaging
A messaging component allowing easy integration of PayPal Credit Messages onto your site.
Dev Docs
See developer.paypal.com/docs/business/pay-later/integrate/
Development
Please feel free to follow the Contribution Guidelines to contribute to this repository. PRs are welcome, but for major changes please raise an issue first.
Quick Setup
Set up your env:
npm install
Run tests:
npm test
Run in dev mode:
npm start
Scripts
build
- runs semantic-release/assets.sh to build assets for all environments in
dist/
- runs semantic-release/assets.sh to build assets for all environments in
build:<env>
where<env>
isstage
,sandbox
, orproduction
- runs webpack with
NODE_ENV=<env>
- runs webpack with
build:analyze
- runs webpack-bundle-analyzer in static gzip mode
build:demo
- runs webpack with
env.demo
set
- runs webpack with
dev
- runs webpack-dev-server with
TARGET=sdk
,NODE_ENV=local
,STAGE_TAG=local
- runs webpack-dev-server with
dev:<target>
where<target>
isstandalone
,modal
, orlander
- runs webpack-dev-server with
TARGET=<target>
,NODE_ENV=local
,STAGE_TAG=local
- note:
modal
usesTARGET=standalone-modal
- runs webpack-dev-server with
dev:<env>
where<env>
isstage
,sandbox
, orproduction
- runs webpack-dev-server with
TARGET=standalone
andNODE_ENV=<env>
- runs webpack-dev-server with
lint
- checks our codebase for style issues
preinstall
- runs automatically on
npm install
and removesnode_modules/
- runs automatically on
start
- runs
npm run dev
- runs
test
- runs all unit tests
test:<type>
where<type>
isfunc
,func:nosnaps
orfunc:ciupdate
func
runs all snapshot functional testsfunc:nosnaps
runs all non-snapshot functional testsfunc:ciupdate
updates all snapshots generated by functional tests
Testing
Functional
To run functional tests, first run npm run dev:standalone
in one command line instance and npm run test:func
in a second command line instance. The dev:standalone
command creates static pages that the functional tests are run on.
Releasing
This package is published weekly, Every Wednesday. Please view our Changelog to stay updated with bug fixes and new features.