react-svg

v14.0.10
A React component that injects SVG into the DOM.
dom html images img javascript react scalable vector graphics svg svginjector and 2 more...

build

run-s clean compile bundle

bundle

rollup -c

check:format

prettier --list-different "**/*.{js,ts,tsx}"

check:types

tsc --noEmit

clean

run-p clean:*

clean:compiled

shx rm -rf compiled

clean:coverage

shx rm -rf coverage

clean:dist

shx rm -rf dist

compile

tsc -p tsconfig.base.json

format

prettier --write "**/*.{js,ts,tsx}"

lint

eslint .

postbundle

npm run clean:compiled && shx cp ./index.js ./dist/index.js

release

tanem-scripts release

test

run-s check:* lint build test:*

test:cjs

jest --config ./scripts/jest/config.cjs.js

test:cjsprod

cross-env NODE_ENV=production jest --config ./scripts/jest/config.cjs.js

test:es

jest --config ./scripts/jest/config.es.js

test:src

jest --config ./scripts/jest/config.src.js

test:umd

jest --config ./scripts/jest/config.umd.js

test:umdprod

jest --config ./scripts/jest/config.umdprod.js

Metadata

  • MIT
  • Whatever
  • Tane Morgan
  • released 8/29/2021

Downloads

Maintainers