Skip to content

Commit 8f28d2e

Browse files
authored
Update packages (#147)
* build(dev dependencies): update packages * chore(gitignore): add yarn.lock
1 parent 570dd6b commit 8f28d2e

File tree

7 files changed

+71
-66
lines changed

7 files changed

+71
-66
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,5 @@ coverage
1313
.rpt2_cache
1414
settings.json
1515
*.code-workspace
16+
yarn.lock
17+
yarn-error.log

docs/props.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Props
33
route: /props
44
---
55

6-
import { Playground, PropsTable } from 'docz'
6+
import { Playground } from 'docz'
77
import ContentLoader, { Facebook, Instagram } from '../src'
88

99
## `animate?: boolean`

docs/usage.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Usage
33
route: /usage
44
---
55

6-
import { Playground, PropsTable } from 'docz'
6+
import { Playground } from 'docz'
77

88
import ContentLoader, {
99
Facebook,

package.json

Lines changed: 32 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "react-content-loader",
33
"version": "3.4.2",
4-
"description": "SVG component to create placeholder loading, like Facebook cards loading.",
4+
"description": "SVG-Powered component to easily create placeholder loadings (like Facebook cards loading)",
55
"repository": {
66
"type": "git",
77
"url": "https://github.com/danilowoz/react-content-loader"
@@ -41,43 +41,44 @@
4141
"release": "semantic-release"
4242
},
4343
"devDependencies": {
44-
"@babel/core": "^7.1.2",
45-
"@babel/polyfill": "^7.0.0",
46-
"@babel/preset-env": "^7.1.0",
44+
"@babel/core": "^7.4.4",
45+
"@babel/polyfill": "^7.4.4",
46+
"@babel/preset-env": "^7.4.4",
4747
"@babel/preset-react": "^7.0.0",
48-
"@babel/register": "^7.0.0",
49-
"@babel/runtime": "^7.0.0",
50-
"@commitlint/cli": "^7.5.0",
51-
"@commitlint/config-conventional": "^7.5.0",
52-
"@types/jest": "^23.3.10",
53-
"@types/react": "^16.7.13",
54-
"@types/react-dom": "^16.0.11",
55-
"@types/react-test-renderer": "^16.0.3",
48+
"@babel/register": "^7.4.4",
49+
"@babel/runtime": "^7.4.4",
50+
"@commitlint/cli": "^7.6.1",
51+
"@commitlint/config-conventional": "^7.6.0",
52+
"@types/jest": "^24.0.13",
53+
"@types/react": "^16.8.17",
54+
"@types/react-dom": "^16.8.4",
55+
"@types/react-test-renderer": "^16.8.1",
5656
"babel-core": "^7.0.0-bridge.0",
57-
"babel-jest": "^23.6.0",
58-
"commitizen": "^3.0.5",
57+
"babel-jest": "^24.8.0",
58+
"commitizen": "^3.1.1",
5959
"cz-conventional-changelog": "^2.1.0",
60-
"docz": "^0.13.7",
61-
"docz-theme-default": "^0.13.7",
62-
"husky": "^1.1.2",
63-
"jest": "^23.6.0",
64-
"prettier": "^1.15.3",
60+
"docz": "^1.2.0",
61+
"docz-theme-default": "^1.2.0",
62+
"husky": "^2.3.0",
63+
"jest": "^24.8.0",
64+
"prettier": "^1.17.1",
6565
"react": "^16.7.0",
66-
"react-dom": "^16.7.0",
67-
"react-test-renderer": "^16.6.3",
66+
"react-dom": "^16.8.6",
67+
"react-test-renderer": "^16.8.6",
6868
"remark-emoji": "^2.0.2",
69-
"rollup": "0.66.4",
70-
"rollup-plugin-replace": "^2.0.0",
71-
"rollup-plugin-typescript2": "^0.18.0",
72-
"rollup-plugin-uglify": "^6.0.0",
73-
"semantic-release": "^15.13.1",
74-
"ts-jest": "^23.10.5",
75-
"tslint": "^5.11.0",
76-
"tslint-config-prettier": "^1.17.0",
77-
"typescript": "^3.2.1"
69+
"rollup": "1.12.3",
70+
"rollup-plugin-analyzer": "^3.0.0",
71+
"rollup-plugin-replace": "^2.2.0",
72+
"rollup-plugin-typescript2": "^0.21.1",
73+
"rollup-plugin-uglify": "^6.0.2",
74+
"semantic-release": "^15.13.12",
75+
"ts-jest": "^24.0.2",
76+
"tslint": "^5.16.0",
77+
"tslint-config-prettier": "^1.18.0",
78+
"typescript": "^3.4.5"
7879
},
7980
"peerDependencies": {
80-
"react": "^15.0.0-0 || ^16.0.0-0"
81+
"react": "^16.8.6"
8182
},
8283
"dependencies": {},
8384
"husky": {

rollup.config.js

Lines changed: 34 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,27 @@
1-
import replace from "rollup-plugin-replace"
2-
import { uglify } from "rollup-plugin-uglify"
3-
import typescript from "rollup-plugin-typescript2"
4-
import pkg from "./package.json"
1+
import replace from 'rollup-plugin-replace'
2+
import { uglify } from 'rollup-plugin-uglify'
3+
import typescript from 'rollup-plugin-typescript2'
4+
import analyze from 'rollup-plugin-analyzer'
5+
import pkg from './package.json'
56

67
const mergeAll = objs => Object.assign({}, ...objs)
78

89
const commonPlugins = [
910
typescript({
10-
typescript: require("typescript")
11-
})
11+
typescript: require('typescript'),
12+
}),
1213
]
1314

1415
const configBase = {
15-
input: "src/index.ts",
16+
input: 'src/index.ts',
1617
output: {
17-
exports: "named"
18+
exports: 'named',
1819
},
1920
external: [
2021
...Object.keys(pkg.dependencies || {}),
21-
...Object.keys(pkg.peerDependencies || {})
22+
...Object.keys(pkg.peerDependencies || {}),
2223
],
23-
plugins: commonPlugins
24+
plugins: commonPlugins,
2425
}
2526

2627
const umdConfig = mergeAll([
@@ -30,61 +31,62 @@ const umdConfig = mergeAll([
3031
configBase.output,
3132
{
3233
file: `dist/${pkg.name}.js`,
33-
format: "umd",
34-
name: "ContentLoader",
34+
format: 'umd',
35+
name: 'ContentLoader',
3536
globals: {
36-
react: "React",
37-
"react-dom": "ReactDOM"
38-
}
39-
}
37+
react: 'React',
38+
'react-dom': 'ReactDOM',
39+
},
40+
},
4041
]),
41-
external: Object.keys(pkg.peerDependencies || {})
42-
}
42+
external: Object.keys(pkg.peerDependencies || {}),
43+
},
4344
])
4445

