@paypal/smart-payment-buttons

v5.0.111
Serverside rendered ButtonJS

flow

flow

lint

eslint --ext .js --ext .jsx src/ server/ test/ *.js

test

if [ ! $SKIP_TEST ]; then npm run lint && npm run flow-typed && npm run flow check && npm run karma && npm run jest:server && npm run jest:client; fi;

babel

babel server --ignore=node_modules --out-dir server && babel webpack.config.js globals.js --out-dir .

build

npm run test && npm run webpack

clean

rimraf dist coverage

cover

echo no-cover

debug

cross-env NODE_ENV=debug

karma

cross-env NODE_ENV=test babel-node --plugins=transform-es2015-modules-commonjs ./node_modules/.bin/karma start

setup

npm install && npm run flow-typed

start

babel-node ./server/devServer

cdnify

grabthar-cdnify --cdn=https://www.paypalobjects.com

deploy

npm run cdnify

release

npm run build-commit && grabthar-release

webpack

babel-node --plugins=transform-es2015-modules-commonjs ./node_modules/.bin/webpack --progress

activate

grabthar-activate --CDNIFY=false

reinstall

rimraf flow-typed && rimraf node_modules && npm install && flow-typed install

flow-typed

rm -rf ./flow-typed && flow-typed install --ignoreDeps peer && flow-typed install jest@24 mocha@4 && flow-typed install [email protected] && sed -i -e 's/http$IncomingMessage,/http$IncomingMessage<>,/g' ./flow-typed/npm/express_v4.16.x.js

jest:client

jest src/ --collectCoverage --collectCoverageFrom='src/' --testPathIgnorePatterns=/fixtures/ --no-cache --runInBand --env=jsdom

jest:server

jest test/server --collectCoverage --collectCoverageFrom='server/' --env=node --no-cache --runInBand

postinstall

npm_config_registry=https://npm.paypal.com npm install @paypalcorp/web --no-save --proxy='null' --https-proxy='null' || echo 'Unable to install cdnx cli tools'

postpublish

if [ "$DRY_RUN" != 'true' ]; then git clean -f && git checkout .; fi;

postrelease

npm run cdnify -- --commitonly

release:cli

rm -rf node_modules && npm i && npm run build-commit && grabthar-release

activate:cli

CDN='https://www.paypalobjects.com' grabthar-activate

build-commit

npm run build && git add dist && (git commit -m 'Dist' || echo 'Nothing to commit') && git push

postactivate

npm run cdnify -- --commitonly

prepublishOnly

npm run babel

release:dry-run

DRY_RUN=true grabthar-release
npm i @paypal/[email protected]

Metadata

Downloads