Skip to content

Commit

Permalink
Merge pull request #28 from mcrowder65/style-guidist
Browse files Browse the repository at this point in the history
added styleguidist
  • Loading branch information
mcrowder65 committed Mar 25, 2019
2 parents 8198aed + 96227a8 commit 0f26c9f
Show file tree
Hide file tree
Showing 8 changed files with 3,716 additions and 40 deletions.
3,702 changes: 3,664 additions & 38 deletions package-lock.json

Large diffs are not rendered by default.

9 changes: 7 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@
"build": "babel src --out-dir lib --ignore \"src/**/*.spec.js\",\"src/**/*.test.js\"",
"coveralls": "cat ./coverage/lcov.info | ./node_modules/.bin/coveralls",
"preversion": "npm test && npm run build",
"postversion": "git push && git push --tags && npm publish"
"postversion": "git push && git push --tags && npm publish",
"styleguide": "styleguidist server",
"styleguide:build": "npm install && styleguidist build && rm -rf docs && mv styleguide docs"
},
"files": [
"lib/**/*"
Expand Down Expand Up @@ -58,6 +60,7 @@
"@babel/preset-react": "7.0.0",
"@material-ui/core": "3.9.2",
"babel-jest": "24.0.0",
"babel-loader": "8.0.5",
"babel-polyfill": "6.26.0",
"coveralls": "3.0.2",
"eslint-config-mcrowder65": "0.0.46",
Expand All @@ -66,7 +69,9 @@
"jest-localstorage-mock": "2.4.0",
"react": "16.8.4",
"react-dom": "16.8.4",
"react-testing-library": "6.0.0"
"react-styleguidist": "9.0.4",
"react-testing-library": "6.0.0",
"webpack": "4.29.6"
},
"babelConfig": ".babelrc.js",
"dependencies": {
Expand Down
11 changes: 11 additions & 0 deletions src/LoaderButton.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
```js
<LoaderButton color="primary" isLoading={true}>
I am loading!
</LoaderButton>
```

```js
<LoaderButton color="primary" isLoading={false}>
I am not loading!
</LoaderButton>
```
12 changes: 12 additions & 0 deletions src/LoaderCard.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
```js
<LoaderCard>I am a card that is not loading!</LoaderCard>
```

```js
<LoaderCard isLoading={true}>
I am a card that is loading! <br />
<br />
<br />
<br /> with some content!
</LoaderCard>
```
3 changes: 3 additions & 0 deletions src/Login.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```js
<Login />
```
3 changes: 3 additions & 0 deletions src/Signup.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```js
<Signup />
```
3 changes: 3 additions & 0 deletions styleguide.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module.exports = {
components: "src/**/*.js",
};
13 changes: 13 additions & 0 deletions webpack.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
module.exports = {
module: {
rules: [
{
test: /\.js$/,
exclude: /node_modules/,
use: {
loader: "babel-loader",
},
},
],
},
};

0 comments on commit 0f26c9f

Please sign in to comment.