4546
const devUmdConfig = mergeAll([
4647
umdConfig,
4748
{
4849
plugins: umdConfig.plugins.concat(
4950
replace({
50-
"process.env.NODE_ENV": JSON.stringify("development")
51+
'process.env.NODE_ENV': JSON.stringify('development'),
5152
})
52-
)
53-
}
53+
),
54+
},
5455
])
5556

5657
const prodUmdConfig = mergeAll([
5758
umdConfig,
5859
{
5960
output: mergeAll([
6061
umdConfig.output,
61-
{ file: umdConfig.output.file.replace(/\.js$/, ".min.js") }
62-
])
62+
{ file: umdConfig.output.file.replace(/\.js$/, '.min.js') },
63+
]),
6364
},
6465
{
6566
plugins: umdConfig.plugins.concat(
6667
replace({
67-
"process.env.NODE_ENV": JSON.stringify("production")
68+
'process.env.NODE_ENV': JSON.stringify('production'),
6869
}),
6970
uglify({
7071
compress: {
7172
pure_getters: true,
7273
unsafe: true,
73-
unsafe_comps: true
74-
}
74+
unsafe_comps: true,
75+
},
7576
})
76-
)
77-
}
77+
),
78+
},
7879
])
7980

8081
const webConfig = mergeAll([
8182
configBase,
8283
{
8384
output: [
84-
mergeAll([configBase.output, { file: pkg.module, format: "es" }]),
85-
mergeAll([configBase.output, { file: pkg.main, format: "cjs" }])
86-
]
87-
}
85+
mergeAll([configBase.output, { file: pkg.module, format: 'es' }]),
86+
mergeAll([configBase.output, { file: pkg.main, format: 'cjs' }]),
87+
],
88+
plugins: configBase.plugins.concat(analyze()),
89+
},
8890
])
8991

9092
export default [devUmdConfig, prodUmdConfig, webConfig]

src/interface.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
export interface IContentLoaderProps {
22
animate?: boolean
3-
ariaLabel?: string | boolean
3+
ariaLabel?: string
44
children?: React.ReactNode
55
baseUrl?: string
66
className?: string

yarn.lock

Whitespace-only changes.

0 commit comments

Comments
 (0)