Skip to content

Commit

Permalink
🚀 RELEASE: Support for Tailwind CSS and disable Nginx cache
Browse files Browse the repository at this point in the history
  • Loading branch information
luangjokaj committed Dec 5, 2020
1 parent 96dead8 commit 7feea85
Show file tree
Hide file tree
Showing 14 changed files with 56 additions and 599 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@

# Changelog

**v0.2.9-6**
- 📦 NEW: Add support for Tailwind CSS.
- 👌 IMPROVE: Disable nginx cache for dev server.

**v0.2.9-4**
- 🐛 FIX: Missing welcome.html

Expand Down
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,10 @@ Tags: responsive, clean, minimal, modern, documentation
*/
```

**TAILWIND CSS**

[Tailwind CSS](https://tailwindcss.com/) is a utility-first CSS framework packed with classes like `flex`, `pt-4`, `text-center` and `rotate-90` that can be composed to build any design, directly in your markup. Tailwind comes pre-installed with WordPressify.

## Sass
WordPressify is super flexible. You can install Sass and use it as the main CSS preprocessor:
```
Expand Down
1 change: 1 addition & 0 deletions config/nginx/sites-enabled/wordpress
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
server {
listen 80 default_server;
expires off;

error_page 403 500 502 503 504 /welcome.html;
root /var/www/html;
Expand Down
3 changes: 3 additions & 0 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ const plumber = require('gulp-plumber');
const postcss = require('gulp-postcss');
const postCSSMixins = require('postcss-mixins');
const postcssPresetEnv = require('postcss-preset-env');
const tailwindcss = require("tailwindcss");
const sourcemaps = require('gulp-sourcemaps');
const uglify = require('gulp-uglify');
const zip = require('gulp-vinyl-zip');
Expand Down Expand Up @@ -45,6 +46,7 @@ const pluginsListDev = [
'custom-media': true,
},
}),
tailwindcss,
];

const pluginsListProd = [
Expand All @@ -58,6 +60,7 @@ const pluginsListProd = [
'custom-media': true,
},
}),
tailwindcss,
require('cssnano')({
preset: [
'default',
Expand Down
7 changes: 2 additions & 5 deletions installer/modules/run.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ module.exports = async () => {
upstreamUrl = `https://raw.githubusercontent.com/${process.env.WPFY_GH_REPO}/${refname}`;
} else {
upstreamUrl =
'https://raw.githubusercontent.com/luangjokaj/wordpressify/v0.2.9-5';
'https://raw.githubusercontent.com/luangjokaj/wordpressify/v0.2.9-6';
}

// Files.
Expand All @@ -38,6 +38,7 @@ module.exports = async () => {
`${upstreamUrl}/LICENSE`,
`${upstreamUrl}/README.md`,
`${upstreamUrl}/gulpfile.js`,
`${upstreamUrl}/tailwind.config.js`,
`${upstreamUrl}/docker-compose.yml`,
`${upstreamUrl}/Dockerfile.in`,
`${upstreamUrl}/installer/package.json`,
Expand All @@ -50,8 +51,6 @@ module.exports = async () => {
`${upstreamUrl}/config/nginx/sites-enabled/wordpress`,
`${upstreamUrl}/config/nginx/snippets/fastcgi-php.conf`,

`${upstreamUrl}/src/assets/css/globals.css`,
`${upstreamUrl}/src/assets/css/mixins.css`,
`${upstreamUrl}/src/assets/css/style.css`,
`${upstreamUrl}/src/assets/css/variables.css`,
`${upstreamUrl}/src/assets/css/wordpressify.css`,
Expand Down Expand Up @@ -80,8 +79,6 @@ module.exports = async () => {
// Organise file structure
const dotFiles = ['.babelrc', '.gitignore', '.stylelintrc', '.env.in'];
const cssFiles = [
'globals.css',
'mixins.css',
'style.css',
'variables.css',
'wordpressify.css',
Expand Down
6 changes: 3 additions & 3 deletions installer/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "wordpressify",
"version": "0.2.9-5",
"version": "0.2.9-6",
"description": "A build system designed to automate your WordPress development workflow.",
"keywords": [
"babel",
Expand Down Expand Up @@ -43,11 +43,11 @@
"dependencies": {
"@babel/core": "^7.12.9",
"@babel/preset-env": "^7.12.7",
"aos": "^2.3.4",
"beeper": "^2.0.0",
"browser-sync": "^2.26.13",
"cssnano": "^4.1.10",
"del": "^6.0.0",
"dotenv": "^8.2.0",
"fancy-log": "^1.3.3",
"gulp": "^4.0.2",
"gulp-babel": "^8.0.0",
Expand All @@ -65,6 +65,6 @@
"postcss-mixins": "^7.0.1",
"postcss-preset-env": "^6.7.0",
"stylelint": "^13.8.0",
"dotenv": "^8.2.0"
"tailwindcss": "^2.0.1"
}
}
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "wordpressify",
"version": "0.2.9-5",
"version": "0.2.9-6",
"description": "A build system designed to automate your WordPress development workflow.",
"keywords": [
"babel",
Expand Down
136 changes: 0 additions & 136 deletions src/assets/css/globals.css

This file was deleted.

Loading

0 comments on commit 7feea85

Please sign in to comment.