Skip to content

Commit

Permalink
feat(api): Expose defaults
Browse files Browse the repository at this point in the history
- Export defaults
- Replace "browser" with "unpkg" entry file in package.json to correctly
  import dev version in react while preserving unpkg compatibility.
- Update dependencies

Closes #357 #355
  • Loading branch information
obartra committed Jan 9, 2018
1 parent 11ece77 commit d7cba67
Show file tree
Hide file tree
Showing 3 changed files with 609 additions and 274 deletions.
44 changes: 22 additions & 22 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": "0.0.0-semantically-released",
"description": "Configurable grid and layout engine for React",
"main": "index.js",
"browser": "dist/gymnast.min.js",
"unpkg": "dist/gymnast.min.js",
"homepage": "https://gymnastjs.github.io/gymnast",
"files": [
"package.json",
Expand All @@ -23,22 +23,22 @@
"author": "Oscar Bartra",
"license": "MIT",
"devDependencies": {
"@storybook/addon-actions": "3.2.19",
"@storybook/addon-knobs": "3.2.19",
"@storybook/addon-notes": "3.2.19",
"@storybook/addon-options": "3.2.19",
"@storybook/addon-storyshots": "3.2.19",
"@storybook/channels": "3.2.19",
"@storybook/react": "3.2.19",
"@storybook/addon-actions": "3.3.6",
"@storybook/addon-knobs": "3.3.6",
"@storybook/addon-notes": "3.3.6",
"@storybook/addon-options": "3.3.6",
"@storybook/addon-storyshots": "3.3.6",
"@storybook/channels": "3.3.6",
"@storybook/react": "3.3.6",
"all-contributors-cli": "4.10.1",
"babel-cli": "6.26.0",
"babel-eslint": "8.1.0",
"babel-eslint": "8.2.1",
"babel-jest": "22.0.4",
"babel-plugin-flow-react-proptypes": "13.0.0",
"babel-plugin-flow-react-proptypes": "13.0.2",
"babel-plugin-lodash": "3.3.2",
"babel-plugin-macros": "2.0.0",
"babel-plugin-module-resolver": "3.0.0",
"babel-plugin-preval": "1.6.2",
"babel-plugin-preval": "1.6.3",
"babel-plugin-transform-class-properties": "6.24.1",
"babel-plugin-transform-object-rest-spread": "6.26.0",
"babel-plugin-transform-runtime": "6.23.0",
Expand All @@ -52,41 +52,41 @@
"commitizen": "2.9.6",
"condition-circle": "2.0.1",
"cross-env": "5.1.3",
"css-loader": "0.28.7",
"css-loader": "0.28.8",
"cssnano": "3.10.0",
"cz-conventional-changelog": "2.1.0",
"enzyme": "3.2.0",
"enzyme": "3.3.0",
"enzyme-adapter-react-16": "1.1.1",
"enzyme-to-json": "3.3.0",
"eslint": "4.13.1",
"eslint": "4.15.0",
"eslint-config-airbnb": "16.1.0",
"eslint-config-prettier": "2.9.0",
"eslint-plugin-flowtype": "2.40.1",
"eslint-plugin-flowtype": "2.41.0",
"eslint-plugin-import": "2.8.0",
"eslint-plugin-jsx-a11y": "6.0.3",
"eslint-plugin-react": "7.5.1",
"extract-text-webpack-plugin": "3.0.2",
"find-up": "2.1.0",
"flow-bin": "0.61.0",
"flow-bin": "0.63.1",
"flow-copy-source": "1.2.1",
"html-loader": "0.5.1",
"html-loader": "0.5.4",
"husky": "0.14.3",
"ignore-loader": "0.1.2",
"jest": "22.0.4",
"lint-staged": "6.0.0",
"lodash": "4.17.4",
"markdown-loader": "2.0.1",
"markdown-loader": "2.0.2",
"nightwatch": "0.9.19",
"npm-run-all": "4.1.2",
"picturebook": "1.1.3",
"picturebook": "1.1.6",
"polished": "1.9.0",
"postcss-cli": "4.1.1",
"postcss-cssnext": "3.0.2",
"postcss-discard-comments": "2.0.4",
"postcss-flexbugs-fixes": "3.2.0",
"postcss-for": "2.1.1",
"postcss-import": "11.0.0",
"postcss-loader": "2.0.9",
"postcss-loader": "2.0.10",
"postcss-nesting": "4.2.1",
"prettier": "1.9.2",
"raw-loader": "0.5.1",
Expand All @@ -98,11 +98,11 @@
"saucelabs": "1.4.0",
"selenium-standalone": "6.12.0",
"semantic-release": "11.0.2",
"storybook-addon-jsx": "5.1.0",
"storybook-addon-jsx": "5.3.0",
"style-loader": "0.19.1",
"stylelint": "8.4.0",
"webpack": "3.10.0",
"webpack-bundle-analyzer": "2.9.1"
"webpack-bundle-analyzer": "2.9.2"
},
"lint-staged": {
"*.{js,css}": [
Expand Down
4 changes: 3 additions & 1 deletion src/gymnast.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// @flow
import './cxs'
import * as _defaults from './defaults'
import * as _utils from './utils'

// Components
Expand All @@ -16,9 +17,10 @@ export { default as asLayout } from './asLayout'
export { default as withResolution } from './withResolution'

// Utils / Dev
export const utils = _utils
export { default as Dev } from './dev'
export { default as log } from './utils/log'
export const defaults = _defaults
export const utils = _utils

// Types
export type {
Expand Down
Loading

0 comments on commit d7cba67

Please sign in to comment.