Skip to content

Commit f3bd230

Browse files
committed
set up ci and deployment
1 parent 23ddccd commit f3bd230

File tree

2 files changed

+20
-1
lines changed

2 files changed

+20
-1
lines changed

.travis.yml

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
language: node_js
2+
node_js:
3+
- "stable"
4+
cache:
5+
directories:
6+
- node_modules
7+
script:
8+
- npm test
9+
- npm run build
10+
deploy:
11+
provider: pages
12+
skip_cleanup: true
13+
github_token: $github_token
14+
local_dir: dist
15+
keep-history: true
16+
on:
17+
branch: master

package.json

+3-1
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,11 @@
33
"version": "1.0.0",
44
"description": "",
55
"main": "index.js",
6+
"homepage": "https://fac-13.github.io/LG-Game/",
67
"scripts": {
78
"start": "parcel index.html",
8-
"test": "jest --watch",
9+
"test": "jest",
10+
"test:watch": "jest --watch",
911
"test:coverage": "jest --coverage",
1012
"build": "parcel build index.html"
1113
},

0 commit comments

Comments
 (0)