Skip to content

Commit

Permalink
Merge pull request #459 from forumone/5.x-RC
Browse files Browse the repository at this point in the history
5.3.0 release PR
  • Loading branch information
coreylafferty authored Jul 10, 2024
2 parents d607c63 + d374890 commit 8e0bafa
Show file tree
Hide file tree
Showing 101 changed files with 2,698 additions and 2,399 deletions.
3 changes: 0 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,10 @@ build/js
build/fonts/*
## To unignore fonts placed in the build/fonts directory, uncomment and update
## !build/fonts/[DIRECTORY_NAME]/
build/design-tokens.js
build/theme-json.js
build/images/backgrounds
build/images/sprite.artifact.svg
source/00-config/_design-tokens.artifact.scss
source/00-config/_GESSO.es6.js
theme.json

dependencyGraph.json
vendor
Empty file added .gitkeep
Empty file.
278 changes: 119 additions & 159 deletions README.md

Large diffs are not rendered by default.

22 changes: 6 additions & 16 deletions functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,23 +75,7 @@ function gesso_theme_scripts() {
* @return void
*/
function gesso_block_assets() {
wp_enqueue_block_style(
'core/button',
array(
'handle' => 'gesso-button',
'src' => get_theme_file_uri( 'build/css/button.css' ),
'ver' => filemtime( get_theme_file_path( 'build/css/button.css' ) ),
)
);
if ( function_exists( 'f1_block_library_register_blocks' ) ) {
wp_enqueue_block_style(
'f1-block-library/accordion',
array(
'handle' => 'gesso-accordion',
'src' => get_theme_file_uri( 'build/css/accordion.css' ),
'ver' => filemtime( get_theme_file_path( 'build/css/accordion.css' ) ),
)
);
wp_enqueue_block_style(
'f1-block-library/back-to-top',
array(
Expand Down Expand Up @@ -226,6 +210,12 @@ function gesso_block_patterns() {
'gesso',
array(
'label' => __( 'Gesso' ),
),
);
register_block_pattern_category(
'templates_only',
array(
'label' => __( 'For Templates Only' ),
)
);
}
Expand Down
70 changes: 0 additions & 70 deletions lib/CodeMap.js

This file was deleted.

66 changes: 0 additions & 66 deletions lib/SassValue.js

This file was deleted.

29 changes: 0 additions & 29 deletions lib/cleanValue.js

This file was deleted.

36 changes: 0 additions & 36 deletions lib/configLoader.js

This file was deleted.

28 changes: 0 additions & 28 deletions lib/keysort.js

This file was deleted.

36 changes: 0 additions & 36 deletions lib/readSource.js

This file was deleted.

12 changes: 5 additions & 7 deletions lib/rename.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ const fsPromises = require('fs/promises');

/**
* Creates the machine name from a human-readable name.
*
* @param {string} name - The human-readable name
* @return {string} - The machine name
*/
Expand All @@ -16,6 +17,7 @@ function machineName(name) {

/**
* Creates a human name from a machine name.
*
* @param {string} name - The machine name
* @return {string} - The human-readable name
*/
Expand All @@ -35,8 +37,8 @@ async function getNewName() {
filter: machineName,
},
];
const { pluginName } = await inquirer.prompt(question);
return pluginName.trim();
const { themeName } = await inquirer.prompt(question);
return themeName.trim();
}

async function getNewTitle(newName) {
Expand All @@ -51,7 +53,7 @@ async function getNewTitle(newName) {
type: 'input',
name: 'themeDescription',
message: 'What is your theme description?',
default: 'A collection of custom blocks',
default: 'A brief description of your theme.',
},
];
const { themeTitle, themeDescription } = await inquirer.prompt(questions);
Expand Down Expand Up @@ -108,10 +110,6 @@ async function init() {
);
searches.push(updateReadMe(currentDirectory, newTitle));
await Promise.all(searches);
await fsPromises.rename(
path.join(currentDirectory, 'blocks-plugin-template.php'),
path.join(currentDirectory, `${newName}.php`)
);
await fsPromises.rename(
currentDirectory,
`${path.dirname(currentDirectory)}/${newName}`
Expand Down
27 changes: 0 additions & 27 deletions lib/renderJs.js

This file was deleted.

Loading

0 comments on commit 8e0bafa

Please sign in to comment.