From 1d0caf22b3685926f688aca5831bcdec0d37572b Mon Sep 17 00:00:00 2001 From: Joshua Seigler Date: Tue, 12 Sep 2017 13:12:50 -0400 Subject: [PATCH] :tv: Add github pages deploy task --- app/assets/index.html | 1 - app/initialize.js | 2 ++ package.json | 7 ++++++- yarn.lock | 11 +++++++++++ 4 files changed, 19 insertions(+), 2 deletions(-) diff --git a/app/assets/index.html b/app/assets/index.html index 885168a..8af21b6 100644 --- a/app/assets/index.html +++ b/app/assets/index.html @@ -11,7 +11,6 @@
- diff --git a/app/initialize.js b/app/initialize.js index 2410c2d..b757030 100644 --- a/app/initialize.js +++ b/app/initialize.js @@ -1,5 +1,7 @@ 'use strict'; +const io = require('socket.io-client'); + var socket = io("https://insight.dash.org:443/"); var transactionList = document.getElementById('transactionList'); var muteButton = document.getElementById('muteToggle'); diff --git a/package.json b/package.json index 1f47948..266519f 100644 --- a/package.json +++ b/package.json @@ -12,10 +12,15 @@ "less": "^2.7.2", "socket.io": "^2.0.3" }, - "scripts": {}, + "scripts": { + "watch": "brunch watch -s", + "build": "brunch build", + "deploy": "npm run build && git-directory-deploy --directory public/" + }, "devDependencies": { "browser-sync-brunch": "^0.0.9", "brunch": "^2.10.10", + "git-directory-deploy": "^1.5.1", "less-brunch": "^2.10.0" } } diff --git a/yarn.lock b/yarn.lock index cdf6871..4011145 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1298,6 +1298,13 @@ getpass@^0.1.1: dependencies: assert-plus "^1.0.0" +git-directory-deploy@^1.5.1: + version "1.5.1" + resolved "https://registry.yarnpkg.com/git-directory-deploy/-/git-directory-deploy-1.5.1.tgz#c4fad8c270d678d5f309fbddeac1eda60cad7fd2" + dependencies: + lodash "^4.14.2" + minimist "^1.1.0" + glob-base@^0.3.0: version "0.3.0" resolved "https://registry.yarnpkg.com/glob-base/-/glob-base-0.3.0.tgz#dbb164f6221b1c0b1ccf82aea328b497df0ea3c4" @@ -1849,6 +1856,10 @@ lodash@^3.0.1, lodash@^3.10.1: version "3.10.1" resolved "https://registry.yarnpkg.com/lodash/-/lodash-3.10.1.tgz#5bf45e8e49ba4189e17d482789dfd15bd140b7b6" +lodash@^4.14.2: + version "4.17.4" + resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.4.tgz#78203a4d1c328ae1d86dca6460e369b57f4055ae" + lodash@~1.0.1: version "1.0.2" resolved "https://registry.yarnpkg.com/lodash/-/lodash-1.0.2.tgz#8f57560c83b59fc270bd3d561b690043430e2551"