Skip to content

Commit fc71e36

Browse files
author
Emily
authored
Merge pull request #86 from primer/release-0.0.6-beta
0.0.6-beta release tracking
2 parents f043ea1 + 06beb55 commit fc71e36

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

75 files changed

+2464
-823
lines changed

.DS_Store

-10 KB
Binary file not shown.

.babelrc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"presets": ["env", "react"]
3-
}
2+
"presets": ["env", "stage-0", "react"]
3+
}

.eslintrc.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"extends": [
3+
"plugin:github/es6",
4+
"plugin:github/react",
5+
"plugin:jsx-a11y/recommended"
6+
],
7+
"rules": {
8+
"jsx-a11y/no-autofocus": "warn",
9+
"react/prop-types": "warn",
10+
"react/sort-prop-types": "warn"
11+
}
12+
}

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
1+
.DS_Store
2+
dist/
13
node_modules
24
npm-debug.log

.npmrc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
save=true
2+
save-exact=true

.travis.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,10 @@ node_js:
44
- 8
55

66
script:
7+
- npm run lint
78
- npm test
89
- npm run build
10+
- npm run build:docs
11+
12+
notifications:
13+
slack: github:4OisIoqZYyMlWcw3hFtZgbmh

README.md

Lines changed: 38 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,43 @@ Run `primer-react` locally when adding or updating components.
2020

2121
Clone this repo: `$ git clone https://github.com/primer/primer-react.git`
2222

23-
Install dependencies: `npm install`
23+
To run `primer-react` locally when adding or updating components:
2424

25-
Run app with: `npm run start`
25+
1. Clone this repo: `$ git clone https://github.com/primer/primer-react.git`
26+
1. Install dependencies: `npm install`
27+
1. Run the dev app with: `npm start`
2628

27-
Build docs before publishing: `npm run build`
29+
Remember to build docs before publishing with: `npm run build`
30+
31+
### Code Style
32+
33+
We use the [React configuration](https://github.com/github/eslint-plugin-github/blob/master/lib/configs/react.js)
34+
from [GitHub's eslint plugin](https://github.com/github/eslint-plugin-github)
35+
to lint our JavaScript. To check your work before pushing, run:
36+
37+
```
38+
npm run lint
39+
```
40+
41+
Or, you can use [npx] to run eslint on one or more specific files:
42+
43+
44+
```sh
45+
# lint the component and the tests in src/__tests__
46+
npx eslint src/**/MyComponent.js
47+
```
48+
49+
**Protip:** The [eslint `--fix` flag](https://eslint.org/docs/user-guide/command-line-interface#--fix)
50+
can automatically fix most linting errors, such as those involving whitespace
51+
or incorrect ordering of object keys and imports. You can fix those issues
52+
across the entire project with:
53+
54+
```sh
55+
npm run lint -- --fix
56+
```
57+
58+
**Protip:** `npm run lint -- --quiet` (or `npx eslint --quiet ...`) will
59+
suppress warnings so that you can focus on fixing errors.
2860

2961
### Testing
3062

@@ -48,3 +80,6 @@ example of how we're testing our components.
4880
- Keep system constrained by only including props needed per component.
4981
- Favor extending or wrapping components for more complex operations.
5082
- Maintain design system consistency with utilities as props (for spacing, color, font-size, line-height, widths, and radii).
83+
84+
85+
[npx]: https://www.npmjs.com/package/npx

docs/.DS_Store

-6 KB
Binary file not shown.

docs/404.html

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
4+
<head>
5+
<meta charset="utf-8" />
6+
7+
<title>primer-react</title>
8+
9+
<script>
10+
sessionStorage.redirect = location.href;
11+
</script>
12+
13+
<meta http-equiv="refresh" content="0;URL='/primer-react'"></meta>
14+
</head>
15+
16+
<body>
17+
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
18+
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
19+
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
20+
</body>

docs/bundle.js

Lines changed: 21 additions & 21 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)