Licence
MIT
Version
0.1.3
Deps
0
Size
124 kB
Vulns
0
Weekly
0
react-pathing-builder
A map builder for pathing applications
Install as a Dependency
In your existing npm-like repository, run one of the following:
yarn add react-pathing-builder
# or
npm install react-pathing-builder
once added, import as needed:
import * as React from 'react'
import {render} from 'react-dom'
import {PathingBuilder} from 'react-pathing-builder'
// example
render(<PathingBuilder mapSrc="https://placehold.it/300" />)
Test / Develop
git clone git@github.com:skgrush/react-pathing-builder.git
cd react-pathing-builder
yarn install
yarn start
Starts up a webpack dev server pointing at examples/src,
which imports from the full TypeScript src, available at
localhost:3001.
Build
yarn build
Transpiles and packs src into lib/index.js, builds
TypeScript declaration files at lib/*.d.ts,
and copies the css file.
scripts
yarn- install dependencies and buildyarn start- start webpack dev serveryarn build- build the module, including types
npm equivalent scripts
npm start works, and other scripts that don't call yarn work
just fine with npm.
Build:
npm run clean:build && \
npm run build:types && \
npm run build:js && \
npm run build:css