-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* adding initial gulp settings * orb by default, but overrideble for local ports * fixing mu-plugins * reload gulp after deploy #182 (#183) * no need to ignore mu-plugins * updates to make gulp work locally --------- Co-authored-by: Chris Herold <[email protected]>
- Loading branch information
1 parent
cd20a19
commit d5e403a
Showing
41 changed files
with
9,502 additions
and
1,872 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
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
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
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
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,22 @@ | ||
# copy this to the root of your project if you wan to customize the docker-compose.yml file defaults | ||
# common usage are to change the ports or to add environment variables | ||
# make sure when you run docker, you incorporate -- see .vscode/tasks.json for an example | ||
|
||
# version: '3.3' | ||
|
||
# services: | ||
# db: | ||
# ports: | ||
# - '3307:3306' | ||
|
||
# wordpress: | ||
# ports: | ||
# - '8000:80' | ||
# environment: | ||
# WORDPRESS_CONFIG_EXTRA: | | ||
# define('WP_ENV', 'development'); | ||
# define('WP_LOCAL_DEV', true); | ||
# define('WP_THEME', 'timber'); | ||
# define('WP_DEBUG_LOG', true ); | ||
# define('WP_DEBUG_DISPLAY', false); | ||
# @ini_set('display_errors', 0); |
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,44 @@ | ||
const config = { | ||
tailwindjs: './tailwind.config.js', | ||
port: 9050, | ||
purgecss: { | ||
content: ['src/**/*.{html,js,php,twig}'], | ||
safelist: { | ||
standard: [/^pre/, /^code/], | ||
greedy: [/token.*/], | ||
}, | ||
}, | ||
}; | ||
|
||
// tailwind plugins | ||
const plugins = { | ||
typography: true, | ||
forms: true, | ||
containerQueries: true, | ||
twElements: true, | ||
}; | ||
|
||
// base folder paths | ||
const basePaths = ['assets', 'dev', 'dist', 'static']; | ||
|
||
// folder assets paths | ||
const folders = ['css', 'js', 'img', 'fonts', 'vendor']; | ||
|
||
const paths = { | ||
root: 'wp-content/themes/timber', | ||
}; | ||
|
||
basePaths.forEach((base) => { | ||
paths[base] = { | ||
base: `./${paths.root}/${base}`, | ||
}; | ||
folders.forEach((folderName) => { | ||
const toCamelCase = folderName.replace(/\b-([a-z])/g, (_, c) => c.toUpperCase()); | ||
paths[base][toCamelCase] = `./${paths.root}/${base}/${folderName}`; | ||
}); | ||
}); | ||
|
||
config.paths = paths; | ||
config.plugins = plugins; | ||
|
||
export { config }; |
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
Oops, something went wrong.