1.0.4 • Published 5 years ago
one-weir-ver16 v1.0.4
one-weir
One UI for One Weir
Documentation
Thanks for using the one-weir component library. More information about how we work can be found on our documentation site
Install
1. Create a new Personal Access Token (https://github.com/settings/tokens). SAVE THE TOKEN!
2. Open a terminal
3. Run npm install https://[YOUR PERSONAL ACCESS TOKEN]:x-oauth-basic@github.com/weirgroup/one-weir.git#dist
To develop one-weir while developing another application
To make changes to one-weir while you are developing another app, you need to run npm link and link your local dev directories. After you run these steps, whenever you make a change to one-weir, your app will also reload. Be sure to make a PR to submit your one-weir changes!
- Open a terminal
- Clone one-weir to a directory
- Change directory to one-weir
- Run
npm install
- Run
npm link
- Run
npm run start
- One-Weir is now running and listening for any changes to one-weir code - Change directory to the application directory
- Run
npm link one-weir
- Start your application. Now the application will use one-weir source directory instead of the packaged distribution.
IMPORTANT: Before you check in code - remove your Personal access token from package.json
- Open package.json
- Find one-weir
- Replace
git+https://[YOUR PERSONAL ACCESS TOKEN]:x-oauth-basic@github.com/weirgroup/one-weir.git#dist
withgit+ssh://git@github.com/weirgroup/one-weir.git#dist
Usage
import * as React from 'react'
import MyComponent from 'one-weir'
class Example extends React.Component {
render () {
return (
<MyComponent />
)
}
}
License
MIT © Dirk-tooth
1.0.4
5 years ago