A map builder for pathing applications
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" />)
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.
yarn build
Transpiles and packs src into lib/index.js
, builds
TypeScript declaration files at lib/*.d.ts
,
and copies the css file.
-
yarn
- install dependencies and build -
yarn start
- start webpack dev server -
yarn build
- build the module, including types
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