Skip to content

Commit

Permalink
Remove outdated classic starter theme (#524)
Browse files Browse the repository at this point in the history
* Remove outdated classic starter theme

* Remove from composer

* Use new theme
  • Loading branch information
stian-overasen authored Sep 16, 2024
1 parent a8e43d3 commit 848d885
Show file tree
Hide file tree
Showing 54 changed files with 6 additions and 1,203 deletions.
4 changes: 2 additions & 2 deletions INSTALLATION.md
Original file line number Diff line number Diff line change
Expand Up @@ -128,11 +128,11 @@ Run the following commands in the root directory to build the project:
composer install
npm ci && npm run build
```
(See `packages/themes/dekode-theme` or `packages/plugins/blueprint` for more details)
(See `packages/themes/block-theme` or `packages/plugins/blueprint` for more details)

## Extending Builds

Project Base uses [wp-scripts](https://github.com/WordPress/gutenberg/tree/trunk/packages/scripts) out of the box for building front-end/view and editor assets. wp-script will scan all `block.json` files in the `src/` folder to find available entries. This means that if you have a `src` folder with a `view.js` and a `editor.js`, you also need to add a `block.json` file at the same location. Have a look in the `dekode-theme` theme or the `blueprint` plugin for examples or read up on [wp-script auto discovery for Webpack entry points](https://github.com/WordPress/gutenberg/blob/trunk/packages/scripts/utils/config.js#L198). For a more advanced setup, you can always customize builds by adding your own `webpack.config.js`.
Project Base uses [wp-scripts](https://github.com/WordPress/gutenberg/tree/trunk/packages/scripts) out of the box for building front-end/view and editor assets. wp-script will scan all `block.json` files in the `src/` folder to find available entries. This means that if you have a `src` folder with a `view.js` and a `editor.js`, you also need to add a `block.json` file at the same location. Have a look in the `block-theme` theme or the `blueprint` plugin for examples or read up on [wp-script auto discovery for Webpack entry points](https://github.com/WordPress/gutenberg/blob/trunk/packages/scripts/utils/config.js#L198). For a more advanced setup, you can always customize builds by adding your own `webpack.config.js`.

### A quick overview of wp-scripts auto discovery:
1. Supply entry points manully to the CLI, e.g. `wp-scripts build src/view src/editor src/admin src/some-other-entry`. This will bypass 2 and 3.
Expand Down
1 change: 0 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
"composer/installers": "~2.3.0",
"dekode/block-theme": "~1.0.0",
"dekode/blueprint": "~1.0.0",
"dekode/dekode-theme": "~1.0.0",
"dekode/imagify-helper": "1.0.0",
"dekodeinteraktiv/dekode-label-environment": "~1.0.0",
"inpsyde/wp-translation-downloader": "~2.5.0",
Expand Down
20 changes: 1 addition & 19 deletions composer.lock

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

4 changes: 2 additions & 2 deletions packages/plugins/blueprint/plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
* @return void
*/
function do_enqueue_assets(): void {
do_enqueue_plugin_assets( 'view', [ 'dekode-theme' ], [ 'dekode-theme' ] );
do_enqueue_plugin_assets( 'view', [ 'block-theme' ], [ 'block-theme' ] );
}

/**
Expand All @@ -42,7 +42,7 @@ function do_enqueue_assets(): void {
* @return void
*/
function do_enqueue_block_editor_assets(): void {
do_enqueue_plugin_assets( 'editor', [ 'dekode-theme' ] );
do_enqueue_plugin_assets( 'editor', [ 'block-theme' ] );
}

/**
Expand Down
27 changes: 0 additions & 27 deletions packages/themes/dekode-theme/404.php

This file was deleted.

7 changes: 0 additions & 7 deletions packages/themes/dekode-theme/composer.json

This file was deleted.

25 changes: 0 additions & 25 deletions packages/themes/dekode-theme/footer.php

This file was deleted.

11 changes: 0 additions & 11 deletions packages/themes/dekode-theme/functions.php

This file was deleted.

33 changes: 0 additions & 33 deletions packages/themes/dekode-theme/header.php

This file was deleted.

67 changes: 0 additions & 67 deletions packages/themes/dekode-theme/inc/assets.php

This file was deleted.

80 changes: 0 additions & 80 deletions packages/themes/dekode-theme/inc/setup.php

This file was deleted.

20 changes: 0 additions & 20 deletions packages/themes/dekode-theme/index.php

This file was deleted.

Loading

0 comments on commit 848d885

Please sign in to comment.