Skip to content
This repository was archived by the owner on Nov 8, 2022. It is now read-only.

Commit bbafff4

Browse files
committed
chore: Merge branch 'dev'
2 parents 6d481b3 + f0f9abf commit bbafff4

File tree

8 files changed

+566
-493
lines changed

8 files changed

+566
-493
lines changed

.babelrc

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,18 @@
1818
}]
1919
]
2020
},
21+
"ci": {
22+
"presets": [
23+
["next/babel", {
24+
"preset-env": {
25+
"targets": {
26+
"ie": "11"
27+
},
28+
"debug": false
29+
}
30+
}]
31+
]
32+
},
2133
"test": {
2234
"plugins": ["inline-dotenv"]
2335
}

.travis.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,9 @@ before_script:
2828

2929
script:
3030
# - codecov
31-
- nvm exec 10.10 npm run test:ci
31+
- rm -rf .next
32+
- nvm exec 12.4.0 npm run build.ci
33+
- nvm exec 12.4.0 npm run test:ci
3234

3335
cache:
3436
directories:
@@ -40,5 +42,4 @@ cache:
4042
notifications:
4143
email:
4244
on_failure: change
43-
4445
# after_success: 'npm run coveralls'

README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,16 @@
11
![CPS Brand](https://github.com/mydearxym/mastani_server/blob/dev/docs/snapshots/cps_logo_md.png?raw=true)
2-
=========
2+
3+
34
[![Build Status](https://travis-ci.org/coderplanets/coderplanets_web.svg?branch=dev)](https://travis-ci.org/coderplanets/coderplanets_web)
45
[![codecov](https://codecov.io/gh/coderplanets/coderplanets_web/branch/dev/graph/badge.svg)](https://codecov.io/gh/coderplanets/coderplanets_web)
56
[![dev status](https://david-dm.org/coderplanets/coderplanets_web.svg)](https://david-dm.org/coderplanets/coderplanets_web)
67
[![CodeFactor](https://www.codefactor.io/repository/github/coderplanets/coderplanets_web/badge)](https://www.codefactor.io/repository/github/coderplanets/coderplanets_web)
78
[![Powerd by](https://badgen.now.sh/badge/mastani/powered/a871c1)](https://github.com/mastani-stack)
89
[![cpsbadge](https://badgen.net/badge/join%20community/on%20coderplanets/9cb77b)](https://coderplanets.com)
910

10-
11-
## As advertising: the author is looking for a job :)
11+
---
12+
![cps_intro](https://user-images.githubusercontent.com/6184465/59546312-a1c0ac00-8f5d-11e9-85cc-db681a16ff13.jpg)
13+
---
1214

1315
English | [中文](https://github.com/coderplanets/coderplanets_web/blob/docs/README.zh-CN.md)
1416

package-docker.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"license": "Apache License 2.0",
55
"scripts": {
66
"build.prod": "cross-env NODE_ENV=production next build",
7+
"build.ci": "cross-env NODE_ENV=ci next build",
78
"build.dev": "cross-env NODE_ENV=dev next build",
89
"launch.dev": "cross-env NODE_ENV=dev SERVE_PORT=${SERVE_PORT} node server",
910
"launch.prod": "cross-env NODE_ENV=production SERVE_PORT=${SERVE_PORT} node server"
@@ -17,6 +18,7 @@
1718
"next-progressbar": "^1.0.0",
1819
"@next/bundle-analyzer": "^8.1.0",
1920
"accepts": "^1.3.4",
21+
"acorn": "^6.1.1",
2022
"antd": "3.8.4",
2123
"apollo-cache-inmemory": "1.5.1",
2224
"apollo-client": "2.5.1",
@@ -51,7 +53,7 @@
5153
"mobx-react-lite": "^1.2.0",
5254
"mobx-state-tree": "3.10.1",
5355
"module-alias": "^2.0.1",
54-
"next": "8.1.1-canary.47",
56+
"next": "8.1.0",
5557
"next-seo": "^1.9.0",
5658
"path-match": "^1.2.4",
5759
"polished": "2.3.0",
@@ -90,7 +92,7 @@
9092
"uuid": "3.3.2"
9193
},
9294
"devDependencies": {
93-
"@babel/core": "^7.2.2",
95+
"@babel/core": "7.2.2",
9496
"@babel/plugin-proposal-decorators": "^7.1.0",
9597
"babel-eslint": "9.0.0",
9698
"babel-jest": "^23.6.0",

package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
"build:with18n": "npm run i18n && next build",
1414
"build.prod": "cross-env NODE_ENV=production next build",
1515
"build.dev": "cross-env NODE_ENV=dev next build",
16+
"build.ci": "cross-env NODE_ENV=ci next build",
1617
"launch": "cross-env NODE_ENV=production next start -p ${SERVE_PORT}",
1718
"launch.dev": "cross-env NODE_ENV=dev SERVE_PORT=${SERVE_PORT} node server",
1819
"launch.prod": "cross-env NODE_ENV=production SERVE_PORT=${SERVE_PORT} node server",
@@ -44,6 +45,7 @@
4445
"@sentry/node": "^4.6.4",
4546
"@zeit/next-source-maps": "0.0.4-canary.1",
4647
"accepts": "^1.3.4",
48+
"acorn": "^6.1.1",
4749
"antd": "3.8.4",
4850
"apollo-cache-inmemory": "1.5.1",
4951
"apollo-client": "2.5.1",
@@ -78,7 +80,7 @@
7880
"mobx-react-lite": "^1.2.0",
7981
"mobx-state-tree": "3.10.1",
8082
"module-alias": "^2.0.1",
81-
"next": "8.1.1-canary.47",
83+
"next": "8.1.0",
8284
"next-compose-plugins": "^2.2.0",
8385
"next-offline": "^4.0.2",
8486
"next-progressbar": "^1.0.0",
@@ -121,7 +123,7 @@
121123
"uuid": "^3.3.2"
122124
},
123125
"devDependencies": {
124-
"@babel/core": "^7.2.2",
126+
"@babel/core": "7.2.2",
125127
"@babel/plugin-proposal-decorators": "^7.1.0",
126128
"@commitlint/cli": "^7.0.0",
127129
"@commitlint/config-conventional": "^8.0.0",

server.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
const dev = process.env.NODE_ENV !== 'production'
1+
const dev =
2+
process.env.NODE_ENV !== 'production' && process.env.NODE_ENV !== 'ci'
23

34
const next = require('next')
45
const express = require('express')

travis/install_node.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ wget -qO- https://raw.githubusercontent.com/creationix/nvm/v0.34.0/install.sh |
55
[[ -s $HOME/.nvm/nvm.sh ]] && . $HOME/.nvm/nvm.sh
66
echo "> check nvm"
77
nvm --version
8-
echo "> use node 10.10"
9-
nvm install 10.10.0
10-
nvm alias default 10.10.0
8+
echo "> use node 12.4.0"
9+
nvm install 12.4.0
10+
nvm alias default 12.4.0
1111
echo "> install node done"
1212
node --version
1313
pwd

0 commit comments

Comments
 (0)