2019-04-23 15:36:36 +03:00
|
|
|
# Members Theme Bindings
|
|
|
|
|
|
|
|
## Install
|
|
|
|
|
|
|
|
`npm install @tryghost/members-theme-bindings --save`
|
|
|
|
|
|
|
|
or
|
|
|
|
|
|
|
|
`yarn add @tryghost/members-theme-bindings`
|
|
|
|
|
|
|
|
|
|
|
|
## Usage
|
|
|
|
|
|
|
|
```js
|
|
|
|
const MembersThemeBindings = require('@tryghost/members-theme-bindings');
|
|
|
|
|
2019-04-23 16:40:49 +03:00
|
|
|
MembersThemeBindings.init({siteUrl: "https://ghost-site.com/root-ghost-path"});
|
2019-04-23 15:36:36 +03:00
|
|
|
```
|
|
|
|
|
|
|
|
## Develop
|
|
|
|
|
|
|
|
This is a mono repository, managed with [lerna](https://lernajs.io/).
|
|
|
|
|
|
|
|
Follow the instructions for the top-level repo.
|
|
|
|
1. `git clone` this repo & `cd` into it as usual
|
|
|
|
2. Run `yarn` to install top-level dependencies.
|
|
|
|
|
|
|
|
|
|
|
|
## Run
|
|
|
|
|
|
|
|
- `yarn dev`
|
|
|
|
|
|
|
|
|
|
|
|
## Test
|
|
|
|
|
|
|
|
- `yarn lint` run just eslint
|
|
|
|
- `yarn test` run lint and tests
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Copyright & License
|
|
|
|
|
|
|
|
Copyright (c) 2019 Ghost Foundation - Released under the [MIT license](LICENSE).
|