Merge branch 'feature/update-composer'

# Conflicts:
#	package-lock.json
This commit is contained in:
Calvin Koepke 2019-10-24 21:09:30 -06:00
commit e602c13e05
7 changed files with 2110 additions and 2992 deletions

1
.gitignore vendored
View file

@ -1,3 +1,4 @@
node_modules
vendor
dist
.DS_Store

View file

@ -1,15 +1,20 @@
# WordPress Tailwind Starter Theme
A minimalistic WordPress starter theme, based on Tailwind and PurgeCSS.
## Requirements
- [NodeJS](https://nodejs.org)
- [Composer](https://getcomposer.org)
## How to get started
1. Clone or [download](https://github.com/freeshifter/wp-tailwind/archive/master.zip "Download the WP Tailwind Zip") the project onto your `themes` directory `(./wp-content/themes)`
2. Run a find/replace for the following strings:
- `wp-tailwind`
- `WP_Tailwind`
- `wp_tailwind_`
3. Run `npm install`
4. Update the BrowserSyncPlugin configuration in `webpack.config.js` to the domain of your local installation.
4. Run `npm start` to begin development server.
3. Run `composer install`
4. Run `npm install`
5. Update the BrowserSyncPlugin configuration in `webpack.config.js` to the domain of your local installation.
6. Run `npm start` to begin development server.
## Webpack
The theme uses Webpack as its bundler with ES6 modules for JavaScript files. It also compresses images found in src automatically, and maps images to the appropriate destination through the `@images` alias. For example, `@images/example.jpg` would be compiled to `../images/example.jpg`.

5
composer.json Normal file
View file

@ -0,0 +1,5 @@
{
"require": {
"a7/autoload": "^2.1"
}
}

55
composer.lock generated Normal file
View file

@ -0,0 +1,55 @@
{
"_readme": [
"This file locks the dependencies of your project to a known state",
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically"
],
"content-hash": "c0d1ffb65b9e528acc693829affbf907",
"packages": [
{
"name": "a7/autoload",
"version": "2.1",
"source": {
"type": "git",
"url": "https://github.com/a7/autoload.git",
"reference": "2d4a63c88150869883e43ad04e04b81125b55fd9"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/a7/autoload/zipball/2d4a63c88150869883e43ad04e04b81125b55fd9",
"reference": "2d4a63c88150869883e43ad04e04b81125b55fd9",
"shasum": ""
},
"require": {
"php": ">=7.0"
},
"type": "library",
"autoload": {
"files": [
"package.php"
]
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"Unlicense"
],
"authors": [
{
"name": "A7",
"email": "a7@fastmail.com",
"homepage": "https://github.com/a7"
}
],
"description": "Automatically and recursively require_once all php files in a given directory.",
"time": "2019-03-28T11:26:32+00:00"
}
],
"packages-dev": [],
"aliases": [],
"minimum-stability": "stable",
"stability-flags": [],
"prefer-stable": false,
"prefer-lowest": false,
"platform": [],
"platform-dev": []
}

View file

@ -9,9 +9,6 @@ define( 'WP_Tailwind_VERSION', wp_get_theme()->version );
define( 'WP_Tailwind_DIR', __DIR__ );
define( 'WP_Tailwind_URL', get_template_directory_uri() );
try {
require_once( WP_Tailwind_DIR . '/vendor/autoload.php' );
\A7\autoload( __DIR__ . '/src' );
} catch ( \Exception $e ) {
echo $e->getMessage();
die;
}

4963
package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -1,6 +1,6 @@
{
"name": "wp-tailwind-theme",
"version": "1.0.0",
"version": "1.0.1",
"description": "WP Tailwind",
"main": "./assets/js/main.js",
"scripts": {
@ -11,34 +11,34 @@
"build": "concurrently \"npm run prod\" \"npm run dev\""
},
"devDependencies": {
"@babel/core": "^7.3.4",
"@babel/polyfill": "^7.0.0",
"@babel/preset-env": "^7.4.5",
"@fullhuman/postcss-purgecss": "^1.1.0",
"@babel/core": "^7.6.4",
"@babel/polyfill": "^7.6.0",
"@babel/preset-env": "^7.6.3",
"@fullhuman/postcss-purgecss": "^1.3.0",
"autoprefixer": "^8.4.1",
"babel-loader": "^8.0.4",
"browser-sync": "^2.26.5",
"babel-loader": "^8.0.6",
"browser-sync": "^2.26.7",
"browser-sync-webpack-plugin": "^2.0.0",
"concurrently": "^3.5.1",
"copy-webpack-plugin": "^5.0.3",
"cross-env": "^5.2.0",
"concurrently": "^3.6.1",
"copy-webpack-plugin": "^5.0.4",
"cross-env": "^5.2.1",
"css-loader": "^2.1.1",
"cssnano": "^4.1.10",
"imagemin-webpack-plugin": "^2.4.2",
"mini-css-extract-plugin": "^0.6.0",
"postcss-loader": "^2.1.4",
"resolve-url-loader": "^2.3.0",
"resolve-url-loader": "^2.3.2",
"style-loader": "^0.21.0",
"tailwindcss": "^1.0.1",
"uglifyjs-webpack-plugin": "^2.1.2",
"webpack": "^4.20.2",
"webpack-cli": "^3.1.2"
"tailwindcss": "^1.1.3",
"uglifyjs-webpack-plugin": "^2.2.0",
"webpack": "^4.41.2",
"webpack-cli": "^3.3.9"
},
"dependencies": {
"postcss-custom-properties": "^8.0.10",
"postcss-custom-properties": "^8.0.11",
"postcss-import": "^12.0.1",
"postcss-nested": "^4.1.2",
"regenerator": "^0.14.1"
"regenerator": "^0.14.2"
},
"browserslist": [
"> 1%",