Skip to content

Commit

Permalink
feat(deploy): Add deploy feature to GitHub pages
Browse files Browse the repository at this point in the history
Enable deployment to gh-pages branch using `gulp release` or `gulp deploy`

Fixes #2
  • Loading branch information
fusionstrings committed Aug 31, 2015
1 parent 3ef3108 commit 49f68a0
Show file tree
Hide file tree
Showing 8 changed files with 21 additions and 9 deletions.
1 change: 1 addition & 0 deletions app/CNAME
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
project-fusion.fusionstrings.com
3 changes: 3 additions & 0 deletions app/fuses/fuse-header/styles/_header.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
header{
border-bottom: 1px solid #000;
}
9 changes: 2 additions & 7 deletions app/styles/style.scss
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
@import '../fuses/fuse-hello/hello';
div {
lost-column: 1/4;
}
a {
display: flex;
color: rgba(155, 255, 236, 0.5);
}
@import '../fuses/fuse-header/styles/header';

3 changes: 2 additions & 1 deletion build/paths.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,5 +42,6 @@ export default {
changelog: root('../CHANGELOG.md'),
package: root('../package.json'),
e2eSpecsSrc: 'test/e2e/src/*.js',
e2eSpecsDist: 'test/e2e/dist/'
e2eSpecsDist: 'test/e2e/dist/',
build: outputRoot + '**/*'
};
2 changes: 1 addition & 1 deletion build/tasks/clean.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ import del from 'del';
import paths from '../paths';

// Clean output directory
gulp.task('clean', cb => del([paths.tmp, paths.output + '*', '!' + paths.output + '.git'], {dot: true}, cb));
gulp.task('clean', cb => del([paths.tmp, paths.output + '*', '!' + paths.output + '.git', '!CNAME'], {dot: true}, cb));
10 changes: 10 additions & 0 deletions build/tasks/deploy.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import gulp from 'gulp';
import gulpLoadPlugins from 'gulp-load-plugins';
import paths from '../paths';

const $ = gulpLoadPlugins();

gulp.task('deploy', () => {
return gulp.src(paths.build)
.pipe($.ghPages());
});
1 change: 1 addition & 0 deletions build/tasks/release.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ gulp.task('release', cb => {
runSequence(
'bump',
'changelog',
'deploy'
cb
);
});
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
"gulp-changed": "^1.3.0",
"gulp-eslint": "^1.0.0",
"gulp-flatten": "^0.1.1",
"gulp-gh-pages": "^0.5.2",
"gulp-if": "^1.2.5",
"gulp-imagemin": "^2.3.0",
"gulp-load-plugins": "^1.0.0-rc.1",
Expand Down

0 comments on commit 49f68a0

Please sign in to comment.