Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added travis build and deploy #155

Merged
merged 1 commit into from
May 23, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
node_modules/
.idea/
.idea/
.DS_Store
public/stylesheets/
sass/styles/app.css
dist/
examples/html/
examples/html/
live/
14 changes: 14 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
language: node_js
node_js:
- "node"

before_script: grunt build
script: sh live.sh
deploy:
local-dir: live
provider: pages
skip-cleanup: true
github-token: $GITHUB_TOKEN
keep-history: false
on:
branch: master
9 changes: 8 additions & 1 deletion gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,4 +101,11 @@ module.exports = function(grunt) {
'watch'
]);
});
};

grunt.registerTask('build', function (target) {
grunt.task.run([
'hbs',
'sass'
]);
});
};
4 changes: 4 additions & 0 deletions live.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
rm -rf live
mkdir live
cp -R examples/html/* live/
cp -R examples/public/* live/