react-svg

v15.1.4
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

clean:react

ts-node ./scripts/clean-react

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 ./config/jest/config.cjs.js

test:cjsprod

jest --config ./config/jest/config.cjsprod.js

test:es

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

test:src

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

test:umd

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

test:umdprod

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

test:react

ts-node ./scripts/test-react

Metadata

  • MIT
  • Whatever
  • Tane Morgan
  • released 7/29/2022

Downloads

Maintainers