Skip to content
This repository was archived by the owner on Mar 6, 2019. It is now read-only.
Open
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
11 changes: 11 additions & 0 deletions _config-dev.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
exclude:
- assets
- node_modules
- dist
- _i18n

languages: ["en"]

gems:
- jekyll-paginate
- jekyll-multiple-languages-plugin
22 changes: 22 additions & 0 deletions _plugins/image.rb.override
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
class EmptyBlock < Liquid::Block
def initialize(tag_name, markup, tokens)
super
end

def render(context)
""
end
end
class EmptyTag < Liquid::Tag

def initialize(tag_name, markup, tokens)
super
end

def render(context)
""
end
end

Liquid::Template.register_tag('srcset', EmptyBlock)
Liquid::Template.register_tag('srcset_source', EmptyTag)
9 changes: 7 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,13 @@
"uglify": "npm run uglify:dist",
"htmlproof": "htmlproofer ./_site --disable-external --allow-hash-href --assume-extension --alt-ignore '/.*/' --file-ignore /assets/,/dist/,/style-guide/,/blog/ --url-ignore '/^/binaries/.+$/,/^/forum/?.*$/'",
"test": "echo \"No Tests.\" && exit 0",
"check:dev-override": "[ -e _plugins/image.rb.override ] && ! diff _plugins/image.rb _plugins/image.rb.override &> /dev/null",
"clean:dist": "rm -rf dist && rm -rf _site",
"clean": "npm run clean:dist",
"copy": "npm run copy:all",
"copy:all": "npm run copy:dist",
"copy:dist": "mkdir -p _site/dist/ && ncp dist/ _site/dist/",
"copy:dev": "mkdir -p _site/dist/ && ncp dist/ _site/dist/ && cp -R assets _site/assets",
"copy:js": "mkdir -p _site/dist/js/ && ncp dist/js/ _site/dist/js/",
"copy:css": "mkdir -p _site/dist/css/ && ncp dist/css/ _site/dist/css/",
"prefix": "postcss --use autoprefixer -b 'last 3 versions' --output dist/css/main.min.css dist/css/main.min.css",
Expand All @@ -24,21 +26,23 @@
"font": "mkdir -p dist/fonts && ncp src/fonts/ dist/fonts/",
"imagemin": "imagemin src/images/* _site/dist/images/ -p",
"build:jekyll": "bundle exec jekyll build --config _config.yml | egrep -v '^(Missing i18n key|Using translation)|(default language)'",
"build:jekyll:dev": "bundle exec jekyll build --config _config.yml,_config-dev.yml | egrep -v '^(Missing i18n key|Using translation)|(default language)'",
"build:jekyll:incremental": "bundle exec jekyll build --config _config.yml --incremental",
"build:js": "npm run eslint && npm run uglify",
"build:css": "npm run sass && npm run prefix",
"build:font": "npm run font",
"build:images": "npm run imagemin",
"reload": "browser-sync reload",
"build": "run-s clean build:js build:css build:font build:jekyll copy htmlproof eslint",
"build:novalidate": "run-s clean build:js build:css build:font build:jekyll copy",
"build:dev": "run-s clean build:js build:css build:font build:jekyll:dev copy:dev",
"reload": "browser-sync reload",
"watch:jekyll": "onchange 'index.html' '*/*.html' '*/*.xml' '_*/**/*.yml' '_includes/**/*.html' '_layouts/**/*.html' '_posts/*' -e '_site/*' -d 500 -- run-s build:jekyll:incremental copy reload",
"watch:css": "onchange 'src/scss/**/*' -d 500 -- run-s sass prefix copy:css",
"watch:js": "onchange 'src/js/*' -d 500 -- run-s uglify:dev copy:js reload",
"watch": "run-p serve watch:jekyll watch:css watch:js",
"serve": "browser-sync start --server _site -f '_site/dist/css'",
"start": "npm run build -s && npm run watch",
"postinstall": "gem install bundler && bundle install",
"validate": "npm ls",
"lint": "jshint ."
},
"author": "0xfff <0xfff@protonmail.com>",
Expand All @@ -65,6 +69,7 @@
},
"jshintConfig": {},
"pre-commit": [
"check:dev-override",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you please delete this line from pre commit? And the rest is fine.

"eslint",
"htmlproof"
]
Expand Down