-
Notifications
You must be signed in to change notification settings - Fork 0
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
Showing
22 changed files
with
4,178 additions
and
130 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,9 @@ | ||
build/ | ||
.bundle | ||
.cache | ||
.DS_Store | ||
node_modules/ | ||
public/ | ||
.sass-cache | ||
build/ | ||
.tmp/ | ||
tmp/ |
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 +1 @@ | ||
2.6.5 | ||
2.7.2 |
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,7 +1,10 @@ | ||
source 'https://rubygems.org' | ||
source "https://rubygems.org" | ||
|
||
gem 'middleman', '~> 4.2' | ||
gem 'middleman-autoprefixer', '~> 2.7' | ||
gem 'mini_racer', '~> 0.2.9' | ||
gem 'tzinfo-data', platforms: [:mswin, :mingw, :jruby, :x64_mingw] | ||
gem 'wdm', '~> 0.1', platforms: [:mswin, :mingw, :x64_mingw] | ||
gem "builder", ">= 3.0" | ||
gem "middleman", ">= 4.2" | ||
gem "middleman-autoprefixer", ">= 2.7" | ||
gem "middleman-blog", ">= 4.0" | ||
gem "middleman-imageoptim", ">= 0.3" | ||
gem "redcarpet", ">= 3.3.3" | ||
gem "tzinfo-data" | ||
gem "wdm", "~> 0.1", platforms: [:mswin, :mingw, :x64_mingw] |
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,10 @@ | ||
#!/bin/sh | ||
|
||
# export BUNDLE_DEPLOYMENT="true" | ||
export BUNDLE_JOBS="$(nproc)" | ||
export MAKEOPTS="-j$(nproc)" | ||
export BUNDLE_DISABLE_PLATFORM_WARNINGS="true" | ||
|
||
gem install bundler | ||
bundle install --quiet | ||
npm install |
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,49 +1,37 @@ | ||
# Activate and configure extensions | ||
# https://middlemanapp.com/advanced/configuration/#configuring-extensions | ||
|
||
activate :autoprefixer do |prefix| | ||
prefix.browsers = "last 2 versions" | ||
end | ||
|
||
# Layouts | ||
# https://middlemanapp.com/basics/layouts/ | ||
activate :blog do |blog| | ||
blog.calendar_template = "calendar.html" | ||
blog.paginate = true | ||
blog.tag_template = "tag.html" | ||
end | ||
|
||
activate :directory_indexes | ||
|
||
# Per-page layout changes | ||
page '/*.xml', layout: false | ||
page '/*.json', layout: false | ||
page '/*.txt', layout: false | ||
page "/*.xml", layout: false | ||
page "/*.json", layout: false | ||
page "/*.txt", layout: false | ||
|
||
configure :development do | ||
activate :external_pipeline, name: "gulp", command: "npm start", source: "./tmp/gulp", latency: 1 | ||
end | ||
|
||
configure :build do | ||
set :build_dir, 'public' | ||
set :build_dir, "public" | ||
|
||
activate :asset_hash | ||
activate :external_pipeline, name: "gulp", command: "NODE_ENV=production npm run build", source: "./tmp/gulp", latency: 1 | ||
activate :gzip | ||
activate :minify_css | ||
activate :minify_javascript | ||
activate :relative_assets | ||
end | ||
|
||
# With alternative layout | ||
# page '/path/to/file.html', layout: 'other_layout' | ||
activate :imageoptim do |imageoptim| | ||
imageoptim.pngout = false | ||
imageoptim.svgo = false | ||
end | ||
|
||
# Proxy pages | ||
# https://middlemanapp.com/advanced/dynamic-pages/ | ||
|
||
# proxy( | ||
# '/this-page-has-no-template.html', | ||
# '/template-file.html', | ||
# locals: { | ||
# which_fake_page: 'Rendering a fake page with a local variable' | ||
# }, | ||
# ) | ||
|
||
# Helpers | ||
# Methods defined in the helpers block are available in templates | ||
# https://middlemanapp.com/basics/helper-methods/ | ||
|
||
# helpers do | ||
# def some_helper | ||
# 'Helping' | ||
# end | ||
# end | ||
|
||
# Build-specific configuration | ||
# https://middlemanapp.com/advanced/configuration/#environment-specific-settings | ||
ignore "stylesheets/compoents/*.css" | ||
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,21 @@ | ||
var gulp = require("gulp"); | ||
var postcss = require("gulp-postcss"); | ||
|
||
gulp.task("css", function() { | ||
return gulp | ||
.src("source/stylesheets/site.css") | ||
.pipe( | ||
postcss([ | ||
require("postcss-import"), | ||
require("tailwindcss"), | ||
require("autoprefixer") | ||
]) | ||
) | ||
.pipe(gulp.dest("./tmp/gulp/stylesheets")); | ||
}); | ||
|
||
gulp.task("build", gulp.series("css")); | ||
|
||
gulp.task("default", gulp.series("css"), function() { | ||
gulp.watch("source/stylesheets/**/*.css", ["css"]); | ||
}); |
Oops, something went wrong.