Skip to content

Commit

Permalink
Fix missing name key in now.json breaking deploys
Browse files Browse the repository at this point in the history
  • Loading branch information
zeusdeux committed Dec 11, 2018
1 parent 9f7612b commit e6d5d9b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 9 deletions.
6 changes: 3 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
language: node_js
node_js:
- "node"
before_script:
- npm install --no-save now
script:
npm run build
before_deploy:
- npm install --no-save now
deploy:
provider: script
script: npm run deploy && npm run prealias && npm run alias && npm run postalias
script: npm run deploy
skip_cleanup: true
on:
branch: master
1 change: 1 addition & 0 deletions now.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"name": "isInViewport",
"version": 2,
"public": false,
"alias": ["isinviewport.mudit.xyz", "www.isinviewport.mudit.xyz"],
Expand Down
7 changes: 1 addition & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,7 @@
"test": "gulp test",
"build": "gulp",
"clean": "gulp clean",
"prepublish": "gulp",
"deploy": "export URL_TO_ALIAS=$(now --no-clipboard -t $NOW_TOKEN)",
"prealias": "echo \"Aliasing -> $URL_TO_ALIAS\"",
"alias": "now alias -t $NOW_TOKEN $URL_TO_ALIAS isinviewport.mudit.xyz && now alias -t $NOW_TOKEN $URL_TO_ALIAS www.isinviewport.mudit.xyz",
"postalias": "unset URL_TO_ALIAS"

"deploy": "now && now alias"
},
"directories": {
"example": "examples"
Expand Down

0 comments on commit e6d5d9b

Please sign in to comment.