vac.dev-experimental-old/README.md

49 lines
2.3 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Tailwind Jekyll Starter
A starter kit for using [Tailwind](https://tailwindcss.com) (v0.7.4) with [Jekyll](https://jekyllrb.com/) that includes:
* A barebones Jekyll starter theme
* A Gulpfile that does the following:
* Compiles Tailwind
* Strips out unused CSS using [Purgecss](http://www.purgecss.com/)
* Runs [Autoprefixer](https://github.com/postcss/autoprefixer)
* Minifies your CSS
* Generate a CSS sourcemap
* Compiles Jekyll
* Runs [Browsersync](https://www.browsersync.io/) for local development
## Example
I used this starter for my personal blog. See the code [here](https://github.com/taylorbryant/taylorbryant.github.io).
## What is Tailwind?
>"Tailwind is a utility-first CSS framework for rapidly building custom user interfaces."
[Tailwind](https://tailwindcss.com)
## What is Jekyll?
>"Jekyll is a simple, blog-aware, static site generator perfect for personal, project, or organization sites. Think of it like a file-based CMS, without all the complexity. Jekyll takes your content, renders Markdown and Liquid templates, and spits out a complete, static website ready to be served by Apache, Nginx or another web server. Jekyll is the engine behind GitHub Pages, which you can use to host sites right from your GitHub repositories."
[Jekyll](https://jekyllrb.com/)
## Requirements
* [Bundler](http://bundler.io/)
* [Jekyll](https://jekyllrb.com/)
* [Node.js](https://nodejs.org/en/)
* [npm](https://www.npmjs.com/)
* [Ruby](https://www.ruby-lang.org/en/)
## Getting started
* `bundle install` to install Ruby gems
* `npm ci` to install npm packages listed in `package-lock.json`
* `npm run start` to compile the site with development settings and run BrowserSync
## Build your site
* `npm run build:dev` to compile the site with development settings
* `npm run build` to compile the site for production
## License
[MIT](https://github.com/taylorbryant/tailwind-jekyll/blob/master/LICENSE.md)
## How you can help
Enjoying the project and want to help? You can:
* [Create an issue](https://github.com/taylorbryant/tailwind-jekyll/issues/new) with some constructive criticism
* [Submit a pull request](https://github.com/taylorbryant/tailwind-jekyll/compare) with some improvements to the project
* [Buy me a :coffee:](https://cash.me/$TaylorBryant)