Skip to content

Commit

Permalink
chore(deps): keep npm and scipts up-to-date (#50)
Browse files Browse the repository at this point in the history
  • Loading branch information
evenchange4 committed Jan 24, 2019
1 parent 625eb79 commit 261a259
Show file tree
Hide file tree
Showing 45 changed files with 6,293 additions and 5,638 deletions.
2 changes: 1 addition & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ insert_final_newline = true
trim_trailing_whitespace = false

[Makefile]
indent_style = tab
indent_style = tab
17 changes: 8 additions & 9 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
# dependencies
/node_modules
node_modules/

# testing
/coverage
# jest
coverage/

# flow
/flow-typed
/flow-coverage
# lib
lib/
es/

# production
/lib
# flow
flow-typed/
2 changes: 2 additions & 0 deletions .flowconfig
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
[ignore]
<PROJECT_ROOT>/es/.*
<PROJECT_ROOT>/lib/.*

[include]

Expand Down
15 changes: 2 additions & 13 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,16 +1,5 @@
# See https://help.github.com/ignore-files/ for more about ignoring files.

# dependencies
/node_modules

# testing
/coverage

# production
/es
/lib

# misc
.DS_Store
/node_modules
npm-debug.log*
yarn-debug.log*
yarn-error.log*
8 changes: 8 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
lib/
es/

# flow
flow-typed/

# test
coverage/
3 changes: 3 additions & 0 deletions .prettierrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
const config = require('hsu-scripts/prettier.config');

module.exports = config;
14 changes: 9 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
sudo: false
language: node_js
node_js:
- "9.4.0"
- '11.7.0'

env:
global:
- YARN_VERSION=1.3.2
- YARN_VERSION=1.13.0

before_install:
- export PATH="$HOME/.yarn/bin:$PATH"
Expand All @@ -14,10 +14,13 @@ before_install:
curl -o- -L https://yarnpkg.com/install.sh | bash -s -- --version $YARN_VERSION
fi
install:
- yarn install --pure-lockfile

script:
- yarn run eslint
- yarn run flow
- yarn run test
- yarn run flow-coverage
- yarn run build

after_success:
Expand All @@ -36,8 +39,9 @@ deploy:
cache:
yarn: true
directories:
- "~/.yarn"
- '~/.yarn'
- node_modules

notifications:
email: evenchange4@gmail.com
email:
- evenchange4@gmail.com
80 changes: 41 additions & 39 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,51 +1,53 @@
## Change Log
## Unreleased (2019-01-24)

### v1.2.0 (2019/01/24 02:12 +00:00)
- docs(CHANGELOG): release 1.2.0 ([625eb79](https://github.com/evenchange4/graphql.macro/commit/625eb79))

* [fdfa739](https://github.com/evenchange4/graphql.macro/commit/fdfa739a6f61880321fd6a2f7b1c54810efeb202) 1.2.0 (@evenchange4)
* [#47](https://github.com/evenchange4/graphql.macro/pull/47) feat(import): Support node module imports for monorepo (#47) (@evenchange4)
* [#37](https://github.com/evenchange4/graphql.macro/pull/37) feat(import path): Support absolute paths and NODE_PATH (#37) (@vinhlh)
* [#38](https://github.com/evenchange4/graphql.macro/pull/38) tests(index): Make test number fancy (#38) (@vinhlh)
* [75bfec2](https://github.com/evenchange4/graphql.macro/commit/75bfec25875e6c0aa2893d385ba85651b1c16267) docs(CHANGELOG): release 1.1.0 (@evenchange4)
## 1.2.0 (2019-01-24)

### v1.1.0 (2019/01/24 01:10 +00:00)
- 1.2.0 ([fdfa739](https://github.com/evenchange4/graphql.macro/commit/fdfa739))
- feat(import path): Support absolute paths and NODE_PATH (#37) ([ba5dba8](https://github.com/evenchange4/graphql.macro/commit/ba5dba8)), closes [#37](https://github.com/evenchange4/graphql.macro/issues/37)
- feat(import): Support node module imports for monorepo (#47) ([62edb66](https://github.com/evenchange4/graphql.macro/commit/62edb66)), closes [#47](https://github.com/evenchange4/graphql.macro/issues/47) [#37](https://github.com/evenchange4/graphql.macro/issues/37)
- tests(index): Make test number fancy (#38) ([3e9a16b](https://github.com/evenchange4/graphql.macro/commit/3e9a16b)), closes [#38](https://github.com/evenchange4/graphql.macro/issues/38)
- docs(CHANGELOG): release 1.1.0 ([75bfec2](https://github.com/evenchange4/graphql.macro/commit/75bfec2))

* [c2537ca](https://github.com/evenchange4/graphql.macro/commit/c2537ca40d24825a566a082060e085cda4489f6a) 1.1.0 (@evenchange4)
* [1bd78e5](https://github.com/evenchange4/graphql.macro/commit/1bd78e5008d65faf807a6463ee0a93085b501588) chore(travis): update release key (@evenchange4)
* [#42](https://github.com/evenchange4/graphql.macro/pull/42) feat(Imports): Recursive imports processing (#42) (@msimulcik)
* [#11](https://github.com/evenchange4/graphql.macro/pull/11) chore(deps): update babel monorepo packages to v7.0.0-beta.39 (#11) (@renovate[bot])
* [#12](https://github.com/evenchange4/graphql.macro/pull/12) chore(deps): update dependency eslint-plugin-prettier to v2.6.0 (#12) (@renovate[bot])
* [#10](https://github.com/evenchange4/graphql.macro/pull/10) chore(deps): update dependency lint-staged to v6.1.0 (#10) (@renovate[bot])
* [9319dce](https://github.com/evenchange4/graphql.macro/commit/9319dcebeef3f5d68fe5a2bcd71d1d581591c4c2) docs(CHANGELOG): release 1.0.2 (@evenchange4)
## 1.1.0 (2019-01-24)

### v1.0.2 (2018/01/25 15:49 +00:00)
- 1.1.0 ([c2537ca](https://github.com/evenchange4/graphql.macro/commit/c2537ca))
- chore(deps): update babel monorepo packages to v7.0.0-beta.39 (#11) ([eb40519](https://github.com/evenchange4/graphql.macro/commit/eb40519)), closes [#11](https://github.com/evenchange4/graphql.macro/issues/11)
- chore(deps): update dependency eslint-plugin-prettier to v2.6.0 (#12) ([4ca39a0](https://github.com/evenchange4/graphql.macro/commit/4ca39a0)), closes [#12](https://github.com/evenchange4/graphql.macro/issues/12)
- chore(deps): update dependency lint-staged to v6.1.0 (#10) ([746a419](https://github.com/evenchange4/graphql.macro/commit/746a419)), closes [#10](https://github.com/evenchange4/graphql.macro/issues/10)
- chore(travis): update release key ([1bd78e5](https://github.com/evenchange4/graphql.macro/commit/1bd78e5))
- feat(Imports): Recursive imports processing (#42) ([c01a938](https://github.com/evenchange4/graphql.macro/commit/c01a938)), closes [#42](https://github.com/evenchange4/graphql.macro/issues/42)
- docs(CHANGELOG): release 1.0.2 ([9319dce](https://github.com/evenchange4/graphql.macro/commit/9319dce))

* [123aef9](https://github.com/evenchange4/graphql.macro/commit/123aef9160918ef6d8273e76fd04cfd06b24789e) 1.0.2 (@evenchange4)
* [5d6f320](https://github.com/evenchange4/graphql.macro/commit/5d6f320f2f3c45a84de70b86d447961e424e5a33) fix(dependency): pinOnlyDevDependencies (@evenchange4)
* [#7](https://github.com/evenchange4/graphql.macro/pull/7) chore(deps): update dependency eslint-plugin-flowtype to v2.41.1 (#7) (@renovate[bot])
* [#8](https://github.com/evenchange4/graphql.macro/pull/8) chore(deps): update dependency flow-bin to v0.64.0 (#8) (@renovate[bot])
* [78a7050](https://github.com/evenchange4/graphql.macro/commit/78a7050b1b70a79d728b2e0497b9d3deb3de0017) docs(CHANGELOG): release 1.0.1 (@evenchange4)
## <small>1.0.2 (2018-01-25)</small>

### v1.0.1 (2018/01/25 05:42 +00:00)
- fix(dependency): pinOnlyDevDependencies ([5d6f320](https://github.com/evenchange4/graphql.macro/commit/5d6f320))
- 1.0.2 ([123aef9](https://github.com/evenchange4/graphql.macro/commit/123aef9))
- chore(deps): update dependency eslint-plugin-flowtype to v2.41.1 (#7) ([e4bc70e](https://github.com/evenchange4/graphql.macro/commit/e4bc70e)), closes [#7](https://github.com/evenchange4/graphql.macro/issues/7)
- chore(deps): update dependency flow-bin to v0.64.0 (#8) ([4cf17dd](https://github.com/evenchange4/graphql.macro/commit/4cf17dd)), closes [#8](https://github.com/evenchange4/graphql.macro/issues/8)
- docs(CHANGELOG): release 1.0.1 ([78a7050](https://github.com/evenchange4/graphql.macro/commit/78a7050))

* [2172bab](https://github.com/evenchange4/graphql.macro/commit/2172bab14c120de3d1f83e33ee412ee184b2a955) 1.0.1 (@evenchange4)
* [fb673e5](https://github.com/evenchange4/graphql.macro/commit/fb673e5e1f362009dbc13cefa6ba0060cef8d080) fix(node): remove engines > 9 in package.json (@evenchange4)
* [08fa280](https://github.com/evenchange4/graphql.macro/commit/08fa2808f1c5b01d74a2b66c9ba120399fe18d88) fix(CI): add test (@evenchange4)
* [#4](https://github.com/evenchange4/graphql.macro/pull/4) chore(deps): update dependency eslint to v4.16.0 (#4) (@renovate[bot])
* [4a12d5a](https://github.com/evenchange4/graphql.macro/commit/4a12d5ae8c4ba21e64af34e00e626b4893f63282) docs(README): make it more CRA-compatible #2 (@evenchange4)
* [42dd526](https://github.com/evenchange4/graphql.macro/commit/42dd52687cb8c0eb81c22a2f99832a587fc9b93b) docs(README): typo #3 (@evenchange4)
* [#1](https://github.com/evenchange4/graphql.macro/pull/1) Add renovate.json (#1) (@renovate[bot])
* [fdfdfd9](https://github.com/evenchange4/graphql.macro/commit/fdfdfd919632fa12e70df23684ad72688f202427) docs(CHANGELOG): release 1.0.0 (@evenchange4)
## <small>1.0.1 (2018-01-25)</small>

### v1.0.0 (2018/01/19 19:31 +00:00)
- 1.0.1 ([2172bab](https://github.com/evenchange4/graphql.macro/commit/2172bab))
- Add renovate.json (#1) ([e6fda17](https://github.com/evenchange4/graphql.macro/commit/e6fda17)), closes [#1](https://github.com/evenchange4/graphql.macro/issues/1)
- fix(CI): add test ([08fa280](https://github.com/evenchange4/graphql.macro/commit/08fa280))
- fix(node): remove engines > 9 in package.json ([fb673e5](https://github.com/evenchange4/graphql.macro/commit/fb673e5))
- chore(deps): update dependency eslint to v4.16.0 (#4) ([3248a53](https://github.com/evenchange4/graphql.macro/commit/3248a53)), closes [#4](https://github.com/evenchange4/graphql.macro/issues/4)
- docs(CHANGELOG): release 1.0.0 ([fdfdfd9](https://github.com/evenchange4/graphql.macro/commit/fdfdfd9))
- docs(README): make it more CRA-compatible #2 ([4a12d5a](https://github.com/evenchange4/graphql.macro/commit/4a12d5a)), closes [#2](https://github.com/evenchange4/graphql.macro/issues/2)
- docs(README): typo #3 ([42dd526](https://github.com/evenchange4/graphql.macro/commit/42dd526)), closes [#3](https://github.com/evenchange4/graphql.macro/issues/3)

* [8191a24](https://github.com/evenchange4/graphql.macro/commit/8191a243dfedbfff9970dcd95372326459e05c54) 1.0.0 (@evenchange4)
* [223b31b](https://github.com/evenchange4/graphql.macro/commit/223b31bf70777a149e786d02295e1e54b4a923a1) docs(CHANGELOG): update (@evenchange4)
* [a22dc42](https://github.com/evenchange4/graphql.macro/commit/a22dc42a87334a374493f22b1ccd8a09b45da660) feat(CI): setup travis (@evenchange4)
* [a7f9c15](https://github.com/evenchange4/graphql.macro/commit/a7f9c155fcb5224b7ac31468832560436612d67a) docs(README): add demo link (@evenchange4)
## 1.0.0 (2018-01-19)

### v0.1.0 (2018/01/19 18:32 +00:00)
- 1.0.0 ([8191a24](https://github.com/evenchange4/graphql.macro/commit/8191a24))
- docs(CHANGELOG): update ([223b31b](https://github.com/evenchange4/graphql.macro/commit/223b31b))
- docs(README): add demo link ([a7f9c15](https://github.com/evenchange4/graphql.macro/commit/a7f9c15))
- feat(CI): setup travis ([a22dc42](https://github.com/evenchange4/graphql.macro/commit/a22dc42))

* [cbaa5aa](https://github.com/evenchange4/graphql.macro/commit/cbaa5aae57ae761519ea956fc877446abba22e64) docs(README): create README (@evenchange4)
* [7b474f2](https://github.com/evenchange4/graphql.macro/commit/7b474f2110c6645f6bb92c6ee699cf32eaecb2c9) feat: add fragment support (@evenchange4)
* [3bb0050](https://github.com/evenchange4/graphql.macro/commit/3bb00507565c360cd001ddf05fd85a9c55d064ef) feat: init (@evenchange4)
## 0.1.0 (2018-01-19)

- docs(README): create README ([cbaa5aa](https://github.com/evenchange4/graphql.macro/commit/cbaa5aa))
- feat: add fragment support ([7b474f2](https://github.com/evenchange4/graphql.macro/commit/7b474f2))
- feat: init ([3bb0050](https://github.com/evenchange4/graphql.macro/commit/3bb0050))
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2018 Michael Hsu
Copyright (c) 2019 Michael Hsu

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
36 changes: 17 additions & 19 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,6 @@
[![npm package][npm-badge]][npm]
[![npm downloads][npm-downloads]][npm]

[![Dependency Status][dependency-badge]][dependency]
[![devDependency Status][devdependency-badge]][devdependency]
[![peerDependency Status][peerdependency-badge]][peerdependency]

[![prettier][prettier-badge]][prettier]
[![license][license-badge]][license]

Expand All @@ -20,7 +16,7 @@
$ yarn add graphql.macro
```

_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 [react-script@2.x](https://github.com/facebookincubator/create-react-app/issues/3815) .)_
_Note: You'll need to install and configure [babel-plugin-macros](https://github.com/kentcdodds/babel-plugin-macros) if you haven't already._

## Example

Expand Down Expand Up @@ -67,16 +63,16 @@ const query = {
## Alternative
* [Webpack preprocessing with graphql/loader](https://github.com/apollographql/graphql#webpack-preprocessing-with-graphqlloader)
* [Babel preprocessing](https://github.com/apollographql/graphql#babel-preprocessing)
* https://github.com/leoasis/graphql-tag.macro
- [Webpack preprocessing with graphql/loader](https://github.com/apollographql/graphql#webpack-preprocessing-with-graphqlloader)
- [Babel preprocessing](https://github.com/apollographql/graphql#babel-preprocessing)
- https://github.com/leoasis/graphql-tag.macro
## Development
### Requirements
* node >= 9.4.0
* yarn >= 1.3.2
- node >= 11.7.0
- yarn >= 1.13.0
```sh
$ yarn install --pure-lockfile
Expand All @@ -92,13 +88,21 @@ $ yarn run test:watch
$ yarn run build
```
## Publish
```bash
$ npm version patch
$ npm run changelog
git commit & push
```
---
## CONTRIBUTING
* ⇄ Pull requests and ★ Stars are always welcome.
* For bugs and feature requests, please create an issue.
* Pull requests must be accompanied by passing automated tests.
- ⇄ Pull requests and ★ Stars are always welcome.
- For bugs and feature requests, please create an issue.
- Pull requests must be accompanied by passing automated tests.
## [CHANGELOG](CHANGELOG.md)
Expand All @@ -115,11 +119,5 @@ MIT: [http://michaelhsu.mit-license.org](http://michaelhsu.mit-license.org)
[npm-downloads]: https://img.shields.io/npm/dt/graphql.macro.svg?style=flat-square
[license-badge]: https://img.shields.io/npm/l/graphql.macro.svg?style=flat-square
[license]: http://michaelhsu.mit-license.org/
[dependency-badge]: https://david-dm.org/evenchange4/graphql.macro.svg?style=flat-square
[dependency]: https://david-dm.org/evenchange4/graphql.macro
[devdependency-badge]: https://david-dm.org/evenchange4/graphql.macro/dev-status.svg?style=flat-square
[devdependency]: https://david-dm.org/evenchange4/graphql.macro#info=devDependencies
[peerdependency-badge]: https://david-dm.org/evenchange4/graphql.macro/peer-status.svg?style=flat-square
[peerdependency]: https://david-dm.org/evenchange4/graphql.macro#info=peerDependencies
[prettier-badge]: https://img.shields.io/badge/styled_with-prettier-ff69b4.svg?style=flat-square
[prettier]: https://github.com/prettier/prettier
80 changes: 0 additions & 80 deletions flow-typed/npm/@babel/cli_vx.x.x.js

This file was deleted.

0 comments on commit 261a259

Please sign in to comment.