react-pathing-builder
TypeScript icon, indicating that this package has built-in type declarations

0.1.3 • Public • Published

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 build
  • yarn start - start webpack dev server
  • yarn 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

Readme

Keywords

none

Package Sidebar

Install

npm i react-pathing-builder

Weekly Downloads

0

Version

0.1.3

License

MIT

Unpacked Size

127 kB

Total Files

58

Last publish

Collaborators

  • skgrush