1.0.0-rc.0 • Published 5 years ago

clark-schedule v1.0.0-rc.0

Weekly downloads
10
License
MIT
Repository
github
Last release
5 years ago

Clark Schedule

NPM

Getting Started

  • You will need to install Yarn for dependency management, if you do not have it already installed.

  • Run the yarn command to install node_modules

Testing library integration locally

To test clark-styles locally, run yarn build. Make sure build/ directory exists and then follow the instructions here.

Testing

We use jest for running our test suite. All new utility functions should be pure and thoroughly unit-tested. Run yarn test to start the test runner

Flow

This project uses flow to do static typechecking. We're using the flowtype eslint plugin to enforce adding flow annotations to all files and stylistic consistency.

Run yarn flow to start the flow server. If you run into unexpected failures, as a first troubleshooting step, run yarn flow stop and then start the server again to bust the cache.

Updating

For convience sake, we use the cut-release project to easily publish to npm and follow SEMVER. Don't forget to update the changelog!

Once you have cut a release remember to bump the version in your project.

Usage

To use the library run yarn add clark-schedule.

import React from 'react'
import Schedule from 'clark-schedule';

const App = () => (
  <Schedule
    onSelectEvent={event => dispatchPush(`sessions/${event.id}`)}
    onSelectSlot={({ start, end }) =>
      dispatchPush({
        pathname: `tutors/${tutor.id}/sessions/new`,
        state: { start, end },
      })
    }
    events={transformTutorSessionsToCalendarEvents(tutorSessions, clients)}
  />
);

License

MIT © hiclark

1.0.0-rc.0

5 years ago

0.3.0

5 years ago

0.2.0

5 years ago

0.1.0

5 years ago