0.1.3 • Published 5 years ago
react-pathing-builder v0.1.3
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-builderonce 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 startStarts up a webpack dev server pointing at examples/src,
which imports from the full TypeScript src, available at
localhost:3001.
Build
yarn buildTranspiles 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