Skip to content

Commit e6f3b12

Browse files
authored
Merge pull request #40 from mmmurray/next
Upgrade dependencies
2 parents c760711 + 9faa4c1 commit e6f3b12

15 files changed

+6245
-2442
lines changed

.gitignore

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
.cache
2-
*.log
1+
.DS_Store
32
coverage
43
lib
54
node_modules
5+
tsconfig.json
6+
yarn-error.log

.travis.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,19 @@
11
language: node_js
22
node_js:
3-
- 'node'
3+
- '10'
44
cache:
55
yarn: true
66
directories:
77
- 'node_modules'
88
branches:
99
only:
1010
- 'master'
11+
jobs:
12+
include:
13+
- stage: release
14+
node_js: '10'
15+
deploy:
16+
provider: script
17+
skip_cleanup: true
18+
script:
19+
- 'yarn release'

jest.config.js

Lines changed: 0 additions & 13 deletions
This file was deleted.

mmm.config.js

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
module.exports = {
2+
transformJestConfig: config => ({
3+
...config,
4+
coverageThreshold: {
5+
global: {
6+
branches: 0,
7+
functions: 0,
8+
lines: 0,
9+
statements: 0,
10+
},
11+
},
12+
}),
13+
}

package.json

Lines changed: 42 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,58 @@
11
{
22
"name": "react-responsive-layout",
3-
"version": "0.2.0",
3+
"version": "0.0.0-semantically-released",
44
"author": "Mark Murray",
55
"license": "MIT",
66
"repository": "git@github.com:mmmurray/react-responsive-layout.git",
77
"main": "./lib/index.js",
88
"types": "./lib/index.d.ts",
99
"scripts": {
10-
"build": "rm -rf lib && mmm build",
10+
"build": "mmm build",
11+
"commit": "mmm commit",
1112
"jest": "mmm jest",
12-
"prepare": "yarn build",
13-
"prettier": "mmm format",
13+
"release": "mmm release",
1414
"storybook": "start-storybook -p 9001 -c storybook",
15-
"test": "mmm coverage"
15+
"test": "mmm test",
16+
"test:coverage": "mmm test:coverage",
17+
"test:lint": "mmm test:lint"
1618
},
1719
"peerDependencies": {
1820
"react": ">=16.8.0"
1921
},
2022
"devDependencies": {
21-
"@babel/core": "7.2.2",
22-
"@storybook/addon-knobs": "4.1.11",
23-
"@storybook/addon-options": "4.1.11",
24-
"@storybook/components": "4.1.11",
25-
"@storybook/react": "4.1.11",
26-
"@types/react": "16.8.1",
27-
"@types/storybook__addon-knobs": "4.0.0",
28-
"@types/storybook__react": "4.0.1",
29-
"babel-loader": "8.0.6",
30-
"emotion": "9.2.12",
31-
"mmm-scripts": "0.0.16",
32-
"react": "16.8.6",
33-
"react-dom": "16.8.0-alpha.1",
34-
"react-emotion": "9.2.12",
35-
"ts-loader": "5.3.3",
36-
"typescript": "3.3.1"
37-
}
23+
"@babel/core": "^7.4.5",
24+
"@storybook/addon-knobs": "^5.1.9",
25+
"@storybook/react": "^5.1.9",
26+
"@storybook/theming": "^5.1.9",
27+
"@types/react": "^16.8.22",
28+
"@types/storybook__addon-knobs": "^5.0.1",
29+
"@types/storybook__react": "^4.0.2",
30+
"babel-loader": "^8.0.6",
31+
"emotion": "^9.2.12",
32+
"mmm-scripts": "^0.4.2",
33+
"react": "^16.8.6",
34+
"react-dom": "^16.8.6",
35+
"react-emotion": "^9.2.12",
36+
"ts-loader": "^6.0.4",
37+
"typescript": "^3.5.2"
38+
},
39+
"commitlint": {
40+
"extends": [
41+
"@commitlint/config-conventional"
42+
]
43+
},
44+
"config": {
45+
"commitizen": {
46+
"path": "./node_modules/cz-conventional-changelog"
47+
}
48+
},
49+
"eslintConfig": {
50+
"extends": "eslint-config-mmm/ts-react"
51+
},
52+
"husky": {
53+
"hooks": {
54+
"commit-msg": "mmm precommit"
55+
}
56+
},
57+
"prettier": "mmm-scripts/prettier.config"
3858
}

stories/belt.stories.tsx renamed to src/stories/belt.stories.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { number } from '@storybook/addon-knobs'
22
import { storiesOf } from '@storybook/react'
33
import * as React from 'react'
4-
import { Belt, Columns } from '../src'
4+
import { Belt, Columns } from '..'
55
import Box from './helpers/box'
66

77
storiesOf('Belt', module)
File renamed without changes.

stories/columns.stories.tsx renamed to src/stories/columns.stories.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { storiesOf } from '@storybook/react'
22
import * as React from 'react'
3-
import { Columns } from '../src'
3+
import { Columns } from '..'
44
import Box from './helpers/box'
55

66
storiesOf('Columns', module)

stories/helpers/box.tsx renamed to src/stories/helpers/box.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import * as React from 'react'
22
import { SFC } from 'react'
3-
import { useCSS, useMediaQuery } from '../../src'
3+
import { useCSS, useMediaQuery } from '../..'
44
import useCurrentWidth from './use-current-width'
55

66
type BoxProps = {

stories/helpers/use-current-width.ts renamed to src/stories/helpers/use-current-width.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { useEffect, useRef, useState } from 'react'
22

33
const useCurrentWidth = <ElementType extends HTMLElement>() => {
4-
const ref = useRef({ clientWidth: 0 } as ElementType)
4+
const ref = useRef<ElementType>({ clientWidth: 0 } as any)
55
const [width, setWidth] = useState(0)
66

77
useEffect(() => {

0 commit comments

Comments
 (0)