@americanexpress/one-app-router

v1.2.1
A complete routing library for One App, forked from React Router
react react-component routing route routes router

build

npm run build-cjs && npm run build-es

build-cjs

rimraf lib && cross-env BABEL_ENV=cjs babel ./modules -d lib --ignore __tests__

build-es

rimraf es && cross-env BABEL_ENV=es babel ./modules -d es --ignore __tests__

build-umd

cross-env NODE_ENV=development webpack modules/index.js umd/ReactRouter.js

build-min

cross-env NODE_ENV=production webpack -p modules/index.js umd/ReactRouter.min.js

prepublish

npm run build

lint

eslint examples modules scripts tools *.js

start

node examples/server.js

test

npm run lint && npm run test-node && npm run test-browser

test-browser

cross-env NODE_ENV=test karma start --single-run

test:git-history

commitlint --from origin/main --to HEAD

test-browser:watch

cross-env NODE_ENV=test karma start

test-node

cross-env NODE_ENV=test mocha --require babel-register tests.node.js

test:lockfile

lockfile-lint -p package-lock.json -t npm -a npm -o https: -c -i

posttest

npm run test:git-history && npm run test:lockfile
npm i @americanexpress/one-app-router

Metadata

Downloads