-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4378c9c
commit b156b98
Showing
13 changed files
with
126 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,9 @@ | ||
task default: %w[build] | ||
|
||
desc 'Build the app and throw it into secret_sauce_api' | ||
task :build do | ||
desc 'Build the app and throw it into github' | ||
task :deploy do | ||
sh 'rm -rf build' | ||
sh 'middleman build' | ||
sh 'bundle exec middleman build' | ||
sh 'gulp buildcss' | ||
sh 'bundle exec middleman deploy' | ||
end | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#!/usr/bin/env ruby | ||
# frozen_string_literal: true | ||
# | ||
# This file was generated by Bundler. | ||
# | ||
# The application 'middleman' is installed as part of a gem, and | ||
# this file is here to facilitate running it. | ||
# | ||
|
||
require "pathname" | ||
ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile", | ||
Pathname.new(__FILE__).realpath) | ||
|
||
require "rubygems" | ||
require "bundler/setup" | ||
|
||
load Gem.bin_path("middleman-core", "middleman") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
var gulp = require('gulp'); // core gulp | ||
var uncss = require('gulp-uncss'); // removes unused css | ||
var csso = require('gulp-csso'); // minify css | ||
var gzip = require('gulp-gzip'); // gzip compression | ||
|
||
gulp.task('uncss', function() { | ||
return gulp.src('build/assets/stylesheets/*.css') | ||
.pipe(uncss({ | ||
html: ['build/**/*.html', 'build/*.html'] | ||
})) | ||
.pipe(csso()) | ||
.pipe(gulp.dest('./build/assets/stylesheets')) | ||
.pipe(gzip()) | ||
.pipe(gulp.dest('./build/assets/stylesheets')); | ||
}); | ||
|
||
// Scan site, remove unused css | ||
gulp.task('buildcss', ['uncss']); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
{ | ||
"name": "adrianching.com", | ||
"version": "1.0.0", | ||
"description": "Personal Site of Adrian Ching", | ||
"main": "gulpfile.js", | ||
"dependencies": {}, | ||
"devDependencies": { | ||
"gulp": "", | ||
"gulp-uncss": "", | ||
"gulp-csso": "", | ||
"gulp-gzip": "" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/adrianchinghc/adrianchinghc.github.io.git" | ||
}, | ||
"author": "Adrian Ching", | ||
"license": "ISC", | ||
"bugs": { | ||
"url": "https://github.com/adrianchinghc/adrianchinghc.github.io/issues" | ||
}, | ||
"homepage": "https://github.com/adrianchinghc/adrianchinghc.github.io#readme" | ||
} |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#mc_embed_signup | ||
form#mc-embedded-subscribe-form.validate[action="//adrianching.us12.list-manage.com/subscribe/post?u=a818b467193d9315e8f002c75&id=bef9b73d36" method="post" name="mc-embedded-subscribe-form" target="_blank" novalidate] | ||
#mc_embed_signup_scroll | ||
.mc-field-group | ||
input#mce-EMAIL.required.email[type="email" value="" name="EMAIL"] | ||
.mc-field-group | ||
input#mce-FNAME[type="text" value="" name="FNAME"] | ||
#mce-responses.clear | ||
#mce-error-response.response[style="display:none"] | ||
#mce-success-response.response[style="display:none"] | ||
div[style="position: absolute; left: -5000px;" aria-hidden="true"] | ||
input[type="text" name="b_a818b467193d9315e8f002c75_bef9b73d36" tabindex="-1" value=""] | ||
.clear | ||
input#mc-embedded-subscribe.btn.btn-primary[type="submit" value="Subscribe" name="subscribe"] | ||
script[type="text/javascript" src="//s3.amazonaws.com/downloads.mailchimp.com/js/mc-validate.js"] | ||
script[type="text/javascript"] | ||
| (function($) {window.fnames = new Array(); window.ftypes = new Array();fnames[0]='EMAIL';ftypes[0]='email';fnames[1]='FNAME';ftypes[1]='text';}(jQuery));var $mcj = jQuery.noConflict(true); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters