Skip to content

Commit b23958d

Browse files
author
Dave Ferris
committed
Prepare package.json for publishing
1 parent 89318ff commit b23958d

File tree

4 files changed

+47
-3
lines changed

4 files changed

+47
-3
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@
55
/.pnp
66
.pnp.js
77

8+
# distribution
9+
dist
10+
811
# testing
912
/coverage
1013

package.json

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
},
1616
"scripts": {
1717
"start": "react-scripts start",
18-
"build": "react-scripts build",
18+
"build": "BABEL_ENV=production babel src -d dist",
1919
"lint": "eslint . --ext .js,.jsx",
2020
"test": "react-scripts test",
2121
"eject": "react-scripts eject",
@@ -24,6 +24,11 @@
2424
"build-storybook-docs": "build-storybook -s public --docs",
2525
"deploy-storybook": "storybook-to-ghpages"
2626
},
27+
"babel": {
28+
"presets": [
29+
"react-app"
30+
]
31+
},
2732
"eslintConfig": {
2833
"extends": "react-app"
2934
},
@@ -40,6 +45,7 @@
4045
]
4146
},
4247
"devDependencies": {
48+
"@babel/cli": "^7.8.4",
4349
"@storybook/addon-a11y": "^5.2.6",
4450
"@storybook/addon-actions": "^5.2.6",
4551
"@storybook/addon-docs": "^5.2.6",
@@ -52,5 +58,13 @@
5258
"eslint-import-resolver-webpack": "^0.11.1",
5359
"eslint-plugin-babel": "^5.3.0",
5460
"eslint-utils": "^1.4.3"
55-
}
61+
},
62+
"description": "UI Storybook design system",
63+
"main": "dist/index.js",
64+
"publishConfig": {
65+
"registry":"https://npm.pkg.github.com/"
66+
},
67+
"repository": "https://github.com/user-interviews/ui-design-system.git",
68+
"author": "Dave Ferris <[email protected]>",
69+
"license": "MIT"
5670
}

src/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export * from './Card';

yarn.lock

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,22 @@
22
# yarn lockfile v1
33

44

5+
"@babel/cli@^7.8.4":
6+
version "7.8.4"
7+
resolved "https://registry.yarnpkg.com/@babel/cli/-/cli-7.8.4.tgz#505fb053721a98777b2b175323ea4f090b7d3c1c"
8+
integrity sha512-XXLgAm6LBbaNxaGhMAznXXaxtCWfuv6PIDJ9Alsy9JYTOh+j2jJz+L/162kkfU1j/pTSxK1xGmlwI4pdIMkoag==
9+
dependencies:
10+
commander "^4.0.1"
11+
convert-source-map "^1.1.0"
12+
fs-readdir-recursive "^1.1.0"
13+
glob "^7.0.0"
14+
lodash "^4.17.13"
15+
make-dir "^2.1.0"
16+
slash "^2.0.0"
17+
source-map "^0.5.0"
18+
optionalDependencies:
19+
chokidar "^2.1.8"
20+
521
"@babel/[email protected]", "@babel/code-frame@^7.0.0", "@babel/code-frame@^7.5.5":
622
version "7.5.5"
723
resolved "https://registry.yarnpkg.com/@babel/code-frame/-/code-frame-7.5.5.tgz#bc0782f6d69f7b7d49531219699b988f669a8f9d"
@@ -3792,7 +3808,7 @@ chardet@^0.7.0:
37923808
resolved "https://registry.yarnpkg.com/chardet/-/chardet-0.7.0.tgz#90094849f0937f2eedc2425d0d28a9e5f0cbad9e"
37933809
integrity sha512-mT8iDcrh03qDGRRmoA2hmBJnxpllMR+0/0qlzjqZES6NdiWDcZkCNAk4rPFZ9Q85r27unkiNNg8ZOiwZXBHwcA==
37943810

3795-
chokidar@^2.0.0, chokidar@^2.0.2, chokidar@^2.0.4:
3811+
chokidar@^2.0.0, chokidar@^2.0.2, chokidar@^2.0.4, chokidar@^2.1.8:
37963812
version "2.1.8"
37973813
resolved "https://registry.yarnpkg.com/chokidar/-/chokidar-2.1.8.tgz#804b3a7b6a99358c3c5c61e71d8728f041cff917"
37983814
integrity sha512-ZmZUazfOzf0Nve7duiCKD23PFSCs4JPoYyccjUFF3aQkQadqBhfzhjkwBH2mNOG9cTBwhamM37EIsIkZw3nRgg==
@@ -4050,6 +4066,11 @@ commander@^4.0.0:
40504066
resolved "https://registry.yarnpkg.com/commander/-/commander-4.0.1.tgz#b67622721785993182e807f4883633e6401ba53c"
40514067
integrity sha512-IPF4ouhCP+qdlcmCedhxX4xiGBPyigb8v5NeUp+0LyhwLgxMqyp3S0vl7TAPfS/hiP7FC3caI/PB9lTmP8r1NA==
40524068

4069+
commander@^4.0.1:
4070+
version "4.1.1"
4071+
resolved "https://registry.yarnpkg.com/commander/-/commander-4.1.1.tgz#9fd602bd936294e9e9ef46a3f4d6964044b18068"
4072+
integrity sha512-NOKm8xhkzAjzFx8B2v5OAHT+u5pRQc2UCa2Vq9jYL/31o2wi9mxBA7LIFs3sV5VSC49z6pEhfbMULvShKj26WA==
4073+
40534074
commander@~2.19.0:
40544075
version "2.19.0"
40554076
resolved "https://registry.yarnpkg.com/commander/-/commander-2.19.0.tgz#f6198aa84e5b83c46054b94ddedbfed5ee9ff12a"
@@ -6073,6 +6094,11 @@ fs-minipass@^1.2.5:
60736094
dependencies:
60746095
minipass "^2.6.0"
60756096

6097+
fs-readdir-recursive@^1.1.0:
6098+
version "1.1.0"
6099+
resolved "https://registry.yarnpkg.com/fs-readdir-recursive/-/fs-readdir-recursive-1.1.0.tgz#e32fc030a2ccee44a6b5371308da54be0b397d27"
6100+
integrity sha512-GNanXlVr2pf02+sPN40XN8HG+ePaNcvM0q5mZBd668Obwb0yD5GiUbZOFgwn8kGMY6I3mdyDJzieUy3PTYyTRA==
6101+
60766102
fs-write-stream-atomic@^1.0.8:
60776103
version "1.0.10"
60786104
resolved "https://registry.yarnpkg.com/fs-write-stream-atomic/-/fs-write-stream-atomic-1.0.10.tgz#b47df53493ef911df75731e70a9ded0189db40c9"

0 commit comments

Comments
 (0)