Skip to content

Commit af0495d

Browse files
authored
chore(package): ncu update (#19)
docs(LICENSE): update year to 2017 chore(env): use node 8.5.0 yarn 1.0.2
1 parent 51710cf commit af0495d

File tree

9 files changed

+657
-400
lines changed

9 files changed

+657
-400
lines changed

.travis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
sudo: false
22
language: node_js
33
node_js:
4-
- 8.4.0
4+
- 8.5.0
55
env:
66
global:
7-
- YARN_VERSION=0.27.5
7+
- YARN_VERSION=1.0.2
88

99
before_install:
1010
- export PATH="$HOME/.yarn/bin:$PATH"

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33
## [HEAD]
44
> Unreleased
55
6+
* docs(LICENSE): update year to 2017
7+
* chore(env): use node 8.5.0 yarn 1.0.2
8+
* chore(package): ncu update
9+
610
## [v2.1.0]
711
> Aug 18, 2017
812

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
FROM node:8.4.0-slim AS builder
1+
FROM node:8.5.0-slim AS builder
22
WORKDIR /app
33
COPY . .
44
RUN yarn install --pure-lockfile --production
55
RUN ls -lA
66

7-
FROM mhart/alpine-node:base-8.4.0
7+
FROM mhart/alpine-node:base-8.5.0
88
ENV PORT=3000
99
WORKDIR /app
1010
COPY --from=builder /app .

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) 2016 Michael Hsu
3+
Copyright (c) 2017 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: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,9 +123,9 @@ Options:
123123

124124
### Requirements
125125

126-
- node >= 8.4.0
126+
- node >= 8.5.0
127127
- npm >= 5.3.0
128-
- yarn >= 0.27.5
128+
- yarn >= 1.0.2
129129

130130
```
131131
$ git clone https://github.com/evenchange4/micro-medium-api.git

package.json

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,10 @@
4949
},
5050
"dependencies": {
5151
"dataloader": "^1.3.0",
52-
"graphql": "^0.10.5",
52+
"graphql": "^0.11.3",
5353
"graphql-server-micro": "^1.1.0",
54-
"graphql-tools": "^1.2.1",
55-
"micro": "^8.0.2",
54+
"graphql-tools": "^1.2.2",
55+
"micro": "^9.0.0",
5656
"micro-compress": "^1.0.0",
5757
"micro-cors": "^0.0.4",
5858
"micro-ratelimit": "^0.2.0",
@@ -65,24 +65,24 @@
6565
},
6666
"devDependencies": {
6767
"await-url": "^0.3.0",
68-
"babel-eslint": "^7.2.3",
68+
"babel-eslint": "^8.0.0",
6969
"codecov": "^2.3.0",
70-
"eslint": "^4.4.1",
70+
"eslint": "^4.6.1",
7171
"eslint-config-airbnb": "^15.1.0",
72-
"eslint-config-prettier": "^2.3.0",
72+
"eslint-config-prettier": "^2.4.0",
7373
"eslint-config-react-app": "^2.0.0",
74-
"eslint-plugin-flowtype": "^2.35.0",
74+
"eslint-plugin-flowtype": "^2.35.1",
7575
"eslint-plugin-import": "^2.7.0",
76-
"eslint-plugin-jest": "^20.0.3",
76+
"eslint-plugin-jest": "^21.1.0",
7777
"eslint-plugin-jsx-a11y": "^5.1.1",
7878
"eslint-plugin-prettier": "^2.2.0",
79-
"eslint-plugin-react": "^7.2.1",
80-
"jest": "^20.0.4",
81-
"micro-dev": "^1.2.1",
79+
"eslint-plugin-react": "^7.3.0",
80+
"jest": "^21.1.0",
81+
"micro-dev": "^1.2.3",
8282
"nock": "^9.0.14",
83-
"now": "^7.3.0",
84-
"pkg": "^4.2.3",
85-
"prettier": "^1.5.3",
83+
"now": "^8.3.1",
84+
"pkg": "^4.2.4",
85+
"prettier": "^1.7.0",
8686
"test-listen": "^1.0.2"
8787
},
8888
"eslintConfig": {

tasks/deploy-prod.sh

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -11,23 +11,20 @@ ALIAS='micro-medium-api-michaelhsutw.now.sh'
1111

1212
export PATH="./node_modules/.bin:$PATH"
1313

14-
# 0. Use team
15-
now switch $TEAM --token "$NOW_TOKEN"
16-
1714
# 1. Wair for deployment ready
18-
URL=$(now -e ORIGIN="$ORIGIN" --public --token "$NOW_TOKEN")
15+
URL=$(now -e ORIGIN="$ORIGIN" --public --token "$NOW_TOKEN" --team $TEAM)
1916
await-url "$URL"
20-
now ls --token "$NOW_TOKEN"
17+
now ls --token "$NOW_TOKEN" --team $TEAM
2118

2219
# 2. Alias
23-
now alias set "$URL" "$ALIAS" --token "$NOW_TOKEN"
20+
now alias set "$URL" "$ALIAS" --token "$NOW_TOKEN" --team $TEAM
2421

2522
# 3. Purge old services
26-
now remove --yes --safe --token "$NOW_TOKEN" $PROJECT
23+
now remove --yes --safe --token "$NOW_TOKEN" --team $TEAM $PROJECT
2724

2825
# 4. Scale to 1
29-
now scale "$ALIAS" 1 --token "$NOW_TOKEN"
26+
now scale "$ALIAS" 1 --token "$NOW_TOKEN" --team $TEAM
3027

3128
# 5. Log results
32-
now ls --token "$NOW_TOKEN"
33-
now alias ls --token "$NOW_TOKEN"
29+
now ls --token "$NOW_TOKEN" --team $TEAM
30+
now alias ls --token "$NOW_TOKEN" --team $TEAM

tasks/deploy.sh

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -11,23 +11,20 @@ ALIAS='micro-medium-api.now.sh'
1111

1212
export PATH="./node_modules/.bin:$PATH"
1313

14-
# 0. Use team
15-
now switch $TEAM --token "$NOW_TOKEN"
16-
1714
# 1. Wair for deployment ready
18-
URL=$(now -e ORIGIN="$ORIGIN" --public --token "$NOW_TOKEN")
15+
URL=$(now -e ORIGIN="$ORIGIN" --public --token "$NOW_TOKEN" --team $TEAM)
1916
await-url "$URL"
20-
now ls --token "$NOW_TOKEN"
17+
now ls --token "$NOW_TOKEN" --team $TEAM
2118

2219
# 2. Alias
23-
now alias set "$URL" "$ALIAS" --token "$NOW_TOKEN"
20+
now alias set "$URL" "$ALIAS" --token "$NOW_TOKEN" --team $TEAM
2421

2522
# 3. Purge old services
26-
now remove --yes --safe --token "$NOW_TOKEN" $PROJECT
23+
now remove --yes --safe --token "$NOW_TOKEN" --team $TEAM $PROJECT
2724

2825
# 4. Scale to 1
29-
now scale "$ALIAS" 1 --token "$NOW_TOKEN"
26+
now scale "$ALIAS" 1 --token "$NOW_TOKEN" --team $TEAM
3027

3128
# 5. Log results
32-
now ls --token "$NOW_TOKEN"
33-
now alias ls --token "$NOW_TOKEN"
29+
now ls --token "$NOW_TOKEN" --team $TEAM
30+
now alias ls --token "$NOW_TOKEN" --team $TEAM

0 commit comments

Comments
 (0)