Skip to content

Commit

Permalink
Initialised deployment process
Browse files Browse the repository at this point in the history
  • Loading branch information
Wildhoney committed Sep 6, 2014
1 parent 641080c commit 0a22bba
Show file tree
Hide file tree
Showing 6 changed files with 47 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .bowerrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"directory" : "example/js/vendor",
"interactive": false
}
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
/.idea
/node_modules
/example/js/vendor/*
!/example/js/vendor/.gitkeep
/dist/custom/*
!/dist/custom/.gitkeep
22 changes: 22 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
language: node_js

node_js:
- '0.10'
- '0.11'

before_script:
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start

script:
- npm install
- bower install
- grunt test

deploy:
provider: heroku
api_key:
secure: cp83ruF2jTRStzOCdQO4lVeCa/g55OpJd7+0snWUImRln78n15eB4ZRgfsf0Sv3meEkKjbQ6IUYKHI4DYxvitlyerubxSkZjMC8H2AkvC+HO5Xv/FYbtKrF9hXBGVoS8Qro0z8OMX6R17mF5d9UoLvp9elj8tUKXdV+2GQUPn5U=
app: ng-context-menu
on:
repo: Wildhoney/ngContextMenu
1 change: 1 addition & 0 deletions Procfile
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
web: node example/server/default.js
12 changes: 12 additions & 0 deletions example/server/default.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
(function($process) {

"use strict";

var express = require('express'),
app = express(),
server = require('http').createServer(app);

app.use(express.static(__dirname + '/..'));
server.listen($process.env.PORT || 3507);

})(process);
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,8 @@
"bugs": {
"url": "https://github.com/Wildhoney/ngContextMenu/issues"
},
"homepage": "https://github.com/Wildhoney/ngContextMenu"
"homepage": "https://github.com/Wildhoney/ngContextMenu",
"dependencies": {
"express": "^4.8.8"
}
}

0 comments on commit 0a22bba

Please sign in to comment.