Skip to content

Commit c5a009d

Browse files
authored
refactor(deps): make npm and scripts up-to-date (#28)
1 parent e9a535a commit c5a009d

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+6797
-6041
lines changed

.editorconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ insert_final_newline = true
1313
trim_trailing_whitespace = false
1414

1515
[Makefile]
16-
indent_style = tab
16+
indent_style = tab

.eslintignore

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
1-
# dependencies
2-
/node_modules
1+
node_modules/
32

4-
# testing
5-
/coverage
3+
# jest
4+
coverage/
65

7-
# flow
8-
/flow-typed
9-
/flow-coverage
6+
# lib
7+
lib/
8+
es/
109

11-
# production
12-
/lib
10+
# flow
11+
flow-typed/

.flowconfig

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
[ignore]
2+
<PROJECT_ROOT>/es/.*
3+
<PROJECT_ROOT>/lib/.*
24

35
[include]
46

.gitignore

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,5 @@
1-
# See https://help.github.com/ignore-files/ for more about ignoring files.
2-
3-
# dependencies
4-
/node_modules
5-
6-
# testing
71
/coverage
8-
9-
# production
2+
/es
103
/lib
11-
12-
# misc
13-
.DS_Store
4+
/node_modules
145
npm-debug.log*
15-
yarn-debug.log*
16-
yarn-error.log*

.prettierignore

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
lib/
2+
es/
3+
4+
# flow
5+
flow-typed/
6+
7+
# test
8+
coverage/

.prettierrc.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
const config = require('hsu-scripts/prettier.config');
2+
3+
module.exports = config;

.travis.yml

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
sudo: false
22
language: node_js
33
node_js:
4-
- "9.4.0"
4+
- '11.8.0'
55

66
env:
77
global:
8-
- YARN_VERSION=1.3.2
8+
- YARN_VERSION=1.13.0
99

1010
before_install:
1111
- export PATH="$HOME/.yarn/bin:$PATH"
@@ -14,10 +14,13 @@ before_install:
1414
curl -o- -L https://yarnpkg.com/install.sh | bash -s -- --version $YARN_VERSION
1515
fi
1616
17+
install:
18+
- yarn install --pure-lockfile
19+
1720
script:
1821
- yarn run eslint
19-
- yarn run flow
2022
- yarn run test
23+
- yarn run flow-coverage
2124
- yarn run build
2225

2326
after_success:
@@ -27,7 +30,7 @@ deploy:
2730
- provider: npm
2831
2932
api_key:
30-
secure: IkPYUpobh+lSj9h7HnveYlxn7+7o55fVgAs411Z96ks8KNOJjrxcSv2faF+s7GsqGZDw2HdRnGS6/GTP1xL1dpBfH9kueX2ZpwF7JHKLjzrLhAuC/amAi5YPZLR7bMHYzKXBGQl1l8HL64MYVP6yOOxVGrprpxPpNuXXfa2AzNPiT2FOujmRf61G9qV2HhrFwz/Bt83piDqcyiVHSlNnWtmaVCi4R2d+LXivqnW7rPS1uKdo5LdvXZYZP0r4FDqVKxr+2BIXb46xj7TOe+m6DtXeclsfIaSM46kkMNCOoL7Ec4KP65zkZjT74iFPTQXi36+Wj/UXfdZaokS0uwNcD94gjODoeT4DEUvwSxn7gwFbNPV6QHZ/8yayxBQ3O1BUc6JLny8m2arfaIkEnSufS+FsJWuwoVYNMJH3czbHU5dUTE4O7Ht2CImCDP8SK0kZQGETn/70UYtUJBR8nCcC/ARDQC1nKlPqbjI4WJ1r/cGMC5PSyAV9dVUVXJbjy1cnZ7QiUaJD0Dthjl+dqFeiptnwU4M6j20kqfxL/PPzl1zEaoh1+ECS++hbnqzzPwwF7rneGTM8R1PKPtVHfxtGNX+I8KXbml3OzUMbWwHE5hbOtvtO5UycpcSNjrL9LfB9PyC8CLWkTHvnjHBgNU1kCEl0JhqV2mCLbNLsMh6uxWE=
33+
secure: ''
3134
skip_cleanup: true
3235
on:
3336
tags: true
@@ -36,8 +39,9 @@ deploy:
3639
cache:
3740
yarn: true
3841
directories:
39-
- "~/.yarn"
42+
- '~/.yarn'
4043
- node_modules
4144

4245
notifications:
43-
46+
email:
47+

CHANGELOG.md

Lines changed: 20 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,26 @@
1-
## Change Log
1+
## Unreleased (2019-01-25)
22

3-
### v0.2.2 (2018/01/25 15:09 +00:00)
3+
- chore(deps): update dependency eslint-plugin-flowtype to v2.42.0 (#3) ([35c02d7](https://github.com/evenchange4/react-intl.macro/commit/35c02d7)), closes [#3](https://github.com/evenchange4/react-intl.macro/issues/3)
4+
- chore(deps): update dependency lint-staged to v6.1.0 (#4) ([e9a535a](https://github.com/evenchange4/react-intl.macro/commit/e9a535a)), closes [#4](https://github.com/evenchange4/react-intl.macro/issues/4)
5+
- docs(CHANGELOG): release 0.2.2 ([ea827b8](https://github.com/evenchange4/react-intl.macro/commit/ea827b8))
46

5-
* [1fd2c49](https://github.com/evenchange4/react-intl.macro/commit/1fd2c49655e6b52c129941b00208b89f43093825) 0.2.2 (@evenchange4)
6-
* [487e8f1](https://github.com/evenchange4/react-intl.macro/commit/487e8f19b980fb2474133db89ce3167187fb9e1e) fix(dependency): pinOnlyDevDependencies (@evenchange4)
7-
* [3ee46bc](https://github.com/evenchange4/react-intl.macro/commit/3ee46bcf0895ddd4a4e030d1b755105b207a2e73) docs(README): add next.js example (@evenchange4)
8-
* [c9dd120](https://github.com/evenchange4/react-intl.macro/commit/c9dd120266d34b7266529258a4825227fec31785) docs(CHANGELOG): release 0.2.1 (@evenchange4)
7+
## <small>0.2.2 (2018-01-25)</small>
98

10-
### v0.2.1 (2018/01/25 05:09 +00:00)
9+
- 0.2.2 ([1fd2c49](https://github.com/evenchange4/react-intl.macro/commit/1fd2c49))
10+
- fix(dependency): pinOnlyDevDependencies ([487e8f1](https://github.com/evenchange4/react-intl.macro/commit/487e8f1))
11+
- docs(CHANGELOG): release 0.2.1 ([c9dd120](https://github.com/evenchange4/react-intl.macro/commit/c9dd120))
12+
- docs(README): add next.js example ([3ee46bc](https://github.com/evenchange4/react-intl.macro/commit/3ee46bc))
1113

12-
* [6c6ace6](https://github.com/evenchange4/react-intl.macro/commit/6c6ace69ac6448bcd0ecb818aa4ddc00ef4ceba6) 0.2.1 (@evenchange4)
13-
* [6991c6e](https://github.com/evenchange4/react-intl.macro/commit/6991c6e699c2e8722792996fbc6fed93cc9e293d) style: update comment (@evenchange4)
14-
* [1fd3e3c](https://github.com/evenchange4/react-intl.macro/commit/1fd3e3c7bab90e7045f02cdd1d4a925dd9d8b0be) fix(node): remove engines > 9 in package.json (@evenchange4)
15-
* [#1](https://github.com/evenchange4/react-intl.macro/pull/1) chore(deps): update dependency flow-bin to v0.64.0 (#1) (@renovate[bot])
16-
* [09ea593](https://github.com/evenchange4/react-intl.macro/commit/09ea593c2e65936db81f8ebf8743c5256d3d2d29) docs(CHANGELOG): release 0.2.0 (@evenchange4)
14+
## <small>0.2.1 (2018-01-25)</small>
1715

18-
### v0.2.0 (2018/01/25 04:47 +00:00)
16+
- 0.2.1 ([6c6ace6](https://github.com/evenchange4/react-intl.macro/commit/6c6ace6))
17+
- style: update comment ([6991c6e](https://github.com/evenchange4/react-intl.macro/commit/6991c6e))
18+
- fix(node): remove engines > 9 in package.json ([1fd3e3c](https://github.com/evenchange4/react-intl.macro/commit/1fd3e3c))
19+
- chore(deps): update dependency flow-bin to v0.64.0 (#1) ([218fad0](https://github.com/evenchange4/react-intl.macro/commit/218fad0)), closes [#1](https://github.com/evenchange4/react-intl.macro/issues/1)
20+
- docs(CHANGELOG): release 0.2.0 ([09ea593](https://github.com/evenchange4/react-intl.macro/commit/09ea593))
1921

20-
* [2a20613](https://github.com/evenchange4/react-intl.macro/commit/2a20613f46eb7ce9eab3e7723bc87798ba0758f9) 0.2.0 (@evenchange4)
21-
* [#2](https://github.com/evenchange4/react-intl.macro/pull/2) fix(CI): update snapshot (#2) (@evenchange4)
22-
* [4dac98d](https://github.com/evenchange4/react-intl.macro/commit/4dac98d945608050c2bcb19750d5115c8df494f3) feat: init (@evenchange4)
22+
## 0.2.0 (2018-01-25)
23+
24+
- 0.2.0 ([2a20613](https://github.com/evenchange4/react-intl.macro/commit/2a20613))
25+
- fix(CI): update snapshot (#2) ([159fc2e](https://github.com/evenchange4/react-intl.macro/commit/159fc2e)), closes [#2](https://github.com/evenchange4/react-intl.macro/issues/2)
26+
- feat: init ([4dac98d](https://github.com/evenchange4/react-intl.macro/commit/4dac98d))

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (c) 2018 Michael Hsu
3+
Copyright (c) 2019 Michael Hsu
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 17 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,6 @@
77
[![npm package][npm-badge]][npm]
88
[![npm downloads][npm-downloads]][npm]
99

10-
[![Dependency Status][dependency-badge]][dependency]
11-
[![devDependency Status][devdependency-badge]][devdependency]
12-
[![peerDependency Status][peerdependency-badge]][peerdependency]
13-
1410
[![prettier][prettier-badge]][prettier]
1511
[![license][license-badge]][license]
1612

@@ -20,7 +16,7 @@
2016
$ yarn add react-intl.macro
2117
```
2218

23-
_Note: You'll need to install and configure [babel-plugin-macros](https://github.com/kentcdodds/babel-plugin-macros) if you haven't already. (This can be omitted when using CRA [[email protected]](https://github.com/facebookincubator/create-react-app/issues/3815) .)_
19+
_Note: You'll need to install and configure [babel-plugin-macros](https://github.com/kentcdodds/babel-plugin-macros) if you haven't already._
2420

2521
## Example
2622

@@ -69,19 +65,19 @@ const messages = defineMessages({
6965

7066
## API
7167

72-
* `MESSAGE_DIR`
68+
- `MESSAGE_DIR`
7369

7470
## Alternative
7571

76-
* https://github.com/yahoo/babel-plugin-react-intl
77-
* https://github.com/evenchange4/react-intl-cra
72+
- https://github.com/yahoo/babel-plugin-react-intl
73+
- https://github.com/evenchange4/react-intl-cra
7874

7975
## Development
8076

8177
### Requirements
8278

83-
* node >= 9.4.0
84-
* yarn >= 1.3.2
79+
- node >= 11.8.0
80+
- yarn >= 1.13.0
8581

8682
```sh
8783
$ yarn install --pure-lockfile
@@ -97,13 +93,21 @@ $ yarn run test:watch
9793
$ yarn run build
9894
```
9995

96+
## Publish
97+
98+
```bash
99+
$ npm version patch
100+
$ npm run changelog
101+
git commit & push
102+
```
103+
100104
---
101105

102106
## CONTRIBUTING
103107

104-
* ⇄ Pull requests and ★ Stars are always welcome.
105-
* For bugs and feature requests, please create an issue.
106-
* Pull requests must be accompanied by passing automated tests.
108+
- ⇄ Pull requests and ★ Stars are always welcome.
109+
- For bugs and feature requests, please create an issue.
110+
- Pull requests must be accompanied by passing automated tests.
107111

108112
## [CHANGELOG](CHANGELOG.md)
109113

@@ -120,11 +124,5 @@ MIT: [http://michaelhsu.mit-license.org](http://michaelhsu.mit-license.org)
120124
[npm-downloads]: https://img.shields.io/npm/dt/react-intl.macro.svg?style=flat-square
121125
[license-badge]: https://img.shields.io/npm/l/react-intl.macro.svg?style=flat-square
122126
[license]: http://michaelhsu.mit-license.org/
123-
[dependency-badge]: https://david-dm.org/evenchange4/react-intl.macro.svg?style=flat-square
124-
[dependency]: https://david-dm.org/evenchange4/react-intl.macro
125-
[devdependency-badge]: https://david-dm.org/evenchange4/react-intl.macro/dev-status.svg?style=flat-square
126-
[devdependency]: https://david-dm.org/evenchange4/react-intl.macro#info=devDependencies
127-
[peerdependency-badge]: https://david-dm.org/evenchange4/react-intl.macro/peer-status.svg?style=flat-square
128-
[peerdependency]: https://david-dm.org/evenchange4/react-intl.macro#info=peerDependencies
129127
[prettier-badge]: https://img.shields.io/badge/styled_with-prettier-ff69b4.svg?style=flat-square
130128
[prettier]: https://github.com/prettier/prettier

flow-typed/npm/@babel/cli_vx.x.x.js

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

0 commit comments

Comments
 (0)