├── .babelrc ├── examples ├── .babelrc ├── dist │ └── index.html ├── index.js ├── webpack.config.babel.js ├── webpack.config.live.babel.js └── Example.js ├── index.js ├── .travis.yml ├── src ├── Breakpoint │ ├── index.js │ ├── BreakpointProvider.js │ ├── BreakpointProvider.test.js │ ├── breakpoint-util.test.js │ ├── Breakpoint.js │ ├── breakpoint-util.js │ └── Breakpoint.test.js └── index.js ├── .gitignore ├── config ├── jest │ ├── fileTransform.js │ ├── setup.js │ └── cssTransform.js └── polyfills.js ├── .npmignore ├── .eslintrc ├── jest.config.js ├── LICENSE ├── webpack.config.babel.js ├── @types └── index.d.ts ├── CHANGELOG.md ├── package.json └── README.md /.babelrc: -------------------------------------------------------------------------------- 1 | { 2 | "presets": ["@babel/preset-env", "@babel/preset-react"] 3 | } -------------------------------------------------------------------------------- /examples/.babelrc: -------------------------------------------------------------------------------- 1 | { 2 | "presets": ["@babel/preset-env", "@babel/preset-react"] 3 | } -------------------------------------------------------------------------------- /index.js: -------------------------------------------------------------------------------- 1 | require('./dist/manifest'); 2 | require('./dist/vendor'); 3 | module.exports = require('./dist/index').default; -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - '10' 4 | script: 5 | - yarn test 6 | - yarn build 7 | branches: 8 | only: 9 | - master -------------------------------------------------------------------------------- /src/Breakpoint/index.js: -------------------------------------------------------------------------------- 1 | import Breakpoint from './Breakpoint'; 2 | import BreakpointProvider from './BreakpointProvider'; 3 | 4 | export { Breakpoint, BreakpointProvider }; 5 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | dist/*.js 3 | examples/dist/*.js 4 | coverage 5 | 6 | .idea 7 | 8 | # lock files 9 | package-lock.json 10 | 11 | # others 12 | .DS_Store 13 | yarn-error.log 14 | 15 | .vscode -------------------------------------------------------------------------------- /config/jest/fileTransform.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | const path = require('path'); 3 | 4 | module.exports = { 5 | process(src, filename, config, options) { 6 | return 'module.exports = ' + JSON.stringify(path.basename(filename)) + ';'; 7 | } 8 | }; 9 | -------------------------------------------------------------------------------- /config/jest/setup.js: -------------------------------------------------------------------------------- 1 | import Enzyme from 'enzyme'; 2 | import Adapter from 'enzyme-adapter-react-16'; 3 | // React 16 Enzyme adapter 4 | Enzyme.configure({ adapter: new Adapter() }); 5 | // Make Enzyme functions available in all test files without importing 6 | -------------------------------------------------------------------------------- /examples/dist/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 |