Skip to content
This repository has been archived by the owner on Sep 26, 2024. It is now read-only.

Commit

Permalink
export compiled modules
Browse files Browse the repository at this point in the history
  • Loading branch information
hharnisc committed Sep 7, 2016
1 parent 8b5f1c2 commit 7c50a4c
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .babelrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"presets": ["es2015", "react"]
"presets": ["es2015", "react", "stage-1"]
}
1 change: 1 addition & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"extends": "airbnb",
"parser": "babel-eslint",
"plugins": [
"react"
],
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ npm-debug.log*
node_modules
.npm
/coverage
lib
14 changes: 12 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,13 @@
"name": "@bufferapp/components",
"version": "0.0.1",
"description": "A shared set of UI Components",
"main": "src/index.js",
"main": "lib/index.js",
"scripts": {
"start": "start-storybook -p 9001",
"deploy-storybook": "storybook-to-ghpages",
"build": "rm -rf ./lib && node_modules/babel-cli/bin/babel.js ./src --ignore story.js,test.js,testHelpers/* --out-dir ./lib",
"lint": "./node_modules/eslint/bin/eslint.js --ignore-pattern coverage .",
"prepublish": "npm run build",
"test": "npm run lint && ./node_modules/jest-cli/bin/jest.js --coverage",
"test-watch": "./node_modules/jest-cli/bin/jest.js --watch",
"test-update": "npm run lint && ./node_modules/jest-cli/bin/jest.js --coverage -u"
Expand All @@ -28,15 +30,19 @@
"devDependencies": {
"@kadira/storybook": "^2.5.2",
"@kadira/storybook-deployer": "^1.1.0",
"babel-cli": "^6.14.0",
"babel-eslint": "^6.1.2",
"babel-jest": "^14.1.0",
"babel-preset-es2015": "^6.14.0",
"babel-preset-react": "^6.11.1",
"babel-preset-stage-1": "^6.13.0",
"eslint": "^2.11.1",
"eslint-config-airbnb": "^9.0.1",
"eslint-plugin-import": "^1.8.1",
"eslint-plugin-jsx-a11y": "^1.2.3",
"eslint-plugin-react": "^5.1.1",
"jest-cli": "^14.1.0",
"react-addons-test-utils": "^15.3.1",
"react-test-renderer": "^15.3.1"
},
"jest": {
Expand All @@ -47,5 +53,9 @@
"../testHelpers"
],
"testRegex": "src/.*test\\.js$"
}
},
"files": [
"lib",
"src"
]
}
14 changes: 7 additions & 7 deletions src/index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
export { default as Card } from './Card';
export { default as Icon } from './Icon';
export { default as Image } from './Image';
export { default as NavBar } from './NavBar';
export { default as Text } from './Text';
export { default as VectorGraphic } from './VectorGraphic';
export { default as Video } from './Video';
export Card from './Card';
export Icon from './Icon';
export Image from './Image';
export NavBar from './NavBar';
export Text from './Text';
export VectorGraphic from './VectorGraphic';
export Video from './Video';

0 comments on commit 7c50a4c

Please sign in to comment.