Skip to content

Commit

Permalink
Simplified the deployment script
Browse files Browse the repository at this point in the history
  • Loading branch information
excitement-engineer committed Oct 29, 2017
1 parent 7045f80 commit 65de267
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 2 deletions.
14 changes: 14 additions & 0 deletions .travis.yml
@@ -0,0 +1,14 @@
language: node_js

node_js:
- stable

script:
- npm test
- npm run build

deploy:
provider: script
script: npm run deploy
on:
branch: master
5 changes: 5 additions & 0 deletions now.json
@@ -0,0 +1,5 @@
{
"alias": [
"red"
]
}
4 changes: 2 additions & 2 deletions package.json
@@ -1,5 +1,5 @@
{
"name": "pomodoro",
"name": "red",
"version": "0.1.0",
"private": true,
"dependencies": {
Expand All @@ -13,7 +13,7 @@
"test": "react-scripts test --env=jsdom",
"eject": "react-scripts eject",
"prepare": "npm link bs-platform",
"deploy": "npm run build && cd build && now --public --name pomodoro"
"deploy": "npm run build && now ./build --name red --public && now alias"
},
"devDependencies": {
"bs-jest": "^0.1.0",
Expand Down

0 comments on commit 65de267

Please sign in to comment.