You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: RELEASING.md
+9-10Lines changed: 9 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,26 +2,25 @@
2
2
3
3
We use conventional commits to dynamically version the packages. It's imperative that maintainers of Ray `squash and merge` all pull requests and edit the commit message/description to follow the guidelines of [Conventional Commits][conventional-commits]. All releases must follow [Semantic Versioning][semver].
4
4
5
-
## Versioning
5
+
## Automatic Releases
6
6
7
-
Releases are automatically created when a commit is merged into master. Circle CI will kick off a job, bump the version and publish to the npm registry.
7
+
Releases are automatically created when a commit is merged into master. Lerna will automatically determine the correct version for each package based on the contents of the commits. Circle CI will kick off a job, bump the version and publish to the npm registry.
8
8
9
-
## Manual Release
9
+
> Note: All packages within the repo that contain `private: true` in its `package.json` will not be published to the registry.
10
+
11
+
The [Ray documentation site](https://ray.wework.com/) is automatically built and published on Netlify after any merge to master. Deploy previews are also available on any pull request.
12
+
13
+
## Manual Publish
10
14
11
-
If a manual release needs to be created for some reason, a Ray maintainer may do the following:
15
+
Manual publishing is not recommended, and may result in unexpected behavior. If a manual release needs to be created for some reason, a Ray maintainer may do the following:
12
16
13
-
- Make sure you have a `GH_TOKEN`, a GitHub personal access token with write access to `@wework/ray`.
14
-
- Also, you will need an `.npmrc` with the contents `//registry.npmjs.org/:_authToken=${NPM_TOKEN}`, where `NPM_TOKEN` is an NPM access token with write access to the WeWork organization. Then run:
17
+
> Note: Ensure you are logged into NPM (`npm whoami`/`npm login`) with an account with write access to the `@wework` NPM space
15
18
16
19
```bash
17
20
$ yarn bootstrap
18
21
$ yarn build
19
22
$ yarn lerna:publish
20
23
```
21
24
22
-
Lerna will automatically determine the correct version for each package based on the contents of the commits.
23
-
24
-
> Note: All packages within the repo that contain `private: true` in its `package.json` will not be published to the registry.
Copy file name to clipboardExpand all lines: docs/getting-started.md
+29-7Lines changed: 29 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,21 +19,43 @@ Install via npm
19
19
$ npm install --save @wework/ray-core
20
20
```
21
21
22
+
## Import
23
+
22
24
Ray requires both CSS and JavaScript files to be imported into your application.
23
-
We encourage the use of the Sass source files as they give access to Ray variables and mixins.
24
25
25
-
### SCSS/CSS
26
+
### CSS
27
+
28
+
We encourage the use of the Sass source files, as they give access to Ray variables and mixins. If you are using Sass for your project, simply import the Ray SCSS file into your app's main stylesheet:
26
29
27
30
```css
28
31
@import'@wework/ray-core/scss/ray-core';
29
32
```
30
33
34
+
If you prefer to use plain CSS, you can either [use our CDN](#cdn), or import the Ray CSS file at `@wework/ray-core/css/ray-core`
35
+
31
36
### JavaScript
32
37
33
-
**Note:** For convenience, Ray will automatically instantiate any components that require JavaScript on `DOMContentLoaded`. If components are generated after this event (i.e. client-side rendered), or if they require additional programming, you can use the APIs available on the component level throughtout the documentation.
38
+
In order for certain components to work properly, you must import Ray into your app:
39
+
40
+
```js
41
+
import'@wework/ray-core';
42
+
```
43
+
44
+
For convenience, Ray will automatically instantiate any components that require JavaScript on `DOMContentLoaded`.
45
+
46
+
If components are generated after this event (i.e. client-side rendered), or if they require additional programming, you can import individual component classes and use the APIs available on the component level throughout the documentation:
34
47
35
48
```js
36
49
import { Select } from'@wework/ray-core';
50
+
51
+
// instantiate all instances found in the document
0 commit comments